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                   

======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to