Re: Compiling LyX on Windows with more recent Visual Studio versions

2015-11-01 Thread Georg Baum
Peter Kümmel wrote:

> For iconv and hunspell one can find some CMakeLists.txt at github, not
> ready for MSVC but usable as starting point. AFAIk zlib already ships
> with cmake files.
> 
> Would it be an option to add tripped down iconv, hunspell and zlib sources
> to lyx and to build them as static libraries like boost? Then the Windows
> installer would only depend on ready-to-use binaries, maintained by other
> projects.

If the license of those libs allows redistribution with the LyX sources, 
then this would be an option IMHO if the size increase of the package would 
not be too big. This would be easier to use than my suggestion, but in both 
cases we would need somebody who keeps the sources up to date.


Georg



Re: Compiling LyX on Windows with more recent Visual Studio versions

2015-11-01 Thread Peter Kümmel

Am 01.11.2015 um 22:02 schrieb Georg Baum:

Peter Kümmel wrote:


For iconv and hunspell one can find some CMakeLists.txt at github, not
ready for MSVC but usable as starting point. AFAIk zlib already ships
with cmake files.

Would it be an option to add tripped down iconv, hunspell and zlib sources
to lyx and to build them as static libraries like boost? Then the Windows
installer would only depend on ready-to-use binaries, maintained by other
projects.


If the license of those libs allows redistribution with the LyX sources,
then this would be an option IMHO if the size increase of the package would
not be too big. This would be easier to use than my suggestion, but in both
cases we would need somebody who keeps the sources up to date.


Georg




Hunspell:
License: GPL/LGPL/MPL tri-license.
Latest release date: 2014-06-02
http://hunspell.sourceforge.net/

libiconv:
License: GPL
Latest release date: 2011-08-07
https://www.gnu.org/software/libiconv/

zlib:
License: zlib (BSD/MIT like)
Latest release date: 2013-04-29
http://www.zlib.net/


Linking these libs into a GPL application is therefore no problem.
Sources also does not change very often, less then boost.
And the size is also not that big when only the files are
used needed to build the library.

Then I start to add the libs. Before I push I send an overview
of the changes.

Peter



Re: Compiling LyX on Windows with more recent Visual Studio versions

2015-10-31 Thread David Hyde
I experienced this error as well when setting up my LyX build environment 
(Windows 10 + MSVC 2010 + Qt 4.8.6).  The only insight I can provide is that 
initially, my cmake config wasn't an exact match to what was described in 
INSTALL.Win32.  That file was written for Qt < 5, so as part of getting 
everything to match INSTALL.Win32 and compile, I switched to Qt 4.8.6 rather 
than Qt 5.4 or 5.5.  I don't exactly recall if that switch was the silver 
bullet for this error, but I know I haven't been able to compile LyX yet using 
Qt 5.x on Windows.  Perhaps try compiling LyX with Qt 4.8.6 (keeping all other 
config the same), and see if that removes this error?  In which case there is 
possibly some issue with compiling with Qt 5.x on Windows...

Best regards,

David


From: lyx-devel@lists.lyx.org <lyx-devel@lists.lyx.org> on behalf of 
PhilipPirrip <p...@net.hr>
Sent: Friday, October 30, 2015 8:16 PM
To: lyx-devel@lists.lyx.org
Subject: Re: Compiling LyX on Windows with more recent Visual Studio versions

Hello!
I'm trying to compile LyX for Windows: WinXP VirtualBox, Visual Studio
2010, Qt 5.5, all by the instructions in INSTALL.Win32

No matter what I do in CMake config, the compilation ends with the
messages I give below, and I have no idea what's happening and how to
fix it.



