[Insight-users] vtk and qt integration problem
Kaka85
hitimeric06 at yahoo.fr
Sat Jan 19 04:59:39 EST 2013
Hi there!
I would like to share with you the warning I am getting so that you can
advise me:
My concern is to integrate VTK and QT,
I am having an sample Program of the following CMAKELIST file:
#................................................................................
cmake_minimum_required(VERSION 2.8)
PROJECT(EventQtSlotConnect)
find_package(VTK REQUIRED)
include(${VTK_USE_FILE})
find_package(Qt REQUIRED)
INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
file(GLOB UI_FILES *.ui)
file(GLOB QT_WRAP *.h)
file(GLOB CXX_FILES *.cxx)
QT_WRAP_UI(UISrcs ${UI_FILES})
QT_WRAP_CPP(MOCSrcs ${QT_WRAP})
add_executable(EventQtSlotConnect MACOSX_BUNDLE ${CXX_FILES} ${UISrcs}
${MOCSrcs})
if(VTK_LIBRARIES)
if(${VTK_VERSION} VERSION_LESS "6")
target_link_libraries(EventQtSlotConnect ${VTK_LIBRARIES} QVTK)
else()
target_link_libraries(EventQtSlotConnect ${VTK_LIBRARIES})
endif()
else()
target_link_libraries(EventQtSlotConnect vtkHybrid QVTK vtkViews
${QT_LIBRARIES})
endif()
...........................................................
So when I configure the source code with CMake, I get warning message like:
CMake Error at CMakeLists.txt:17 (QT_WRAP_UI):
qt_wrap_ui called with incorrect number of arguments
CMake Error at CMakeLists.txt:18 (QT_WRAP_CPP):
qt_wrap_cpp called with incorrect number of arguments
Configuring incomplete, errors occurred!
The issue is I don't know the correct number of arguments of qt_wrap_ui, and
qt_wr_cpp.
I have been stucked for a long time.
Any help can be appreciated!!!
--
View this message in context: http://itk-users.7.n7.nabble.com/itkvtkglue-problem-tp30467p30563.html
Sent from the ITK - Users mailing list archive at Nabble.com.
More information about the Insight-users
mailing list