Thanks for replying Paul. I tried it the way u mentioned using qmake and now my Visual studio project gives me an error saying that it cannot find the file-${ITK_DIR}/bin/debug.obj<br>I searched for this file and found that there is no such file. What am I doing wrong here?
<br>Can anyone please help me out?<br><br>Thanks,<br>Ashish<br><br><div><span class="gmail_quote">On 1/14/07, <b class="gmail_sendername">Paul Koshevoy</b> <<a href="mailto:paul@aragog.com">paul@aragog.com</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ashish Singh wrote:<br>> Hi,<br>><br>> I am trying to integrate my simple ITK application with Qt. I am using
<br>> qmake, but having problems writing the ',pro' file. After I provide the<br>> paths to include files and libraries and run qmake from the command<br>> prompt, I get the '.vcproj' file. When I try to build this project from
<br>> inside the visual studio, it is not able to find the header file-<br>> 'vnl/vnl_vector.h' and gives me the following error.<br>><br>> c:\myinstalls\itk\insighttoolkit-3.0.0\code\io\itkImageIOBase.h
(24) :<br>> fatal error C1083: Cannot open include file: 'vnl/vnl_vector.h': No such<br>> file or directory<br>><br>> I have included the path to 'vnl_vector.h' in my qmake '.pro' file. I am
<br>> not able to figure out why is it not able to find the path. I tried Qt<br>> with ITk, using Cmake, but there my visual studio project cannot find<br>> the file ' qapplication.h', although I have the right paths and
<br>> libraries in place. Can anyone please tell me where am I going wrong?<br>> Or else guide me to use ITK with Qt, either using qmake or cmake.<br>><br>> Thanks,<br>> Ashish<br>><br><br>I had to add the following to my .pro file to get my Qt4 program to work with
<br>ITK 2.8.1:<br><br>LIBS += -L$$(ITK_DIR)/bin \<br> -lITKNumerics \<br> -lITKIO \<br> -lITKNrrdIO \<br> -litkgdcm \<br> -litkjpeg12 \<br>
-litkjpeg16 \<br> -litkopenjpeg \<br> -litkpng \<br> -litktiff \<br> -litkjpeg8 \<br> -lITKSpatialObject \<br> -lITKNumerics \
<br> -lITKCommon \<br> -litkvnl_inst \<br> -litkvnl_algo \<br> -litkvnl \<br> -litknetlib \<br> -litkvcl \<br> -lm \
<br> -litksys \<br> -lITKMetaIO \<br> -lITKDICOMParser \<br> -lITKEXPAT \<br> -lITKniftiio \<br> -lITKznz \<br> -litkzlib \
<br> -lm<br><br><br>INCLUDEPATH += $$(ITK_DIR)/Utilities/vxl/core \<br> $$(ITK_DIR)/Utilities/vxl/vcl \<br> $$(ITK_SOURCE_DIR)/Utilities/vxl/core \<br> $$(ITK_SOURCE_DIR)/Utilities/vxl/vcl \
<br> $$(ITK_SOURCE_DIR)/Utilities \<br> $$(ITK_DIR)/Utilities \<br> $$(ITK_DIR)/Utilities/gdcm \<br> $$(ITK_SOURCE_DIR)/Utilities/nifti/znzlib \<br> $$(ITK_SOURCE_DIR)/Utilities/nifti/niftilib \
<br> $$(ITK_SOURCE_DIR)/Utilities/expat \<br> $$(ITK_DIR)/Utilities/expat \<br> $$(ITK_DIR)/Utilities/DICOMParser \<br> $$(ITK_SOURCE_DIR)/Utilities/DICOMParser \
<br> $$(ITK_SOURCE_DIR)/Utilities/NrrdIO \<br> $$(ITK_SOURCE_DIR)/Utilities/MetaIO \<br> $$(ITK_SOURCE_DIR)/Code/SpatialObject \<br> $$(ITK_SOURCE_DIR)/Code/Numerics/NeuralNetworks \
<br> $$(ITK_SOURCE_DIR)/Code/Numerics/Statistics \<br> $$(ITK_SOURCE_DIR)/Code/Numerics/FEM \<br> $$(ITK_SOURCE_DIR)/Code/IO \<br> $$(ITK_SOURCE_DIR)/Code/Numerics \
<br> $$(ITK_SOURCE_DIR)/Code/Common \<br> $$(ITK_SOURCE_DIR)/Code/BasicFilters \<br> $$(ITK_SOURCE_DIR)/Code/Algorithms \<br> $$(ITK_DIR)<br><br>Here ITK_DIR points to the ITK build directory (ITK_BINARY_DIR), and
<br>ITK_SOURCE_DIR points to the ITK source directory.<br><br>Hope this helps,<br> Paul.<br><br>--<br>To unsubscribe - send a mail to <a href="mailto:qt-interest-request@trolltech.com">qt-interest-request@trolltech.com
</a> with "unsubscribe" in the subject or the body.<br>List archive and information: <a href="http://lists.trolltech.com/qt-interest/">http://lists.trolltech.com/qt-interest/</a><br><br></blockquote></div><br>