24> -- Installing:
C:/LyX/lyx-install/Resources/doc/es/DocumentoTextoPostizo.txt
24> -- Installing:
C:/LyX/lyx-install/Resources/doc/attic/Changelog-UserGuide-LyX_22x.txt
24> -- Installing:
C:/LyX/lyx-install/Resources/doc/attic/Changelog-EmbeddedObjects-LyX_22x.txt
24> -- Installing:
C:/LyX/lyx-install/Resources/doc/attic/Changelog-Math-LyX_22.txt
24> -- Installing:
C:/LyX/lyx-install/Resources/doc/./SpecialParagraphShape.tex
24> -- Installing: C:/LyX/lyx-install/Resources/doc/LFUNs.lyx
24> CMake Error at src/cmake_install.cmake:32 (file):
24> file INSTALL cannot find "C:/LyX/lyx-build-windows/bin/Debug/LyX.exe".
24> Call Stack (most recent call first):
24> cmake_install.cmake:3975 (include)
24>
24>
24>
24>C:\Program
Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):
error MSB3073: The command "setlocal
"C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P
cmake_install.cmake
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" exited with code 1.
24>
24>Build FAILED.
24>
24>Time Elapsed 00:00:47.16
== Build: 21 succeeded, 3 failed, 0 up-to-date, 0 skipped




Re: Compiling LyX on Windows with more recent Visual Studio versions

2015-10-31 Thread Vincent van Ravesteijn

Op 31-10-2015 om 14:44 schreef PhilipPirrip:

On 10/31/2015 09:27 AM, PhilipPirrip wrote:

Thanks, David. It did work with Qt 4.8.6
First thing I noticed, though, is that most icons are missing. Have to
investigate. I remember seeing a similar issue here on the list 
recently.


The errors reported in the message pane are of this kind
GuiApplication.cpp (635): Cannot load icon 
C:/LyX/lyx-install/Resources/images/thesaurus-entry.svgz please verify 
resource system!



Is there any special library, not mentioned in INSTALL.Win32 that 
needs to be copied somewhere? How can one force LyX to use png icons 
as a fallback?

Thnx



I'm already working on this issue.

The problem is that Qt 4.x cannot read svgz icon files where Qt 5.x can. 
There is some logic to fall back to png when the svgz file could not be 
read but this is poorly implemented and apparently untested.


Workaround would be to select classic icons in the preferences, or to 
change some occurences of "svgz,png" to "png" in the source code.


Vincent


Re: Compiling LyX on Windows with more recent Visual Studio versions

2015-10-31 Thread Peter Kümmel

Am 14.10.2015 um 21:52 schrieb Georg Baum:

David Hyde wrote:


I'm interested in looking into this at least a bit (may become deterred
if some dependency nightmare occurs!).  I've looked at the current MSVC
dependencies that are in the archive on sourceforge.  Which of these
are things that should actually be downloaded and compiled on the fly?


AFAIK iconv, zlib, hunspell and gettext. Unfortunately the zip file contains


JMarc said that gettext is not needed any more (there is no *getlib.lib in 
deps).

For iconv and hunspell one can find some CMakeLists.txt at github, not
ready for MSVC but usable as starting point. AFAIk zlib already ships
with cmake files.

Would it be an option to add tripped down iconv, hunspell and zlib sources
to lyx and to build them as static libraries like boost? Then the Windows
installer would only depend on ready-to-use binaries, maintained by other
projects.


a mixture of different kinds of dependencies: The ones I mentioned are
needed for compiling LyX, the others like python and ghostscript are for
building the installer or running LyX. In my initial answer I did not think
of the latter. I believe that we do not need to do much about these, since
you can always simply install the latest version of these tools.


  For example, do you think that Python and ghostscript should be
compiled from source, or do you think it suffices to just include up-to
-date Windows binaries?  Same question goes for other deps I think.
  Based on your feedback I can try to hack around with this a bit and
see what I can get working with the latest MSVC.


Very nice! Don't hesitate to ask if you've got any question, the worst thing
that can happen is that nobody knows (unlikely).


Georg







Re: Compiling LyX on Windows with more recent Visual Studio versions

2015-10-31 Thread PhilipPirrip

On 10/31/2015 09:27 AM, PhilipPirrip wrote:

Thanks, David. It did work with Qt 4.8.6
First thing I noticed, though, is that most icons are missing. Have to
investigate. I remember seeing a similar issue here on the list recently.


