<div dir="ltr"><div><div>Guys, I just solved the problem... But now there is another one:<br><br></div>I can access the libraries from my Qt project, but when I try to compile, I get the following error message:<br><br>/usr/local/include/InsightToolkit/BasicFilters/itkCannyEdgeDetectionImageFilter.h:20: error: itkImageToImageFilter.h: No such file or directory<br>
<br></div>I did the standard way to install ITK and at the end, I did &quot;sudo make install&quot; to install in the path search for CMake. (I don&#39;t know if this can be an issue.) Not sure if this is the right place for this, but anyway...<br>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 24 April 2013 15:04, John Drescher <span dir="ltr">&lt;<a href="mailto:drescherjm@gmail.com" target="_blank">drescherjm@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">&gt; project(test)<br>
&gt;<br>
&gt; cmake_minimum_required(VERSION 2.4.0)<br>
&gt;<br>
&gt; find_package(Qt4 REQUIRED)<br>
&gt;<br>
&gt; SET(qtproject_UIS mainwindow.ui)<br>
&gt;<br>
&gt; QT4_WRAP_UI(qtproject_UIS_H ${qtproject_UIS})<br>
&gt;<br>
&gt; include_directories(${CMAKE_<br>
&gt; CURRENT_BINARY_DIR})<br>
&gt;<br>
&gt; add_executable(test ${qtproject_SRCS} ${qtproject_UIS_H} main.cpp)<br>
&gt;<br>
&gt; TARGET_LINK_LIBRARIES(test ITKCommon ITKIO ITKBasicFilters)<br>
&gt;<br>
<br>
</div>Okay, I was wrong about not having any source files. I see main.cpp<br>
being a source file even though ${qtproject_SRCS} is not populated.<br>
<br>
Also if you are going to use ITK then you need to use a finder for<br>
that as well..<br>
<span class="HOEnZb"><font color="#888888"><br>
John<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Gabriel Santiago<br><br>~&quot;As long as I live so long do I learn&quot;~<div>Ramakhrishna</div>
</div></div>