[Insight-users] link error in itkApplication
Jim Lii
jimlii at yahoo.com
Sun Nov 7 15:46:33 EST 2004
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.
***(If I just make there two .h files visible to the compiler, I got other errors).
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
1. Is it really necessary to rebuild with vtk 4.4 and,
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?
// Optional selection of patented or non-patented algorithms
#ifdef USE_VTK_PATENTED
#include <vtkImageMarchingCubes.h>
#include <vtkDecimate.h>
#else
#include <vtkContourFilter.h>
#include <vtkPolyDataNormals.h>
#include <vtkDecimatePro.h>
#endif file only will be inculded if VTK
Thanks,
Jim
Luis Ibanez <luis.ibanez at kitware.com> wrote:
Hi Jim,
Thanks for pointing this out.
It seems that we missed to update the README.txt file
for the ITK release 1.8.
We just committed a fix for this file. It now says:
>
> * VTK requires VTK version 4.4 and must be built ANSI_STDLIB
> (the ANSI_STDLIB flag is only a concern with VisualStudio 6.0).
>
> * CMake version 2.0.3 or later should be used.
>
> * FLTK version 1.1.4 is required
>
> * Qt version 2.3 is required (if you select to build Qt examples)
>
Please let us know if you encounter any other problem.
Thanks
Luis
----------------------
Jim Lii wrote:
> Really?! The InsightApplications 1.8 README.txt indicates VTK 4.2.
>
> InsightApplications README
> --------------------------
> This directory contains a variety of applications written with ITK.
> Many are
> quite simple, come are complex and include GUI. Insight/Applications was
> originally a directory within the Insight source code repository. However,
> because of the size and complexity of this directory, the applications are
> now a separate software module (e.g., CVS checkout). Please make sure that
> you successfully build the core ITK prior to building this directory.
> Many of
> these applications are tricky to build and depend on external packages.
> Some important configuration details:
> * VTK requires VTK version 4.2 and must be built ANSI_STDLIB
> (the ANSI_STDLIB flag is only a concern with VisualStudio 6.0).
> * CMake version 1.8.3 or later should be used.
> * FLTK version 1.1.4 is required
> * Qt version 2.3 is required
> Building with any other configurations is liable to give problems.
> Unfortunately, developers are unlikely to help with problems due to
> using other configurations.
>
>
>
> */Luis Ibanez /* wrote:
>
>
> Hi Jie,
>
> InsightApplications 1.8 must be built against VTK 4.4.
>
>
> Regards,
>
>
> Luis
>
>
> ----------------
> Jie Zhu wrote:
>
> > Hi All,
> > I am already using ITK and Vtk and I am now trying to use the
> > itkApplication geodesicActiveContour. The compiling works fine, but
> > during linking, about 200s of the following error occurs.
> > Why is this happening? I am using VTK4.2 and insight1.8.1.
> > I double checked and there is only this one version of Vtk
> installed.
> >
> > Thanks,
> > Jie
> >
> >
> > GeodesicActiveContour.obj : error LNK2019: unresolved external
> symbol
> > "__declspec(dllimport) public: void __thiscall
> > vtkViewport::AddProp(class vtkProp *)"
> > (__imp_?AddProp at vtkViewport@@QAEXPAVvtkProp@@@Z) referenced in
> > function "protected: __thiscall
> > fltk::VTKImageViewer::VTKImageViewer(void)"
> > (??0?$VTKImageViewer at E@fltk@@IAE at XZ)
> >
> >
> > ITKVtkFltk.lib(fltkVTKImageViewerGUI.obj) : error LNK2001:
> unresolved
> > external symbol "__declspec(dllimport) public: static void __cdecl
> > vtkObject::operator delete(void *)" (__imp_??3vtkObject@@SAXPAX at Z)
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
> >
> >
>
>
>
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Check out the new Yahoo! Front Page. www.yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20041107/30dff5b0/attachment.html
More information about the Insight-users
mailing list