Uwe Stöhr
2014-06-24 22:23:03 UTC
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.
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.
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.
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?
many thanks in advance and again sorry for my technical limitations
Uwe
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.
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.
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.
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?
many thanks in advance and again sorry for my technical limitations
Uwe