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 "itkImage.h"<br>#include "itkGDCMImageIO.h"<br>
#include "itkGDCMSeriesFileNames.h"<br>#include "itkImageSeriesReader.h"<br>#include "itkImageFileWriter.h"<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"><<a href="mailto:notinmyhead@gmail.com" target="_blank">notinmyhead@gmail.com</a>></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'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>
> Since you're including 4.2 version of the include files, you need to change your library version to -lITKCommon-4.2 and so on<br>
><br>
> Ale<br>
><br>
> Il giorno 27/set/2012, alle ore 15.46, fabiola ha scritto:<br>
><br>
>> Hello,<br>
>><br>
>> I am sorry barging in with a silly question, but I am really stuck in the<br>
>> beginning: to compile an ITK example (DicomSeriesReadImageWrite2) in QT.<br>
>> I am using: Ubuntu 12.04, QT Creator 2.5.2 and ITK 4.2.<br>
>><br>
>> I added ITK libraries to .pro like I did before for VTK (and it worked):<br>
>> INCLUDEPATH += /usr/local/include/vtk-5.10 \<br>
>> /usr/local/include/ITK-4.2<br>
>><br>
>> LIBS += -lvtkDICOMParser \<br>
>> -lvtkRendering \<br>
>> -lvtkCommon \<br>
>> -lvtkIO \<br>
>> -lvtkFiltering \<br>
>> -lQVTK \<br>
>><br>
>> LIBS += -L/usr/local/lib/ \<br>
>> -lITKCommon-4.1 \<br>
>> -lITKDICOMParser-4.1<br>
>><br>
>> QMAKE_CXXFLAGS += -Wno-deprecated<br>
>><br>
>> but unfortunately the compiler telling me that: "cannot find<br>
>> -lITKCommon-4.1" (I checked, the libraries are in my /usr/local/lib...)<br>
>><br>
>> Please help me out. I can't find any solution on the net, just seeing that<br>
>> the others had the same problem, but no solution...<br>
>><br>
>> Thank you in advance,<br>
>> Fabiola.<br>
>><br>
>><br>
>><br>
>> --<br>
>> 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>
>> Sent from the ITK - Users mailing list archive at Nabble.com.<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>
><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>