Re: LyX Windows Installer, Final?

2018-07-16 Thread Richard Kimberly Heck
On 07/16/2018 08:25 PM, Uwe Stöhr wrote:
> Am 14.07.2018 um 19:05 schrieb Richard Kimberly Heck:
>
>>> Is there a reason why Qt 5.10 instead of 5.11 was used? Qt 5.11 seems
>>> to have a nice fix for windows users:
>>> https://bugreports.qt.io/browse/QTBUG-43190
>>
>> Qt 5.10 is what mingw currently provides on Fedora.
>
> Are you saying you create a Windows release on a Linux system? 

The executable was built on Linux. The installer was built and tested on
Windows.

Riki



Re: LyX Windows Installer, Final?

2018-07-16 Thread Richard Kimberly Heck
On 07/16/2018 08:20 PM, Uwe Stöhr wrote:
> Am 07.07.2018 um 00:07 schrieb Richard Kimberly Heck:
>
>> Finally, there was the 'style' issue. We now install the
>> qwindowsvistastyle.dll file, as Enrico suggested. Apparently, it is new
>> in Qt 5.10 that these are separate files [1].
>
> Why did you use Qt 5.10. We once agreed with Scott to use LTS versions
> of Qt for our releases. Qt 5.9 is still the latest LTS.

I used it because it is what is available to me.

> Upgrading to a new Qt version often had some side effects thus I had
> to perform a lot of tests.

We did a fair bit of testing.

Riki



Re: LyX Windows Installer, Final?

2018-07-16 Thread Uwe Stöhr

Am 14.07.2018 um 19:05 schrieb Richard Kimberly Heck:


Is there a reason why Qt 5.10 instead of 5.11 was used? Qt 5.11 seems
to have a nice fix for windows users:
https://bugreports.qt.io/browse/QTBUG-43190


Qt 5.10 is what mingw currently provides on Fedora.


Are you saying you create a Windows release on a Linux system? That is 
no suitable way of providing Windows build of LyX because you cannot see 
corner cases like missing files, wrong registry paths, leftovers from 
previous LyX installations, problems as result of interference of 
different installed LyX versions on the same PC etc.

Please build and test directly on a Windows PC.

Also I strongly recommend to use Qt's LTS versions, not the latest. My 
experience is that there have always been issues after upgrading to a 
new Qt version.


I use for my installer Qt 5.9.4 because this is a well tested 
LTS-version and LyX doesn't use any new features of Qt 5.10 and 5.11.


regards Uwe


Re: LyX Windows Installer, Final?

2018-07-16 Thread Uwe Stöhr

Am 07.07.2018 um 00:07 schrieb Richard Kimberly Heck:


Finally, there was the 'style' issue. We now install the
qwindowsvistastyle.dll file, as Enrico suggested. Apparently, it is new
in Qt 5.10 that these are separate files [1].


Why did you use Qt 5.10. We once agreed with Scott to use LTS versions 
of Qt for our releases. Qt 5.9 is still the latest LTS.


Upgrading to a new Qt version often had some side effects thus I had to 
perform a lot of tests.


regards Uwe





Re: LyX Windows Installer, Final?

2018-07-14 Thread Richard Kimberly Heck
On 07/14/2018 02:59 AM, Daniel wrote:
> On 07/07/2018 00:07, Richard Kimberly Heck wrote:
>> OK, I finally found some time to mess with this again. A new version of
>> the installer has been uploaded to
>> http://ftp.lyx.org/pub/lyx/bin/2.3.0/.
>>
>> The problem with spellcheck was because some dictionaries were supposed
>> to be installed by default, but there was no actual provision for
>> including them in the package, from what I can tell. Special sauce, I
>> guess. There were also some major problems downloading dictionaries
>> during the installation. The URLs were simply wrong. I fixed that and
>> simplified some of the code.
>>
>> Finally, there was the 'style' issue. We now install the
>> qwindowsvistastyle.dll file, as Enrico suggested. Apparently, it is new
>> in Qt 5.10 that these are separate files [1]. That's why the old
>> installer worked, I guess. It was built with 5.9.x. Anyway, I have
>> verified that starting LyX with:
>>
>>  LyX2.3.exe -style windows
>>  LyX2.3.exe -style windowsvista
>>
>> give different results.
>>
>> Please test, and hopefully we can finish with this next week
> Is there a reason why Qt 5.10 instead of 5.11 was used? Qt 5.11 seems
> to have a nice fix for windows users:
> https://bugreports.qt.io/browse/QTBUG-43190

Qt 5.10 is what mingw currently provides on Fedora.

Riki



Re: LyX Windows Installer, Final?

2018-07-14 Thread Daniel

On 07/07/2018 00:07, Richard Kimberly Heck wrote:

