Am Mittwoch, 25. Juni 2014 um 00:23:03, schrieb Uwe Stöhr <uwesto...@web.de> > Dear LyX developers, > > thanks to a mainboard crash I had again to setup my complete build > system and after 6 hours of trying to compile LyX I am a bit lost. > > There are several problems that I cannot solve: > > - I have now Win 7 64bit and installed MSVC2010. MSVC2010 requires the > .net framework version 4.0, but my graphics driver requires .net 4.5. > Unfortunately when .net 4.5 is installed, .net 4.0 is removed because it > is not compatible with 4.5. > I read the Miscrosoft pages and they say one should upgrade to MSVC > 2012. But they only offer the newer MSVC 2013. I installed it. > > - I installed the openGL version of Qt 5.3 But this version is > incompatible with CMake because CMake wants to find a library called > glu32. This library does not exist and all attempts to fix this issue as > written in the Internet failed for me. It turned out that one must > install a non-openGL version of Qt. So I uninstalled Qt 5.3 and > re-installed it without OpenGL. > > Now the glu32-problem is solved, but CMake still makes problems: > > - CMake Warning at CMakeLists.txt:549 (find_package): > By not providing "FindQt5X11Extras.cmake" in CMAKE_MODULE_PATH this > project has asked CMake to find a package configuration file provided by > "Qt5X11Extras", but CMake did not find one.
This is expected on windows, please ignore. It means, you are not able to tests with xvkbd command (which works only on X11). BTW, lyx with Qt5 is still experimental IMHO. > But there is no Qt5X11 folder nor such files in the Windows releases of Qt. > > After configuring and pressing "Generate" in the CMake-gui, I get tons > of these 2 warnings: > > - CMake Warning (dev) in src/CMakeLists.txt: > Policy CMP0020 is not set: Automatically link Qt executables to qtmain > target on Windows. Run "cmake --help-policy CMP0020" for policy details. > Use the cmake_policy command to set the policy and suppress this > warning. This warning is for project developers. Use -Wno-dev to > suppress it. > CMake Warning (dev) at src/CMakeLists.txt:106 (add_executable): > Policy CMP0028 is not set: Double colon in target name means ALIAS or > IMPORTED target. Run "cmake --help-policy CMP0028" for policy details. > Use the cmake_policy command to set the policy and suppress this warning. > CMake Warning (dev) in src/CMakeLists.txt: > Policy CMP0043 is not set: Ignore COMPILE_DEFINITIONS_<Config> > properties. > Run "cmake --help-policy CMP0043" for policy details. Use the > cmake_policy > command to set the policy and suppress this warning. > This warning is for project developers. Use -Wno-dev to suppress it. > Please ignore. Seen this on other projects too. > Then I also get this warning, although I specified the path to the > Qt5::Concurrent CMake folder of Qt: > > - Target "LyX" links to target "Qt5::Concurrent" but the target was not > found. Perhaps a find_package() call is missing for an IMPORTED > target, or > an ALIAS target is missing? > This warning is for project developers. Use -Wno-dev to suppress it. > > > Finally CMake stops with these errors: > > - CMake Error: Error required internal CMake variable not set, cmake may > be not be built correctly. > Missing variable is: CMAKE_CXX_FLAGS_ DEBUG > > But its value is set: > /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 > > The same appears for these variables: > > CMAKE_CXX_FLAGS_ MINSIZEREL > CMAKE_CXX_FLAGS_ RELWITHDEBINFO > CMAKE_CXX_FLAGS_ DEBUG > CMAKE_CXX_FLAGS_ MINSIZEREL > CMAKE_CXX_FLAGS_ RELWITHDEBINFO > > which are all set in CMake. > > > When I want now compile LyX, I get this error > > D:\LyXGit\Master\compile-result\lyx.sln.metaproj : error MSB4126: The > project map configuration "Release|x64" is invalid. > > But I have nowhere set "x64" as configuration and can also not find such > a setting in CMake. > > Nevertheless the compilation starts and I get this compiler warning: > > "D:\LyXGit\Master\compile-result\src\LyX.vcxproj" (Standardziel) (3) -> > (ClCompile Ziel) -> > ..\..\src\Paragraph.cpp(3855): warning C4018: '<': conflict between > 'signed' and 'unsigned' [D:\LyXGit\Master\compile-resul\src\LyX.vcxproj] > > > Sorry for being again such a noob with the compile business but I am > again completely lost. > I also tried to use Qt 4.8.6 with MSCV 2013 but when I choose this > compiler for LyX 2.1.x CMake always wants to use Qt 5. I even > uninstalled Qt 5.3 but then CMake says, that Qt cannot be found. Only if > I use MSVC 2010 as compiler CMake accepts Qt 4.8.6. But MSVC 2010 is no > option as I mentioned. You may have to remove CMakeCache.txt first. Guessing only. > So what I need is a way to compile LyX 2.1.x using either Qt 4.8.x or Qt > 5.3 using MSVC 2013. Is this possible? and if yes, how? For 2.1, you have to deinstall Qt5 and remove the CMakeCache. We made some changes (use -DLYX_USE_QT=QT4) for trunk, but not for lyx 2.1. If you could try this, and it works, we should backport ... > many thanks in advance and again sorry for my technical limitations > Uwe Kornel
signature.asc
Description: This is a digitally signed message part.