MantisBT - CMake
View Issue Details
0014852CMakeCMakepublic2014-03-31 03:362016-06-10 14:31
Yew Kurabayashi  
Kitware Robot 
normalminoralways
closedmoved 
x64Windows7
CMake 2.8.12.2 
 
0014852: Can't stop including Qt 4. I want to use Qt 5.
  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 [^]
  Generate a solution for MSVC 2012 Win64 with the CmakeLists.txt, then build it by Visual Studio.
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
No tags attached.
related to 0014811closed Kitware Robot Too many include paths are set to AM_MOC_INCLUDES in AutomocInfo.cmake then the build fails. 
txt MSVCOutput.txt (3,388) 2014-03-31 03:36
https://public.kitware.com/Bug/file/5111/MSVCOutput.txt
zip src.zip (3,588) 2014-03-31 03:37
https://public.kitware.com/Bug/file/5112/src.zip
txt CMakeLists.txt (652) 2014-03-31 03:37
https://public.kitware.com/Bug/file/5113/CMakeLists.txt
Issue History
2014-03-31 03:36Yew Kurabayashi New Issue
2014-03-31 03:36Yew Kurabayashi File Added: MSVCOutput.txt
2014-03-31 03:37Yew Kurabayashi File Added: src.zip
2014-03-31 03:37Yew Kurabayashi File Added: CMakeLists.txt
2014-03-31 09:13Brad KingRelationship addedrelated to 0014811
2016-06-10 14:29Kitware RobotNote Added: 0042524
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042524)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.