OK, I finally found some time to mess with this again. A new version of
the installer has been uploaded to http://ftp.lyx.org/pub/lyx/bin/2.3.0/.

The problem with spellcheck was because some dictionaries were supposed
to be installed by default, but there was no actual provision for
including them in the package, from what I can tell. Special sauce, I
guess. There were also some major problems downloading dictionaries
during the installation. The URLs were simply wrong. I fixed that and
simplified some of the code.

Finally, there was the 'style' issue. We now install the
qwindowsvistastyle.dll file, as Enrico suggested. Apparently, it is new
in Qt 5.10 that these are separate files [1]. That's why the old
installer worked, I guess. It was built with 5.9.x. Anyway, I have
verified that starting LyX with:

     LyX2.3.exe -style windows
     LyX2.3.exe -style windowsvista

give different results.

Please test, and hopefully we can finish with this next week
Is there a reason why Qt 5.10 instead of 5.11 was used? Qt 5.11 seems to 
have a nice fix for windows users: 
https://bugreports.qt.io/browse/QTBUG-43190


Daniel



Re: LyX Windows Installer, Final?

2018-07-08 Thread Richard Kimberly Heck
On 07/08/2018 08:02 PM, Richard Kimberly Heck wrote:
> On 07/08/2018 04:46 PM, Jean-Marc Lasgouttes wrote:
>> PS: I tested briefly the binary, which seems to work well. However,
>> when I wanted to install paper.cls (to check on of you reports),
>> texlive told me that I cannot update my texlive 2017. So I decided to
>> upgrade to texlive 2018, and it is still installing itself after 1h45 :(
> Lovely.

And a PS of my own: In trying to figure out what files were missing from my
installer, I installed Uwe's last one. When it attempted to update
MiKTeX, it
returned an error, telling me that hopefully we'd be able to get it
working again
and to check the logs to see what the problem was. Way too fragile a process
for us to be initiating it.

Riki



Re: LyX Windows Installer, Final?

2018-07-08 Thread Richard Kimberly Heck
On 07/08/2018 04:46 PM, Jean-Marc Lasgouttes wrote:
> Le 08/07/2018 à 08:33, Richard Kimberly Heck a écrit :
>> That will create a LyX-something.zip file containing what's needed for
>> Windows. I've
>> been creating the actual installer on Windows itself, basically
>> following the directions
>> in Uwe's Readme.txt file.
>
> Isn't it possible to use the fedora-packaged mingw32-nsis?

I tried that, but had a problem with the paths in the nsi files. They
are all given in Windows form, with \, which of course causes nightmares
on Linux.

> PS: I tested briefly the binary, which seems to work well. However,
> when I wanted to install paper.cls (to check on of you reports),
> texlive told me that I cannot update my texlive 2017. So I decided to
> upgrade to texlive 2018, and it is still installing itself after 1h45 :(

Lovely.

Riki



Re: LyX Windows Installer, Final?

2018-07-08 Thread Jean-Marc Lasgouttes

Le 08/07/2018 à 08:33, Richard Kimberly Heck a écrit :

That will create a LyX-something.zip file containing what's needed for
Windows. I've
been creating the actual installer on Windows itself, basically
following the directions
in Uwe's Readme.txt file.


Isn't it possible to use the fedora-packaged mingw32-nsis?

JMarc

PS: I tested briefly the binary, which seems to work well. However, when 
I wanted to install paper.cls (to check on of you reports), texlive told 
me that I cannot update my texlive 2017. So I decided to upgrade to 
texlive 2018, and it is still installing itself after 1h45 :(


JMarc


Re: LyX Windows Installer, Final?

2018-07-08 Thread Daniel

On 08/07/2018 09:47, Jürgen Spitzmüller wrote:

Am Sonntag, den 08.07.2018, 09:33 +0200 schrieb Daniel:

I tried Linux a while ago but didn't like how much effort I had to
put
into to get drivers to work properly. It became probably better in
that
respect. Now, I am using a touch panel and pen input which seems not
to
work very well specially software wise on Linux. As evidence you can
see
on youtube how people proudly present only the most basic pen input
on
linux.


But you know that's not a deficiency of the OS but some third parties
not willing to provide drivers or at least giving advice how to re-
construct some. But things constantly improved since major companies
(Microsoft in the first row) began to embrace Linux.


Yes, I know. But it doesn't change anything from the usability side in 
the short term. Looking forward to the day I can drop Windows!


Daniel



Re: LyX Windows Installer, Final?

2018-07-08 Thread Jürgen Spitzmüller
Am Sonntag, den 08.07.2018, 09:33 +0200 schrieb Daniel:
> I tried Linux a while ago but didn't like how much effort I had to
> put 
> into to get drivers to work properly. It became probably better in
> that 
> respect. Now, I am using a touch panel and pen input which seems not
> to 
> work very well specially software wise on Linux. As evidence you can
> see 
> on youtube how people proudly present only the most basic pen input
> on 
> linux.

But you know that's not a deficiency of the OS but some third parties
not willing to provide drivers or at least giving advice how to re-
construct some. But things constantly improved since major companies
(Microsoft in the first row) began to embrace Linux.

Jürgen


signature.asc
Description: This is a digitally signed message part


Re: LyX Windows Installer, Final?

2018-07-08 Thread Daniel

On 08/07/2018 08:33, Richard Kimberly Heck wrote:
> 
> It took forever to debug that: Add some debugging code; build the
> installer; install
> LyX, choosing some non-default dictionaries and thesauri; watch it fail;
> uninstall LyX;
> change the code; and start over. Why people put up with such a horrid OS
> I do not
> know.
> 

I can see your suffering and feel like I have to defend my usage of 
Windows. I guess the OS is quite nice for the user which makes it 
worthwhile for the developer. :)


I tried Linux a while ago but didn't like how much effort I had to put 
into to get drivers to work properly. It became probably better in that 
respect. Now, I am using a touch panel and pen input which seems not to 
work very well specially software wise on Linux. As evidence you can see 
on youtube how people proudly present only the most basic pen input on 
linux.


Anyway, thanks for making it possible for me to keep using LyX on Windows!

Daniel



Re: LyX Windows Installer, Final?

2018-07-08 Thread Richard Kimberly Heck
On 07/07/2018 07:34 AM, Daniel wrote:
> On 07/07/2018 00:07, Richard Kimberly Heck wrote:
>> OK, I finally found some time to mess with this again. A new version of
>> the installer has been uploaded to
>> http://ftp.lyx.org/pub/lyx/bin/2.3.0/.
>>
>> The problem with spellcheck was because some dictionaries were supposed
>> to be installed by default, but there was no actual provision for
>> including them in the package, from what I can tell. Special sauce, I
>> guess. There were also some major problems downloading dictionaries
>> during the installation. The URLs were simply wrong. I fixed that and
>> simplified some of the code.
>>
>> Finally, there was the 'style' issue. We now install the
>> qwindowsvistastyle.dll file, as Enrico suggested. Apparently, it is new
>> in Qt 5.10 that these are separate files [1]. That's why the old
>> installer worked, I guess. It was built with 5.9.x. Anyway, I have
>> verified that starting LyX with:
>>
>>  LyX2.3.exe -style windows
>>  LyX2.3.exe -style windowsvista
>>
>> give different results.
>>
>> Please test, and hopefully we can finish with this next week.
>>
>> Riki
>>
>> [1] https://bugreports.qt.io/browse/QTBUG-65177
>
> Thanks! Works and looks fine for me so far.
>
> One very minor thing probably not worth spending much time on: there
> is no add/remove programs icon. 

Yes, I noticed that, too, but decided not to worry about it. I've spent
way more time on this than I ever intended already. Not to complain, but
so much of this is not properly documented.

Riki



Re: LyX Windows Installer, Final?

2018-07-08 Thread Richard Kimberly Heck
On 07/07/2018 04:21 AM, Pavel Sanda wrote:
> Richard Kimberly Heck wrote:
>> The problem with spellcheck was because some dictionaries were supposed
>> to be installed by default, but there was no actual provision for
>> including them in the package, from what I can tell. Special sauce, I
>> guess. There were also some major problems downloading dictionaries
>> during the installation. The URLs were simply wrong. I fixed that and
>> simplified some of the code.
> My understanding was that all the dictionaries were fixed part of the
> installer and nothing was to be downloaded during the installation.

Certain dictionaries are supposed to be installed by default. English US
and UK,
German, French, something else. I can't remember. Anyway, it's because
they weren't
in my installer that people were getting errors. There's also an option
during the install
to install other languages. And *no* thesauri are installed by default.
Those have to be
chosen during the install. But the directory Resources/thes/ has to
exist, or else the
download fails. (Apparently, NSIS::inetc does not know how to create
directories.)
And, as I said, the URLs for the downloads (which point to Uwe's site on
sourceforge)
all were wrong. He had "project/" instead of "projects/", e.g., or the
other way around,
and it got worse after that.


It took forever to debug that: Add some debugging code; build the
installer; install
LyX, choosing some non-default dictionaries and thesauri; watch it fail;
uninstall LyX;
change the code; and start over. Why people put up with such a horrid OS
I do not
know.


Longer term, we maybe should just aim for a 'portable' install. I guess
there are a lot
of questions about longer term that we should discuss once this is
sorted. We could
use some help here

> For that purpose all thesauri and dictionaries were stored at 
> https://www.lyx.org/trac/browser/lyxsvn/dictionaries
> and irregularly updated. If Uwe still used them I do not know.

No, he did not, as kind of mentioned above, but I intend to fix this at
some point.
At the very least, we could put the dictionaries on ftp.lyx.org. For the
short term,
I've put them into the default ones at least into the Win32 dependencies
zip and
updated the installer code to include them.

> Do you have some script or completele notes how to build the current
> installer?

The necessary changes are all in this branch:
   
https://git.lyx.org/?p=developers/rgheck/lyx.git;a=log;h=refs/heads/WinBuild-2.3.0-101
It's based off 2.3.0, so diff'ing against that gives you the changes. I
will commit some
version to 2.3.x and master after we get the release done. The changes
to NSIS are easy,
but I had to hack some of the cmake stuff pretty ugly. I'm using the
mingw packages on
Fedora (which basically means I'm not using the 3rdparty/ stuff at all),
and they install
to places different from what Kornel originally had on Ubuntu. I.e.,
"make package" has
to look for the Qt dlls in different places. So that all needs some
figuring out.

To document a bit: At least for Fedora, there is a script at
    development/cmake/scripts/cmingw
that one can use as follows:
    > ./autogen.sh
    > mkdir build && cd build
    > bash ../development/cmake/scripts/cmingw
    > make -j1024 ;-)
    > make package
That will create a LyX-something.zip file containing what's needed for
Windows. I've
been creating the actual installer on Windows itself, basically
following the directions
in Uwe's Readme.txt file. You just need the right directory structure,
then run the NSIS
installer scripts, which you can do by right-clicking on them and
choosing "Compile
NSIS script".

I will update the documentation in-tree when the time comes.

Riki



Re: LyX Windows Installer, Final?

2018-07-07 Thread Daniel

On 07/07/2018 00:07, Richard Kimberly Heck wrote:

OK, I finally found some time to mess with this again. A new version of
the installer has been uploaded to http://ftp.lyx.org/pub/lyx/bin/2.3.0/.

The problem with spellcheck was because some dictionaries were supposed
to be installed by default, but there was no actual provision for
including them in the package, from what I can tell. Special sauce, I
guess. There were also some major problems downloading dictionaries
during the installation. The URLs were simply wrong. I fixed that and
simplified some of the code.

Finally, there was the 'style' issue. We now install the
qwindowsvistastyle.dll file, as Enrico suggested. Apparently, it is new
in Qt 5.10 that these are separate files [1]. That's why the old
installer worked, I guess. It was built with 5.9.x. Anyway, I have
verified that starting LyX with:

     LyX2.3.exe -style windows
     LyX2.3.exe -style windowsvista

give different results.

Please test, and hopefully we can finish with this next week.

Riki

[1] https://bugreports.qt.io/browse/QTBUG-65177


Thanks! Works and looks fine for me so far.

One very minor thing probably not worth spending much time on: there is 
no add/remove programs icon. I only found this which might not even 
apply: 
https://stackoverflow.com/questions/16204889/how-to-change-the-icon-in-add-or-remove-programs


Best,
Daniel




Re: LyX Windows Installer, Final?

2018-07-07 Thread Pavel Sanda
Richard Kimberly Heck wrote:
> The problem with spellcheck was because some dictionaries were supposed
> to be installed by default, but there was no actual provision for
> including them in the package, from what I can tell. Special sauce, I
> guess. There were also some major problems downloading dictionaries
> during the installation. The URLs were simply wrong. I fixed that and
> simplified some of the code.

My understanding was that all the dictionaries were fixed part of the
installer and nothing was to be downloaded during the installation.

For that purpose all thesauri and dictionaries were stored at 
https://www.lyx.org/trac/browser/lyxsvn/dictionaries
and irregularly updated. If Uwe still used them I do not know.

Do you have some script or completele notes how to build the current
installer?

Pavel


LyX Windows Installer, Final?

2018-07-06 Thread Richard Kimberly Heck
OK, I finally found some time to mess with this again. A new version of
the installer has been uploaded to http://ftp.lyx.org/pub/lyx/bin/2.3.0/.

The problem with spellcheck was because some dictionaries were supposed
to be installed by default, but there was no actual provision for
including them in the package, from what I can tell. Special sauce, I
guess. There were also some major problems downloading dictionaries
during the installation. The URLs were simply wrong. I fixed that and
simplified some of the code.

Finally, there was the 'style' issue. We now install the
qwindowsvistastyle.dll file, as Enrico suggested. Apparently, it is new
in Qt 5.10 that these are separate files [1]. That's why the old
installer worked, I guess. It was built with 5.9.x. Anyway, I have
verified that starting LyX with:

    LyX2.3.exe -style windows
    LyX2.3.exe -style windowsvista

give different results.

Please test, and hopefully we can finish with this next week.

Riki

[1] https://bugreports.qt.io/browse/QTBUG-65177