<DIV>The only problem I had with VTK 4.2 (VTK_USE_HYBRID ON) and InsightApplications 1.8 was: can't open include file: vtkImageMarchingCubes.h & vtkDecimate.h in compiling DeformableModelApplication.cxx. After some searching I noticed the following conditional include in file applications/SNAP/Logic/Mesh/VTKMeshPipeline.h. Seems the DeformableModelApplication assumes (requires) the USE_VTK_PATENTED be ON. (always inculde these two .h files) So I re-run cMake*** with USE_VTK_PATENDED ON and rebuild VTK. Now InsightApplications 1.8 build ok with USE_FLTK and USE_VTK set to ON.</DIV>
<DIV> </DIV>
<DIV>***(If I just make there two .h files visible to the compiler, I got other errors).</DIV>
<DIV> </DIV>
<DIV>I am a newbie with XP, cMake 2.0.5, .net 2003, fltk 1.1.5, vtk 4.2 and insight 1.8.1 and insightapplication 1.8.0. Questions are </DIV>
<DIV> </DIV>
<DIV>1. Is it really necessary to rebuild with vtk 4.4 and,</DIV>
<DIV>2. Where can I find all the meaning of the setting for cMake, what impact they might have and dose it matter if all build ok? </DIV>
<DIV> </DIV>
<DIV>// Optional selection of patented or non-patented algorithms</DIV>
<DIV><BR>#ifdef USE_VTK_PATENTED<BR> #include <vtkImageMarchingCubes.h><BR> #include <vtkDecimate.h><BR>#else<BR> #include <vtkContourFilter.h><BR> #include <vtkPolyDataNormals.h><BR> #include <vtkDecimatePro.h><BR>#endif file only will be inculded if VTK</DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV> </DIV>
<DIV>Jim</DIV>
<DIV><BR><B><I>Luis Ibanez <luis.ibanez@kitware.com></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>Hi Jim,<BR><BR>Thanks for pointing this out.<BR><BR>It seems that we missed to update the README.txt file<BR>for the ITK release 1.8.<BR><BR>We just committed a fix for this file. It now says:<BR><BR>><BR>> * VTK requires VTK version 4.4 and must be built ANSI_STDLIB<BR>> (the ANSI_STDLIB flag is only a concern with VisualStudio 6.0).<BR>><BR>> * CMake version 2.0.3 or later should be used.<BR>><BR>> * FLTK version 1.1.4 is required<BR>><BR>> * Qt version 2.3 is required (if you select to build Qt examples)<BR>><BR><BR>Please let us know if you encounter any other problem.<BR><BR><BR>Thanks<BR><BR><BR>Luis<BR><BR><BR>----------------------<BR>Jim Lii wrote:<BR><BR>> Really?! The InsightApplications 1.8 README.txt indicates VTK 4.2.<BR>> <BR>> InsightApplications README<BR>> --------------------------<BR>> This directory contains a
variety of applications written with ITK. <BR>> Many are<BR>> quite simple, come are complex and include GUI. Insight/Applications was<BR>> originally a directory within the Insight source code repository. However,<BR>> because of the size and complexity of this directory, the applications are<BR>> now a separate software module (e.g., CVS checkout). Please make sure that<BR>> you successfully build the core ITK prior to building this directory. <BR>> Many of<BR>> these applications are tricky to build and depend on external packages.<BR>> Some important configuration details:<BR>> * VTK requires VTK version 4.2 and must be built ANSI_STDLIB<BR>> (the ANSI_STDLIB flag is only a concern with VisualStudio 6.0).<BR>> * CMake version 1.8.3 or later should be used.<BR>> * FLTK version 1.1.4 is required<BR>> * Qt version 2.3 is required<BR>> Building with any other configurations is liable to give problems.<BR>> Unfortunately, developers are
unlikely to help with problems due to<BR>> using other configurations.<BR>><BR>><BR>><BR>> */Luis Ibanez <LUIS.IBANEZ@KITWARE.COM>/* wrote:<BR>><BR>><BR>> Hi Jie,<BR>><BR>> InsightApplications 1.8 must be built against VTK 4.4.<BR>><BR>><BR>> Regards,<BR>><BR>><BR>> Luis<BR>><BR>><BR>> ----------------<BR>> Jie Zhu wrote:<BR>><BR>> > Hi All,<BR>> > I am already using ITK and Vtk and I am now trying to use the<BR>> > itkApplication geodesicActiveContour. The compiling works fine, but<BR>> > during linking, about 200s of the following error occurs.<BR>> > Why is this happening? I am using VTK4.2 and insight1.8.1.<BR>> > I double checked and there is only this one version of Vtk<BR>> installed.<BR>> ><BR>> > Thanks,<BR>> > Jie<BR>> ><BR>> ><BR>> > GeodesicActiveContour.obj : error LNK2019: unresolved external<BR>> symbol<BR>> >
"__declspec(dllimport) public: void __thiscall<BR>> > vtkViewport::AddProp(class vtkProp *)"<BR>> > (__imp_?AddProp@vtkViewport@@QAEXPAVvtkProp@@@Z) referenced in<BR>> > function "protected: __thiscall<BR>> > fltk::VTKImageViewer::VTKImageViewer(void)"<BR>> > (??0?$VTKImageViewer@E@fltk@@IAE@XZ)<BR>> ><BR>> ><BR>> > ITKVtkFltk.lib(fltkVTKImageViewerGUI.obj) : error LNK2001:<BR>> unresolved<BR>> > external symbol "__declspec(dllimport) public: static void __cdecl<BR>> > vtkObject::operator delete(void *)" (__imp_??3vtkObject@@SAXPAX@Z)<BR>> > _______________________________________________<BR>> > Insight-users mailing list<BR>> > Insight-users@itk.org<BR>> > http://www.itk.org/mailman/listinfo/insight-users<BR>> ><BR>> ><BR>><BR>><BR>><BR>><BR>><BR>> _______________________________________________<BR>> Insight-users mailing list<BR>> Insight-users@itk.org<BR>>
http://www.itk.org/mailman/listinfo/insight-users<BR>><BR>> ------------------------------------------------------------------------<BR>> Do you Yahoo!?<BR>> Check out the new Yahoo! Front Page. www.yahoo.com <HTTP: www.yahoo.com><BR><BR><BR><BR><BR><BR></BLOCKQUOTE><p>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com