Hi there,

I just did a rebuild of MITK, and got:

-- Creating CTK plugin org_mitk_gui_qt_imagenavigator
-- Creating CTK plugin org_mitk_gui_qt_pointsetinteraction
-- Creating CTK plugin org_mitk_gui_qt_volumevisualization
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden
-- Checking to see if CXX compiler accepts flag -fvisibility=hidden - yes
CMake Error at 
/scratch0/NOT_BACKED_UP/clarkson/install/cmake-2.8.11.2/share/cmake-2.8/Modules/FindQt3.cmake:40
 (message):
  Qt3 and Qt4 cannot be used together in one project.
Call Stack (most recent call first):
  
/scratch0/NOT_BACKED_UP/clarkson/install/cmake-2.8.11.2/share/cmake-2.8/Modules/FindQt.cmake:150
 (include)
  Applications/PluginGenerator/CMakeLists.txt:23 (find_package)

This is on Scientific Linux, and occurs after I upgraded from cmake-2.8.8 to 
cmake-2.8.11.2.

This is caused by this in FindQt.cmake distributed with CMake 2.8.11.2

if(DESIRED_QT_VERSION MATCHES 3)
  set(Qt3_FIND_REQUIRED ${Qt_FIND_REQUIRED})
  set(Qt3_FIND_QUIETLY  ${Qt_FIND_QUIETLY})
  include(${CMAKE_CURRENT_LIST_DIR}/FindQt3.cmake)

which is caused by

  if(QT3_INSTALLED AND NOT DESIRED_QT_VERSION EQUAL 4)
    set(DESIRED_QT_VERSION 3 CACHE STRING "Pick a version of Qt to use: 3 or 4")
  endif()

which has changed between version 2.8.8 and 2.8.11.2.

However, if I do:

#> pwd
/scratch0/NOT_BACKED_UP/clarkson/build/MITK
#> grep -r DESIRED_QT *
CMakeExternals/CTK.cmake:        -DDESIRED_QT_VERSION:STRING=4
CMakeExternals/VTK.cmake:        -DDESIRED_QT_VERSION:STRING=4
#> grep -ri "find_package(qt" *
Applications/PluginGenerator/ProjectTemplate/CMakeExternals/MITK.cmake:    
find_package(Qt4 4.6.0 REQUIRED)
Applications/PluginGenerator/CMakeLists.txt:find_package(Qt 4.6.2 REQUIRED)
BlueBerry/CMakeLists.txt:find_package(Qt4 4.6.2 REQUIRED)
CMake/PackageDepends/MITK_QT_Config.cmake:find_package(Qt4 REQUIRED)
CMake/mitkSetupVariables.cmake:  find_package(Qt4 REQUIRED)
CMakeExternals/QwtCMakeLists.txt:find_package(Qt4 REQUIRED)
CMakeExternals/QxtCMakeLists.txt:find_package(Qt4 REQUIRED)
CMakeLists.txt:  find_package(Qt4 4.6.2 REQUIRED)
Plugins/org.mitk.gui.qt.segmentation/documentation/UserManual/ToolExtensionsGeneralOverview.dox:find_package(Qt3)
Utilities/qtsingleapplication/CMakeLists.txt:find_package(Qt4 REQUIRED)

So I would imagine that:
Applications/PluginGenerator/CMakeLists.txt:find_package(Qt 4.6.2 REQUIRED)
should be changed to:
Applications/PluginGenerator/CMakeLists.txt:find_package(Qt4 4.6.2 REQUIRED)

before too many people hit this problem.

Thanks

Matt







------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to