Am Dienstag, 12. Januar 2016 um 00:25:37, schrieb Uwe Stöhr <uwesto...@web.de> > Am 11.01.2016 um 23:50 schrieb Kornel Benko: > > > it is -DLYX_3RDPARTY_BUILD=ON added to the call to cmake. > > I tried this but it won't work. > > What I did now is: > - delete everything from CMake (cache) > - run Cmake from scratch > > This way found bugs: > > * for hunspell_include_dir I get this path: > D:/LyXGit/Master/3rdparty/hunspell/1.3.3/src > * for iconv_include_dir I get this path: > D:/LyXGit/Master/compile-2010/libiconv/include > > This seems wrong to me. I expect that in both cases the files from > D:/LyXGit/Master/3rdparty are taken. and indeed when generating CMake it > tells me that it cannot find iconv.
You are right. Looks like somehow the variable 'UNIX' is set, because for windows the package ICONV should no be searched. Please try attached patch. > besides this: I cannot click behind the path of hunspell_include_dir and > iconv_include_dir to change their path. > > I compiled now anyway and get at first this new error: > > GuiBibtex.cpp > ..\..\..\..\src\frontends\qt4\GuiApplication.cpp(134): fatal error > C1083: Datei (Include) kann nicht geöffnet werden: "QWinMime": No such > file or directory > [D:\LyXGit\Master\compile-2010\src\frontends\qt4\frontend_qt.vcxproj] > > This is another CMake bug because I explicitly set to use Qt5 in CMake > and not Qt4. Don't be mislead from the qt4-dir. This is OK, 'qt4' should be renamed to 'qt' sometime. > Could you please help me here? > > many thanks in advance and regards > Uwe Kornel
signature.asc
Description: This is a digitally signed message part.
diff --git a/CMakeLists.txt b/CMakeLists.txt index f657fd5..0673adb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -673,7 +673,7 @@ if(LYX_NLS) endif() endif() -if(UNIX) +if(NOT WIN32) find_package(ICONV REQUIRED) find_package(ZLIB REQUIRED) else()