<div dir="ltr"><br><div class="gmail_extra">Hi guys, thank you for you reply!<br><br></div><div class="gmail_extra">Actually, I did it all... But still getting the same error message!<br><br>project(teste)<br><br>cmake_minimum_required(VERSION 2.4.0)<br>
<br>find_package(Qt4 REQUIRED)<br><br>SET(qtproject_UIS<br> mainwindow.ui)<br><br>QT4_WRAP_UI(qtproject_UIS_H ${qtproject_UIS})<br><br>find_package(ITK REQUIRED)<br><br> include(${QT_USE_FILE})<br><br> include(${ITK_USE_FILE})<br>
<br>include_directories(${CMAKE_CURRENT_BINARY_DIR})<br><br>add_executable(teste ${qtproject_SRCS} ${qtproject_UIS_H} main.cpp)<br><br>TARGET_LINK_LIBRARIES(teste ${ITK_LIBRARIES} ${QT_LIBRARIES} )<br></div><div class="gmail_extra">
<br><div class="gmail_quote">On 24 April 2013 16:12, Xiaoxiao Liu <span dir="ltr"><<a href="mailto:xiaoxiao.liu@kitware.com" target="_blank">xiaoxiao.liu@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><font face="arial, sans-serif"><span style="font-size:12.6667px">What is the ITK version ?</span></font><div><font face="arial, sans-serif"><span style="font-size:12.6667px">You may want to try the following:</span></font></div>
<div><font face="arial, sans-serif"><span style="font-size:12.6667px"><br></span></font><div><font face="arial, sans-serif"><div style="font-size:12.6667px">find_package(ITK REQUIRED)</div><div style="font-size:12.6667px">
<span style="background-color:rgb(255,0,255)">include(${ITK_USE_FILE})</span></div><div><span style="font-size:12.6667px">TARGET_LINK_LIBRARIES(IntegracaoITK</span><span style="background-color:rgb(255,0,255)"> </span><span style="font-size:12.6667px"><span style="background-color:rgb(255,0,255)">${ITK_LIBRARIES}</span> ${QT_LIBRARIES})</span></div>
</font></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Wed, Apr 24, 2013 at 3:04 PM, Gabriel Santiago <span dir="ltr"><<a href="mailto:santiago.eletrica@gmail.com" target="_blank">santiago.eletrica@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div><div>Dear all,<br><br></div>I am trying to develop a code in QT using ITK but I am having some problems.<br>
</div>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:<br>
<br>/usr/local/include/InsightToolkit/BasicFilters/itkCannyEdgeDetectionImageFilter.h:20: error: itkImageToImageFilter.h: No such file or directory<br><br></div>When I open the .h file, some libraries are highlighted with the same error but some don't. My CMakeLists.txt is this:<br>
<br>project(IntegracaoITK)<br><br>cmake_minimum_required(VERSION 2.4.0)<br><br>find_package(Qt4 REQUIRED)<br><br>SET(qtproject_UIS mainwindow.ui)<br><br>QT4_WRAP_UI(qtproject_UIS_H ${qtproject_UIS})<br><br>find_package(ITK REQUIRED)<br>
<br>include_directories(${CMAKE_CURRENT_BINARY_DIR})<br><br>add_executable(IntegracaoITK ${qtproject_SRCS} ${qtproject_UIS_H} main.cpp)<br>TARGET_LINK_LIBRARIES(IntegracaoITK ITKCommon ITKIO ITKBasicFilters ITKAlgorithms ITKNumerics ITKSpatialObjetcs ITKReview ITKPatented ITKUtilities ITKgdcm ${QT_LIBRARIES})<br>
<br></div>
I am pretty sure this is a very simple question, but I have no experience at all using CMake.<br><br></div>Thank you all in advance,<span><font color="#888888"><br clear="all"><br>-- <br>Gabriel Santiago<br>
<br>~"As long as I live so long do I learn"~<div>
Ramakhrishna</div>
</font></span></div>
<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
<br></blockquote></div><span class=""><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><br></div><div><br></div>---------------------------------------------<br><b>Xiaoxiao Liu</b>, Ph.D.<div><div><div>
<font face="arial, sans-serif"><span style="border-collapse:collapse">R & D Engineer</span></font></div>
<div><div><a href="http://www.kitware.com/" target="_blank">Kitware Inc</a>.</div></div><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">Clifton Park, NY</span><div><div>Phone: <a href="tel:%28518%29%20881-4924" value="+555188814924" target="_blank">(518) 881-4924</a> or <span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="tel:%28518%29%20371-3971%20x124" value="+555183713971" target="_blank">(518) 371-3971 x124</a></span></div>
<div><font face="Verdana, Arial, Helvetica, sans-serif"><span style="line-height:31px;font-size:x-small"><br></span></font></div></div></div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br>Gabriel Santiago<br><br>~"As long as I live so long do I learn"~<div>Ramakhrishna</div>
</div></div>