<div>Hi all,</div>
<div> </div>
<div>I'm trying to porting some application from Windows XP to Mac os X...</div>
<div>But i'm have a problem when I try to compiling the project</div>
<div>With make in the shell and with XCode, I have the same error during the linking process</div>
<div>-lITKIO not found...and every other lib of ITK</div>
<div> </div>
<div>I post here my cmake file if u can help me?!</div>
<div> </div>
<div>Thanks</div>
<div>Stefano</div>
<div> </div>
<div><font size="2">
<p><font face="arial,sans-serif" size="1">PROJECT(ItkVtkQtImageAnalyseReader)</font></p>
<p><font face="arial,sans-serif" size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1"># Find ITK.</font></p>
<p><font face="arial,sans-serif" size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1">FIND_PACKAGE(ITK)</font></p>
<p><font face="arial,sans-serif" size="1">IF(ITK_FOUND)</font></p>
<p><font face="arial,sans-serif" size="1"> INCLUDE(${ITK_USE_FILE})</font></p>
<p><font face="arial,sans-serif" size="1">ELSE(ITK_FOUND) </font></p>
<p><font face="arial,sans-serif" size="1"> MESSAGE(FATAL_ERROR "Cannot build without ITK. Please set ITK_DIR.")</font></p>
<p><font face="arial,sans-serif" size="1">ENDIF(ITK_FOUND)</font></p>
<p><font face="arial,sans-serif" size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1"># Find VTK.</font></p>
<p><font face="arial,sans-serif" size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1">FIND_PACKAGE(VTK)</font></p>
<p><font face="arial,sans-serif" size="1">IF(NOT VTK_DIR)</font></p>
<p><font face="arial,sans-serif" size="1"> MESSAGE(FATAL_ERROR "Please set VTK_DIR.")</font></p>
<p><font face="arial,sans-serif" size="1">ENDIF(NOT VTK_DIR)</font></p>
<p><font face="arial,sans-serif" size="1"> INCLUDE(${VTK_USE_FILE})</font></p>
<p><font face="arial,sans-serif" size="1">MARK_AS_ADVANCED(VTK_DIR)</font></p>
<p><font face="arial,sans-serif" size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1"># use what QVTK built with</font></p>
<p><font face="arial,sans-serif" size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1">SET(QT_MOC_EXECUTABLE ${VTK_QT_MOC_EXECUTABLE} CACHE FILEPATH "")</font></p>
<p><font face="arial,sans-serif" size="1">SET(QT_UIC_EXECUTABLE ${VTK_QT_UIC_EXECUTABLE} CACHE FILEPATH "")</font></p>
<p><font face="arial,sans-serif" size="1">SET(QT_QMAKE_EXECUTABLE ${VTK_QT_QMAKE_EXECUTABLE} CACHE FILEPATH "")</font></p>
<p><font face="arial,sans-serif" size="1">SET(DESIRED_QT_VERSION ${VTK_DESIRED_QT_VERSION} CACHE FILEPATH "")</font></p>
<p><font face="arial,sans-serif" size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1"># Find QT</font></p>
<p><font face="arial,sans-serif" size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1">FIND_PACKAGE(Qt)</font></p>
<p><font face="arial,sans-serif" size="1">IF(QT_USE_FILE)</font></p>
<p><font face="arial,sans-serif" size="1"> INCLUDE(${QT_USE_FILE})</font></p>
<p><font face="arial,sans-serif" size="1">ELSE(QT_USE_FILE)</font></p>
<p><font face="arial,sans-serif" size="1"> SET(QT_LIBRARIES ${QT_QT_LIBRARY})</font></p>
<p><font face="arial,sans-serif" size="1">ENDIF(QT_USE_FILE)</font></p>
<p><font face="arial,sans-serif" size="1">MARK_AS_ADVANCED(QT_QMAKE_EXECUTABLE)</font></p>
<p><font face="arial,sans-serif" size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1"># Use the include path and library for Qt that is used by VTK.</font></p>
<p><font face="arial,sans-serif" size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1">INCLUDE_DIRECTORIES(</font></p>
<p><font face="arial,sans-serif" size="1">${QT_INCLUDE_DIR}</font></p>
<p><font face="arial,sans-serif" size="1">${CMAKE_CURRENT_BINARY_DIR}</font></p>
<p><font face="arial,sans-serif" size="1">${CMAKE_CURRENT_SOURCE_DIR}</font></p>
<p><font face="arial,sans-serif" size="1">)</font></p>
<p><font face="arial,sans-serif" size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1"># SETTING and WRAPPING</font></p>
<p><font face="arial,sans-serif" size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1">SET (ImageAnalyseReaderSrcs</font></p>
<p><font face="arial,sans-serif" size="1">main.cxx </font></p>
<p><font face="arial,sans-serif" size="1">)</font></p>
<p><font face="arial,sans-serif" size="1">IF(DESIRED_QT_VERSION MATCHES 4)</font></p>
<p><font face="arial,sans-serif" size="1"></font></p>
<p><font face="arial,sans-serif" size="1">SET(ImageAnalyseReaderSrcs ${ImageAnalyseReaderSrcs} analyseViewerWindow.cxx matrixWindow.cxx ACOSWidget.cxx imageReader.cxx anglesWindow.cxx )</font></p>
<p><font face="arial,sans-serif" size="1">SET (ImageAnalyseReaderHeaders analyseViewerWindow.h matrixWindow.h ACOSWidget.h imageReader.h anglesWindow.h )</font></p>
<p><font face="arial,sans-serif" size="1">QT4_WRAP_CPP(MOCSrcs ${ImageAnalyseReaderHeaders} )</font></p>
<p><font face="arial,sans-serif" size="1">ADD_DEFINITIONS(-DQT_CORE_LIB -DQT3_SUPPORT)</font></p>
<p><font face="arial,sans-serif" size="1"></font></p>
<p><font face="arial,sans-serif" size="1">ELSE(DESIRED_QT_VERSION MATCHES 4)</font></p>
<p><font face="arial,sans-serif" size="1"></font></p>
<p><font face="arial,sans-serif" size="1">SET(ImageAnalyseReaderSrcs ${ImageAnalyseReaderSrcs} analyseViewerWindow.cxx matrixWindow.cxx ACOSWidget.cxx imageReader.cxx anglesWindow.cxx )</font></p>
<p><font face="arial,sans-serif" size="1">SET (ImageAnalyseReaderHeaders analyseViewerWindow.h matrixWindow.h ACOSWidget.h imageReader.h anglesWindow.h )</font></p>
<p><font face="arial,sans-serif" size="1">QT_WRAP_CPP( ImageAnalyseReader MOCSrcs ${ImageAnalyseReaderHeaders} )</font></p>
<p><font face="arial,sans-serif" size="1">ENDIF(DESIRED_QT_VERSION MATCHES 4)</font></p>
<p><font face="arial,sans-serif" size="1"> </font></p>
<p><font face="arial,sans-serif" size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1"># Disable deprecated function warning = #pragma warning(disable : 4996)</font></p>
<p><font face="arial,sans-serif" size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1">ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)</font></p>
<p><font face="arial,sans-serif" size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1"># ADDING EXECUTABLE</font></p>
<p><font face="arial,sans-serif" size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1">ADD_EXECUTABLE( ImageAnalyseReader ${ImageAnalyseReaderSrcs} ${MOCSrcs})</font></p>
<p><font face="arial,sans-serif" size="1"> </font></p>
<p><font face="arial,sans-serif" size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1"># LIBRARIES LINKING</font></p>
<p><font face="arial,sans-serif" size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1">TARGET_LINK_LIBRARIES( ImageAnalyseReader</font></p>
<p><font face="arial,sans-serif" size="1">QVTK</font></p>
<p><font face="arial,sans-serif" size="1">${QT_LIBRARIES}</font></p>
<p><font size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1"></font></p>
<p><font face="arial,sans-serif" size="1"></font></p>
<p><font face="arial,sans-serif" size="1"># ITK libraries</font></p>
<p><font face="arial,sans-serif" size="1">ITKIO </font></p>
<p><font face="arial,sans-serif" size="1">ITKBasicFilters </font></p>
<p><font face="arial,sans-serif" size="1">ITKNumerics </font></p>
<p><font face="arial,sans-serif" size="1">ITKCommon </font></p>
<p><font size="1">####################################################################################</font></p>
<p><font face="arial,sans-serif" size="1"></font></p>
<p><font face="arial,sans-serif" size="1"># VTK libraries</font></p>
<p><font face="arial,sans-serif" size="1">vtkRendering </font></p>
<p><font face="arial,sans-serif" size="1">vtkGraphics </font></p>
<p><font face="arial,sans-serif" size="1">vtkHybrid </font></p>
<p><font face="arial,sans-serif" size="1">vtkImaging </font></p>
<p><font face="arial,sans-serif" size="1">vtkIO </font></p>
<p><font face="arial,sans-serif" size="1">vtkFiltering </font></p>
<p><font face="arial,sans-serif" size="1">vtkCommon </font></p>
<p><font face="arial,sans-serif" size="1">vtkWidgets</font></p>
<p><font face="arial,sans-serif" size="1">)</font></p>
<p><font face="arial,sans-serif" size="1"> </font></p>
<p><font face="arial,sans-serif" size="1"> </font></p>
<p><font face="arial,sans-serif" size="1"> </font></p>
<p><font face="arial,sans-serif" size="1"> </font></p></font></div>
<div><font face="arial,sans-serif" size="1"></font> </div>
<div><font face="arial,sans-serif" size="1"></font> </div>