The errors reported in the message pane are of this kind
GuiApplication.cpp (635): Cannot load icon 
C:/LyX/lyx-install/Resources/images/thesaurus-entry.svgz please verify 
resource system!



Is there any special library, not mentioned in INSTALL.Win32 that needs 
to be copied somewhere? How can one force LyX to use png icons as a 
fallback?

Thnx




Re: Compiling LyX on Windows with more recent Visual Studio versions

2015-10-31 Thread PhilipPirrip

Thanks, David. It did work with Qt 4.8.6
First thing I noticed, though, is that most icons are missing. Have to 
investigate. I remember seeing a similar issue here on the list recently.







On 10/31/2015 03:53 AM, David Hyde wrote:

I experienced this error as well when setting up my LyX build environment (Windows 
10 + MSVC 2010 + Qt 4.8.6).  The only insight I can provide is that initially, my 
cmake config wasn't an exact match to what was described in INSTALL.Win32.  That 
file was written for Qt < 5, so as part of getting everything to match 
INSTALL.Win32 and compile, I switched to Qt 4.8.6 rather than Qt 5.4 or 5.5.  I 
don't exactly recall if that switch was the silver bullet for this error, but I 
know I haven't been able to compile LyX yet using Qt 5.x on Windows.  Perhaps try 
compiling LyX with Qt 4.8.6 (keeping all other config the same), and see if that 
removes this error?  In which case there is possibly some issue with compiling 
with Qt 5.x on Windows...

Best regards,

David





Re: Compiling LyX on Windows with more recent Visual Studio versions

2015-10-30 Thread PhilipPirrip

Hello!
I'm trying to compile LyX for Windows: WinXP VirtualBox, Visual Studio 
2010, Qt 5.5, all by the instructions in INSTALL.Win32


No matter what I do in CMake config, the compilation ends with the 
messages I give below, and I have no idea what's happening and how to 
fix it.




24> -- Installing: 
C:/LyX/lyx-install/Resources/doc/es/DocumentoTextoPostizo.txt
24> -- Installing: 
C:/LyX/lyx-install/Resources/doc/attic/Changelog-UserGuide-LyX_22x.txt
24> -- Installing: 
C:/LyX/lyx-install/Resources/doc/attic/Changelog-EmbeddedObjects-LyX_22x.txt
24> -- Installing: 
C:/LyX/lyx-install/Resources/doc/attic/Changelog-Math-LyX_22.txt
24> -- Installing: 
C:/LyX/lyx-install/Resources/doc/./SpecialParagraphShape.tex

24> -- Installing: C:/LyX/lyx-install/Resources/doc/LFUNs.lyx
24> CMake Error at src/cmake_install.cmake:32 (file):
24> file INSTALL cannot find "C:/LyX/lyx-build-windows/bin/Debug/LyX.exe".
24> Call Stack (most recent call first):
24> cmake_install.cmake:3975 (include)
24>
24>
24>
24>C:\Program 
Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5):

error MSB3073: The command "setlocal
"C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P 
cmake_install.cmake

if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" exited with code 1.
24>
24>Build FAILED.
24>
24>Time Elapsed 00:00:47.16
== Build: 21 succeeded, 3 failed, 0 up-to-date, 0 skipped



Re: Compiling LyX on Windows with more recent Visual Studio versions

2015-10-14 Thread Jean-Marc Lasgouttes

Le 14/10/2015 07:27, David Hyde a écrit :

Which of these
are things that should actually be downloaded and compiled on the fly?
  For example, do you think that Python and ghostscript should be
compiled from source, or do you think it suffices to just include up-to
-date Windows binaries?  Same question goes for other deps I think.


IMO, the things that need rebuilding are the libraries, not the helper 
programs. This rules out python and ghostscript.


JMarc



Re: Compiling LyX on Windows with more recent Visual Studio versions

2015-10-14 Thread Georg Baum
David Hyde wrote:

> I'm interested in looking into this at least a bit (may become deterred
> if some dependency nightmare occurs!).  I've looked at the current MSVC
> dependencies that are in the archive on sourceforge.  Which of these
> are things that should actually be downloaded and compiled on the fly?

