[Insight-users] installation problem
imho
imho@skynet.be
Mon, 25 Nov 2002 18:35:10 +0100
Hi Luis,
ALL_BUILD - 0 error(s), 0 warning(s)
at last! :)
I begin to understand how cmake works... I'll try with my own project,
and tell you how I progress.
Thanks for your help
Luis Ibanez wrote:
> Hi Imho,
>
> No problem,
> You are just missing the libraries:
>
> ITKNumerics
> VXLNumerics
> ITKMetaIO
>
> on the link line.
>
> ---
>
>
> Please modify your CMakeLists.txt file to have:
>
>
> LINK_LIBRARIES (
> ITKNumerics
> VXLNumerics
> ITKCommon
> ITKBasicFilters
> ITKAlgorithms
> ITKIO
> ITKMetaIO
> itkpng
> itkzlib
> ${QT_QT_LIBRARY}
> )
>
>
> let us know if you have further problems,
>
>
> Thanks
>
> Luis
>
>
> ==========================================
>
> imho wrote:
>
> > 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::vnl_svd(class vnl_matrix
> > const &,double)" (??0?$vnl_svd@N@@QAE@ABV?$vnl_matrix@N@@N@Z)
> > qtITK.obj : error LNK2001: unresolved external symbol "public: class
> > vnl_matrix __thiscall vnl_svd::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
> >
>
>
>
>