Am 09.12.2015 um 00:31 schrieb Uwe Stöhr:

Here are the required dependencies to build LyX with MSVC 2013:

http://ftp.lyx.de/LyX-Windows-Deps/

It contains a fresh compiled version of libhunspell, iconv and zlib. It
contains also a bundled Python 2.7, latest Ghostscript and latest
ImageMagick to be able to build a Windows installer. I can remove these
if you like.

Please use the latest version:
http://ftp.lyx.de/LyX-Windows-Deps/lyx-windows-deps-msvc2013.zip

I removed there Ghostscript etc. because these are already included in the Windows installer source code ZIP file I provide with every release.

Moreover I used there now the precompiled zlib files as this is strongly recommended by the zlib people (and they provide this as official ZIP).

------------------

If people might in future want to compile with MSVC I uploaded a ZIP file containing everything to compile iconv, hunspell and zlib (the latter only if really necessary):

http://ftp.lyx.de/LyX-Windows-Deps/build-iconv-hunspell-MSVC2013.zip

See in this ZIP file the file "How-to-build.txt" where I described how to build step by step. (If you open the *.sln files with MSVC2015 they will automativcally be converted if you agree on a prompt)

regards Uwe

p.s. Peter, could you please have a look at this bug:
http://www.lyx.org/trac/ticket/9892
Georg thought this can come from a dependency while I think it is not the case. What do you think?
0. Install MSVC 2013
1. Extract this archive

How to build libiconv:

2. open the file "gettext.sln" (in folder "gettext-msvc") in MSVC by 
double-clicking on it
3. right-click in the MSVC solution explorer on "libiconv" and then on 
"Rebuild" 

How to build libhunspell:

4. open the file "Hunspell.sln" (in folder 
"hunspell\hunspell-1.3.3\src\win_api") in MSVC by double-clicking on it
5. right-click in the MSVC solution explorer on "libhunspell" and then on 
"Rebuild"

How to use the built files for LyX:

6. download and extract the LyX windows dependencies MSVC2013 Zip-file
7. copy the built libiconv.dll, libhunspell.dll and the zlib1.dll (from the
   folder "zlib-compiled")to the "bin" subfolder of the folder named
   "lyx-windows-deps-msvc2013"
8. copy the built libiconv.lib, libhunspell.lib and the file zlib.lib (from the
   folder "zlib-compiled\lib") to the "lib" subfolder of the folder named
   "lyx-windows-deps-msvc2013"
9. copy the files zlib.h, zconf.h (from the folder "zlib-compiled\include") and
   iconv.h to the "include" subfolder of the folder named 
"lyx-windows-deps-msvc2013"
10. copy the whole folder "hunspell\hunspell-1.3.3\src\hunspell" to the 
"include"
   subfolder of the folder named "lyx-windows-deps-msvc2013"

11. compile LyX

------------------
How to build zlib:

NOTE: it is recommended to use the precompiled zlib files! Only use a 
self-compiled zlib for good reasons.

a. assuming your MSVC 2013 is installed in the folder "C:\MSVC2013", open there 
a console
b. execute the command "VC\vcvarsall.bat"
c. now change in the console to the folder "zlib\zlib-master" (the folder from 
this archive)
d. finally execute the command nmake -f win32/Makefile.msc

Reply via email to