AFAIK iconv, zlib, hunspell and gettext. Unfortunately the zip file contains 
a mixture of different kinds of dependencies: The ones I mentioned are 
needed for compiling LyX, the others like python and ghostscript are for 
building the installer or running LyX. In my initial answer I did not think 
of the latter. I believe that we do not need to do much about these, since 
you can always simply install the latest version of these tools.

>  For example, do you think that Python and ghostscript should be
> compiled from source, or do you think it suffices to just include up-to
> -date Windows binaries?  Same question goes for other deps I think.
>  Based on your feedback I can try to hack around with this a bit and
> see what I can get working with the latest MSVC.

Very nice! Don't hesitate to ask if you've got any question, the worst thing 
that can happen is that nobody knows (unlikely).


Georg




Re: Compiling LyX on Windows with more recent Visual Studio versions

2015-10-13 Thread David Hyde
Hi Georg,

Thanks for your reply!

> This is possible, but needs some work.
> 
> The current MSVC build instructions use some pre-compiled third party
> libraries. Of course these work only for exactly one MSVC version.
> Therefore 
> I would propose the following procedure instead of just replicating
> this 
> setup with a newer MSVC version:
> 
> Create a python or cmake script that downloads, unpacks and builds
> each 
> needed library. Add this script to the LyX git repo, and modify the
> windows 
> cmake setup to use it instead of the current binaries from
> sourceforge.


I'm interested in looking into this at least a bit (may become deterred
if some dependency nightmare occurs!).  I've looked at the current MSVC
dependencies that are in the archive on sourceforge.  Which of these
are things that should actually be downloaded and compiled on the fly? 
 For example, do you think that Python and ghostscript should be
compiled from source, or do you think it suffices to just include up-to
-date Windows binaries?  Same question goes for other deps I think. 
 Based on your feedback I can try to hack around with this a bit and
see what I can get working with the latest MSVC.

Thanks again!

David



Re: Compiling LyX on Windows with more recent Visual Studio versions

2015-10-08 Thread Georg Baum
David Hyde wrote:

> Hi there,
> 
> 
> I'm interested in compiling LyX on Windows.  I've read through the
> INSTALL.Win32 file and was able to get LyX to compile from source using
> Visual C++ Express 2010, following the instructions in that file.

Great!

> I'm
> wondering though, is it possible (do people have experience, or know it
> doesn't work, etc.) to compile LyX using a more recent VS version (2013 or
> even 2015)?  VS2010 isn't supported very well anymore (it was hard to even
> find a download for VS2010), so being able to compile LyX on Windows using
> more modern toolchains would be very useful.

This is possible, but needs some work. Currently we are lacking a volunteer 
to do it. If you are interested (which would be much appreciated) we can 
help by answering any questions that might come up.

The current MSVC build instructions use some pre-compiled third party 
libraries. Of course these work only for exactly one MSVC version. Therefore 
I would propose the following procedure instead of just replicating this 
setup with a newer MSVC version:

Create a python or cmake script that downloads, unpacks and builds each 
needed library. Add this script to the LyX git repo, and modify the windows 
cmake setup to use it instead of the current binaries from sourceforge.

This is more initial work, but definitely worth it, because it has a very 
high probability that it works with future MSVC versions as well.


Georg




Compiling LyX on Windows with more recent Visual Studio versions

2015-10-07 Thread David Hyde
Hi there,


I'm interested in compiling LyX on Windows.  I've read through the 
INSTALL.Win32 file and was able to get LyX to compile from source using Visual 
C++ Express 2010, following the instructions in that file.  I'm wondering 
though, is it possible (do people have experience, or know it doesn't work, 
etc.) to compile LyX using a more recent VS version (2013 or even 2015)?  
VS2010 isn't supported very well anymore (it was hard to even find a download 
for VS2010), so being able to compile LyX on Windows using more modern 
toolchains would be very useful.


Thanks for any advice or experiences you may have on this!


David