By the way, the ITK version is 3.20.1...
On 24 April 2013 16:14, Gabriel Santiago <[email protected]>wrote: > > Hi guys, thank you for you reply! > > Actually, I did it all... But still getting the same error message! > > project(teste) > > > cmake_minimum_required(VERSION 2.4.0) > > find_package(Qt4 REQUIRED) > > SET(qtproject_UIS > mainwindow.ui) > > QT4_WRAP_UI(qtproject_UIS_H ${qtproject_UIS}) > > find_package(ITK REQUIRED) > > include(${QT_USE_FILE}) > > include(${ITK_USE_FILE}) > > include_directories(${CMAKE_CURRENT_BINARY_DIR}) > > add_executable(teste ${qtproject_SRCS} ${qtproject_UIS_H} main.cpp) > > TARGET_LINK_LIBRARIES(teste ${ITK_LIBRARIES} ${QT_LIBRARIES} ) > > On 24 April 2013 16:12, Xiaoxiao Liu <[email protected]> wrote: > >> What is the ITK version ? >> You may want to try the following: >> >> find_package(ITK REQUIRED) >> include(${ITK_USE_FILE}) >> TARGET_LINK_LIBRARIES(IntegracaoITK ${ITK_LIBRARIES} ${QT_LIBRARIES}) >> >> >> On Wed, Apr 24, 2013 at 3:04 PM, Gabriel Santiago < >> [email protected]> wrote: >> >>> Dear all, >>> >>> I am trying to develop a code in QT using ITK but I am having some >>> problems. >>> I am using CMake to add the files to the code, as I would do in Eclipse, >>> with the proper changes (bellow), but I'm getting this error message: >>> >>> /usr/local/include/InsightToolkit/BasicFilters/itkCannyEdgeDetectionImageFilter.h:20: >>> error: itkImageToImageFilter.h: No such file or directory >>> >>> When I open the .h file, some libraries are highlighted with the same >>> error but some don't. My CMakeLists.txt is this: >>> >>> project(IntegracaoITK) >>> >>> cmake_minimum_required(VERSION 2.4.0) >>> >>> find_package(Qt4 REQUIRED) >>> >>> SET(qtproject_UIS mainwindow.ui) >>> >>> QT4_WRAP_UI(qtproject_UIS_H ${qtproject_UIS}) >>> >>> find_package(ITK REQUIRED) >>> >>> include_directories(${CMAKE_CURRENT_BINARY_DIR}) >>> >>> add_executable(IntegracaoITK ${qtproject_SRCS} ${qtproject_UIS_H} >>> main.cpp) >>> TARGET_LINK_LIBRARIES(IntegracaoITK ITKCommon ITKIO ITKBasicFilters >>> ITKAlgorithms ITKNumerics ITKSpatialObjetcs ITKReview ITKPatented >>> ITKUtilities ITKgdcm ${QT_LIBRARIES}) >>> >>> I am pretty sure this is a very simple question, but I have no >>> experience at all using CMake. >>> >>> Thank you all in advance, >>> >>> -- >>> Gabriel Santiago >>> >>> ~"As long as I live so long do I learn"~ >>> Ramakhrishna >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Kitware offers ITK Training Courses, for more information visit: >>> http://kitware.com/products/protraining.php >>> >>> Please keep messages on-topic and check the ITK FAQ at: >>> http://www.itk.org/Wiki/ITK_FAQ >>> >>> Follow this link to subscribe/unsubscribe: >>> http://www.itk.org/mailman/listinfo/insight-developers >>> >>> >> >> >> -- >> >> >> --------------------------------------------- >> *Xiaoxiao Liu*, Ph.D. >> R & D Engineer >> Kitware Inc <http://www.kitware.com/>. >> Clifton Park, NY >> Phone: (518) 881-4924 or (518) 371-3971 x124 >> >> > > > -- > Gabriel Santiago > > ~"As long as I live so long do I learn"~ > Ramakhrishna > -- Gabriel Santiago ~"As long as I live so long do I learn"~ Ramakhrishna
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Kitware offers ITK Training Courses, for more information visit: http://kitware.com/products/protraining.php Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ Follow this link to subscribe/unsubscribe: http://www.itk.org/mailman/listinfo/insight-developers
