[Insight-users] Trying to build dynamic libraries - no success

Luis Ibanez luis.ibanez at kitware.com
Thu Sep 2 18:55:15 EDT 2004


Hi Gamal,

          Are you doing this in a Mac ?


If so, it is a good idea to make a clean build first,
if you want to switch from static libraries to dynamic
libraries.



   Regards,


      Luis


-----------------------
Gamal Akabani wrote:

> Dear ITK users - I am new to ITK. I was able to build the static 
> libraries; however, when I set to dynamic libraries I got the following 
> error.
> 
> Building shared library /usr/local/ITK/ITKBuild/bin/libitkvnl_algo.dylib...
> ld: Undefined symbols:
> std::basic_ostream<char, std::char_traits<char> >& operator<< 
> <double>(std::basic_ostream<char, std::char_traits<char> >&, 
> vnl_matrix<double> const&)
> std::basic_ostream<char, std::char_traits<char> >& operator<< 
> <double>(std::basic_ostream<char, std::char_traits<char> >&, 
> vnl_vector<double> const&)
> std::basic_ostream<char, std::char_traits<char> >& operator<< 
> <float>(std::basic_ostream<char, std::char_traits<char> >&, 
> vnl_matrix<float> const&)
> std::basic_ostream<char, std::char_traits<char> >& operator<< 
> <float>(std::basic_ostream<char, std::char_traits<char> >&, 
> vnl_vector<float> const&)
> std::basic_ostream<char, std::char_traits<char> >& operator<< 
> <std::complex<double> >(std::basic_ostream<char, std::char_traits<char> 
>  >&, vnl_matrix<std::complex<double> >
>  const&)
> std::basic_ostream<char, std::char_traits<char> >& operator<< 
> <std::complex<double> >(std::basic_ostream<char, std::char_traits<char> 
>  >&, vnl_vector<std::complex<double> >
>  const&)
> std::basic_ostream<char, std::char_traits<char> >& operator<< 
> <std::complex<float> >(std::basic_ostream<char, std::char_traits<char> 
>  >&, vnl_matrix<std::complex<float> > c
> onst&)
> std::basic_ostream<char, std::char_traits<char> >& operator<< 
> <std::complex<float> >(std::basic_ostream<char, std::char_traits<char> 
>  >&, vnl_vector<std::complex<float> > c
> onst&)
> /usr/bin/libtool: internal link edit command failed
> make[11]: *** [/usr/local/ITK/ITKBuild/bin/libitkvnl_algo.dylib] Error 1
> make[10]: *** [default_target] Error 2
> make[9]: *** [default_target_algo] Error 2
> make[8]: *** [default_target] Error 2
> make[7]: *** [default_target_vnl] Error 2
> make[6]: *** [default_target] Error 2
> make[5]: *** [default_target_core] Error 2
> make[4]: *** [default_target] Error 2
> make[3]: *** [default_target_vxl] Error 2
> make[2]: *** [default_target] Error 2
> make[1]: *** [default_target_Utilities] Error 2
> make: *** [default_target] Error 2
> 
> I am not sure what is wrong as I only changed
> 
>> //Build ITK with shared libraries.
>> BUILD_SHARED_LIBS:BOOL=ON
> 
> The rest remained the same as before and it compile successfully. Any 
> ideas what is wrong?
> TIA.
> 
> 
> Gamal Akabani, Ph.D.
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 






More information about the Insight-users mailing list