Hi Ale,<br><br>Libs:  LIBS += -L/usr/local/lib/ \<br>         -lITKCommon-4.2 \<br>         -lITKDICOMParser-4.2<br><br>In the source included headers: <br>#include &quot;itkImage.h&quot;<br>#include &quot;itkGDCMImageIO.h&quot;<br>
#include &quot;itkGDCMSeriesFileNames.h&quot;<br>#include &quot;itkImageSeriesReader.h&quot;<br>#include &quot;itkImageFileWriter.h&quot;<br>(actually I just copied the example from <a href="http://read.pudn.com/downloads126/sourcecode/others/536592/InsightToolkit-3.8.0/Examples/IO/DicomSeriesReadImageWrite2.cxx__.htm">here</a>. )<br>
<br>Thanks in advance, <br>Fabiola.<br><br><div class="gmail_quote">2012/9/28 Alessandro <span dir="ltr">&lt;<a href="mailto:notinmyhead@gmail.com" target="_blank">notinmyhead@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
could you post the complete set of libs you&#39;re trying to include in the project?<br>
<br>
Ale<br>
<br>
ps: please answer to the insight user list so it may be useful to all...<br>
<br>
Il giorno 27/set/2012, alle ore 16.55, Alessandro ha scritto:<br>
<div class="HOEnZb"><div class="h5"><br>
&gt; Since you&#39;re including 4.2 version of the include files, you need to change your library version to -lITKCommon-4.2 and so on<br>
&gt;<br>
&gt; Ale<br>
&gt;<br>
&gt; Il giorno 27/set/2012, alle ore 15.46, fabiola ha scritto:<br>
&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; I am sorry barging in with a silly question, but I am really stuck in the<br>
&gt;&gt; beginning: to compile an ITK example (DicomSeriesReadImageWrite2) in QT.<br>
&gt;&gt; I am using: Ubuntu 12.04, QT Creator 2.5.2 and ITK 4.2.<br>
&gt;&gt;<br>
&gt;&gt; I added ITK libraries to .pro like I did before for VTK (and it worked):<br>
&gt;&gt; INCLUDEPATH += /usr/local/include/vtk-5.10 \<br>
&gt;&gt;              /usr/local/include/ITK-4.2<br>
&gt;&gt;<br>
&gt;&gt; LIBS += -lvtkDICOMParser \<br>
&gt;&gt;       -lvtkRendering \<br>
&gt;&gt;       -lvtkCommon  \<br>
&gt;&gt;       -lvtkIO    \<br>
&gt;&gt;       -lvtkFiltering  \<br>
&gt;&gt;       -lQVTK \<br>
&gt;&gt;<br>
&gt;&gt; LIBS += -L/usr/local/lib/ \<br>
&gt;&gt;        -lITKCommon-4.1 \<br>
&gt;&gt;        -lITKDICOMParser-4.1<br>
&gt;&gt;<br>
&gt;&gt; QMAKE_CXXFLAGS += -Wno-deprecated<br>
&gt;&gt;<br>
&gt;&gt; but unfortunately the compiler telling me that: &quot;cannot find<br>
&gt;&gt; -lITKCommon-4.1&quot; (I checked, the libraries are in my /usr/local/lib...)<br>
&gt;&gt;<br>
&gt;&gt; Please help me out. I can&#39;t find any solution on the net, just seeing that<br>
&gt;&gt; the others had the same problem, but no solution...<br>
&gt;&gt;<br>
&gt;&gt; Thank you in advance,<br>
&gt;&gt; Fabiola.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context: <a href="http://itk-users.7.n7.nabble.com/ITK-QT-tp29470p29571.html" target="_blank">http://itk-users.7.n7.nabble.com/ITK-QT-tp29470p29571.html</a><br>
&gt;&gt; Sent from the ITK - Users mailing list archive at Nabble.com.<br>
&gt;&gt; _____________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt;&gt; <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt;&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
<br>
_____________________________________<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://www.kitware.com/products/protraining.php" target="_blank">http://www.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-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br>