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  on behalf of 
PhilipPirrip 
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-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



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