[Insight-users] installation problem

imho imho@skynet.be
Mon, 25 Nov 2002 17:56:32 +0100


Hi Luis,
I have to change the cmakelists with the examples?
I've done what you said, and I still have a few linking errors :

qtITK.obj : error LNK2001: unresolved external symbol "void __cdecl 
vnl_error_vector_dimension(char const *,int,int)" 
(?vnl_error_vector_dimension@@YAXPBDHH@Z)
qtITK.obj : error LNK2001: unresolved external symbol "void __cdecl 
vnl_error_matrix_nonsquare(char const *)" 
(?vnl_error_matrix_nonsquare@@YAXPBD@Z)
qtITK.obj : error LNK2001: unresolved external symbol "public: 
__thiscall vnl_svd<double>::vnl_svd<double>(class vnl_matrix<double> 
const &,double)" (??0?$vnl_svd@N@@QAE@ABV?$vnl_matrix@N@@N@Z)
qtITK.obj : error LNK2001: unresolved external symbol "public: class 
vnl_matrix<double>  __thiscall vnl_svd<double>::inverse(void)const " 
(?inverse@?$vnl_svd@N@@QBE?AV?$vnl_matrix@N@@XZ)
ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external 
symbol "public: virtual __thiscall MetaImage::~MetaImage(void)" 
(??1MetaImage@@UAE@XZ)
ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external 
symbol "bool __cdecl MET_SystemByteOrderMSB(void)" 
(?MET_SystemByteOrderMSB@@YA_NXZ)
ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external 
symbol "public: __thiscall MetaImage::MetaImage(void)" 
(??0MetaImage@@QAE@XZ)
ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external 
symbol "public: void __thiscall MetaImage::ElementDataFileName(char 
const *)" (?ElementDataFileName@MetaImage@@QAEXPBD@Z)
ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external 
symbol "public: float __thiscall MetaObject::Position(int)const " 
(?Position@MetaObject@@QBEMH@Z)
ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external 
symbol "public: float __thiscall MetaObject::ElementSpacing(int)const " 
(?ElementSpacing@MetaObject@@QBEMH@Z)
ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external 
symbol "public: int __thiscall MetaImage::DimSize(int)const " 
(?DimSize@MetaImage@@QBEHH@Z)
ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external 
symbol "public: int __thiscall MetaObject::NDims(void)const " 
(?NDims@MetaObject@@QBEHXZ)
ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external 
symbol "public: enum MET_ValueEnumType  __thiscall 
MetaImage::ElementType(void)const " 
(?ElementType@MetaImage@@QBE?AW4MET_ValueEnumType@@XZ)
ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external 
symbol "public: int __thiscall 
MetaImage::ElementNumberOfChannels(void)const " 
(?ElementNumberOfChannels@MetaImage@@QBEHXZ)
ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external 
symbol "public: bool __thiscall MetaObject::BinaryData(void)const " 
(?BinaryData@MetaObject@@QBE_NXZ)
ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external 
symbol "public: bool __thiscall MetaImage::ElementByteOrderFix(void)" 
(?ElementByteOrderFix@MetaImage@@QAE_NXZ)
ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external 
symbol "public: char const * __thiscall 
MetaImage::ElementDataFileName(void)const " 
(?ElementDataFileName@MetaImage@@QBEPBDXZ)
ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external 
symbol "public: void __thiscall MetaObject::BinaryData(bool)" 
(?BinaryData@MetaObject@@QAEX_N@Z)
ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external 
symbol "public: void __thiscall MetaObject::Position(float const *)" 
(?Position@MetaObject@@QAEXPBM@Z)
ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external 
symbol "public: bool __thiscall MetaImage::InitializeEssential(int,int 
const *,float const *,enum MET_ValueEnumType,int,void *,bool)" 
(?InitializeEssential@MetaImage@@QAE_NHPBHPBMW4M
ET_ValueEnumType@@HPAX_N@Z)
Debug/QtITK.exe : fatal error LNK1120: 20 unresolved externals
Error executing link.exe.

ALL_BUILD - 21 error(s), 0 warning(s)

Some progress! :)

Thanks for your time



Luis Ibanez wrote:

