[cmake-developers] [CMake 0014852]: Can't stop including Qt 4. I want to use Qt 5.
Mantis Bug Tracker
mantis at public.kitware.com
Mon Mar 31 03:36:02 EDT 2014
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14852
======================================================================
Reported By: Yew Kurabayashi
Assigned To:
======================================================================
Project: CMake
Issue ID: 14852
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2014-03-31 16:36 JST
Last Modified: 2014-03-31 16:36 JST
======================================================================
Summary: Can't stop including Qt 4. I want to use Qt 5.
Description:
When I build a solution of MSVC 2012 generated from the source files in the
attached file, "sampleSources.zip", the build process fails every time. The
error is caused by including Qt 4 library by CMake while I want to use Qt 5 in
my codes. The error message from MSVC is attached as the file, "MSVCOutput.txt"
(Japanese messages are translated by me in [ ]).
I know that if I remove 23 include paths of Qt 4 in Visual Studio or from the
project file then the build succeeds but it is a cumbersome task.
Even if I remove the entries related to Qt 4 in CMake GUI, they come back
again at the next time configuration.
There are no entries related to Qt 4 in the environment variables in my
machine.
I can't remove Qt 4 installation from my machine because ITK, VTK and ParaView
still seem to use Qt 4 and I use these Kitware libraries.
So, does CMake provide a way to choose the version of Qt between 4 and 5? If
not, please implement it.
I searched information about this problem in the Web, but I couldn't find any
answers. If someone has good advice, please let know.
Best regards.
This issue follows the following issue but is about another problem.
0014811: Too many include paths are set to AM_MOC_INCLUDES in AutomocInfo.cmake
then the build fails. - MantisBT
http://public.kitware.com/Bug/view.php?id=14811
Steps to Reproduce:
Generate a solution for MSVC 2012 Win64 with the CmakeLists.txt, then build it
by Visual Studio.
Additional Information:
List of softwares, libraries:
Microsoft Visual Studio Express 2013 for Windows Desktop
(Solution generated with CMake is for MSVC 2012)
Solution Platform: x64
Qt 5.2.1
Qt 4.8.5
ITK 4.5.1
ParaView 4.1.0
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-03-31 16:36 Yew Kurabayashi New Issue
2014-03-31 16:36 Yew Kurabayashi File Added: MSVCOutput.txt
======================================================================
More information about the cmake-developers
mailing list