[Insight-users] how can i use itk libs directly in c++
hossein nazem
hn_6112 at yahoo.com
Sun Aug 31 08:49:55 EDT 2008
hi,
Finally i found how to use ITK directly in c++. this is the solution:
1- add the header files pathes to the tools->options->projects and solutions->VC++ directories ->include files
2- add the path of ITK LIBs to tools->options->projects and solutions->VC++ directories ->library files
3- add these libraries to project->properties->configuration proprties->linker->input->additional dependency
($(NOINHERIT) kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib ITKSpatialObject.lib ITKCommon.lib ITKNrrdIO.lib itkgdcm.lib itktiff.lib itkjpeg8.lib itkjpeg12.lib itkjpeg16.lib itkpng.lib ITKMetaIO.lib ITKDICOMParser.lib ITKEXPAT.lib ITKniftiio.lib ITKznz.lib itkzlib.lib itkvnl_inst.lib itksys.lib itkopenjpeg.lib comctl32.lib wsock32.lib snmpapi.lib itkvnl_algo.lib itkv3p_netlib.lib itkvnl.lib itkvcl.lib ws2_32.lib )
3-according to the code you write you may need some other libs from ITK LIBs to add to the same place in step 3 (those libraries which were used in cmakelists.txt eg ITKIO.lib)
bye
Hossein Nazem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080831/ac89592c/attachment.htm>
More information about the Insight-users
mailing list