>
> Hi Imho,
>
>
> Good,
> new problems mean some progress is being made !
>
>
> Your CMakeLists.txt file is missing
> the basic ITK libraries.
>
> Please locate the line
>
> LINK_LIBRARIES (
>   ITKIO
>   ${QT_QT_LIBRARY}
> )
>
> and add the following ITK libraries
>
>     ITKCommon, ITKBasicFilters,
>     ITKAlgorithms, itkpng, itkzlib
>
> It should look like:
>
> LINK_LIBRARIES (
>   ITKCommon
>   ITKBasicFilters
>   ITKAlgorithms
>   ITKIO
>   itkpng
>   itkzlib
>   ${QT_QT_LIBRARY}
> )
>
>
> Please let us know if you find any further problems.
>
>
> Thanks
>
>
> Luis
>
> =======================================
>
>
> imho wrote:
>
> > Hi Luis,
> > I have taked the last version of qtItk, and now I have linking problems:
> >
> > itkQtProgressBar.obj : error LNK2001: unresolved external symbol
> > "public: unsigned long __thiscall itk::Object::AddObserver(class
> > itk::EventObject const &,class itk::Command *)"
> > (?AddObserver@Object@itk@@QAEKABVEventObject@2@PAVCommand@2@@Z)
> > qtITK.obj : error LNK2001: unresolved external symbol "public:
> > unsigned long __thiscall itk::Object::AddObserver(class
> > itk::EventObject const &,class itk::Command *)"
> > (?AddObserver@Object@itk@@QAEKABVEventObject@2@PAVCommand@2@@Z)
> > itkQtProgressBar.obj : error LNK2001: unresolved external symbol
> > "protected: virtual void __thiscall
> > itk::EventObject::PrintTrailer(class std::basic_ostream 
> std::char_traits > &,class itk::Indent)const "
> > (?PrintTrailer@EventObject@
> > itk@@MBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VIndent@2@@Z)
> >
> > ...
> >
> >
> > ITKIO.lib(itkDicomImageIO.obj) : error LNK2001: unresolved external
> > symbol "public: static void __cdecl itk::LightObject::operator
> > delete(void *)" (??3LightObject@itk@@SAXPAX@Z)
> > ITKIO.lib(itkMetaImageIO.obj) : error LNK2001: unresolved external
> > symbol "public: static void __cdecl itk::LightObject::operator
> > delete(void *)" (??3LightObject@itk@@SAXPAX@Z)
> > ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external
> > symbol "public: static void __cdecl itk::LightObject::operator
> > delete(void *)" (??3LightObject@itk@@SAXPAX@Z)
> > ...
> >
> > ITKIO.lib(itkPNGImageIOFactory.obj) : error LNK2001: unresolved
> > external symbol "protected: virtual void __thiscall
> > itk::Object::PrintSelf(class std::basic_ostream std::char_traits > 
> &,class itk::Indent)const " (?PrintSelf@Object@i
> > tk@@MBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VIndent@2@@Z)
> > ITKIO.lib(itkVTKImageIOFactory.obj) : error LNK2001: unresolved
> > external symbol "protected: virtual void __thiscall
> > itk::Object::PrintSelf(class std::basic_ostream std::char_traits > 
> &,class itk::Indent)const " (?PrintSelf@Object@i
> > tk@@MBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@VIndent@2@@Z)
> > itkQtProgressBar.obj : error LNK2001: unresolved external symbol
> > "protected: virtual void __thiscall itk::Object::PrintSelf(class
> > std::basic_ostream > &,class
> > itk::Indent)const " (?PrintSelf@Object@itk@@MBEXAAV?$ba
> > sic_ostream@DU?$char_traits@D@std@@@std@@VIndent@2@@Z)
> >
> > ...
> > ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external
> > symbol _png_set_compression_level
> > ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external
> > symbol _png_set_IHDR
> > ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external
> > symbol _png_destroy_write_struct
> > ITKIO.lib(itkPNGImageIO.obj) : error LNK2001: unresolved external
> > symbol _png_create_write_struct
> >
> > ...
> > a total of 370 errors (he find nothing) :/
> >
> > thanks for your time
> >
> >
> >
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>
>