[Insight-users] ITK will not build with shared libs enabled on the
Mac (G5)
Jon H Kaspersen
Jon.H.Kaspersen at sintef.no
Fri Sep 10 15:42:36 EDT 2004
I did a clean standard build of ITK,
then I used ccmake to enable shared libs - which brakes the build with
the following error:
c++ -dynamiclib -o /Users/jonk/cvs/ITKbin/bin/libitkvnl_algo.dylib
vnl_cholesky.o vnl_real_eigensystem.o vnl_complex_eigensystem.o
vnl_symmetric_eigensystem.o vnl_generalized_eigensystem.o
vnl_sparse_symmetric_eigensystem.o vnl_generalized_schur.o
vnl_discrete_diff.o vnl_levenberg_marquardt.o vnl_conjugate_gradient.o
vnl_lbfgs.o vnl_amoeba.o vnl_powell.o vnl_brent.o vnl_lsqr.o
vnl_rpoly_roots.o vnl_cpoly_roots.o vnl_rnpoly_solve.o vnl_fft.o
vnl_determinant.o vnl_chi_squared.o vnl_gaussian_kernel_1d.o
Templates/vcl_vector+vnl_amoeba_SimplexCorner-.o
Templates/vnl_adjugate+double-.o Templates/vnl_adjugate+int-.o
Templates/vnl_convolve+double.double-.o
Templates/vnl_convolve+int.double-.o Templates/vnl_convolve+int.int-.o
Templates/vnl_determinant+double-.o Templates/vnl_determinant+float-.o
Templates/vnl_determinant+int-.o
Templates/vnl_determinant+vcl_complex+double--.o
Templates/vnl_determinant+vcl_complex+float--.o
Templates/vnl_fft_1d+double-.o Templates/vnl_fft_1d+float-.o
Templates/vnl_fft_2d+double-.o Templates/vnl_fft_2d+float-.o
Templates/vnl_fft_base+1.double-.o Templates/vnl_fft_base+1.float-.o
Templates/vnl_fft_base+2.double-.o Templates/vnl_fft_base+2.float-.o
Templates/vnl_fft_prime_factors+double-.o
Templates/vnl_fft_prime_factors+float-.o
Templates/vnl_matrix_inverse+double-.o
Templates/vnl_orthogonal_complement+double-.o
Templates/vnl_orthogonal_complement+vcl_complex+double--.o
Templates/vnl_orthogonal_complement+vcl_complex+float--.o
Templates/vnl_qr+double-.o Templates/vnl_qr+float-.o
Templates/vnl_qr+vcl_complex+double--.o
Templates/vnl_qr+vcl_complex+float--.o
Templates/vnl_scatter_3x3+double-.o Templates/vnl_scatter_3x3+float-.o
Templates/vnl_svd+double-.o Templates/vnl_svd+float-.o
Templates/vnl_svd+vcl_complex+double--.o
Templates/vnl_svd+vcl_complex+float--.o
Templates/vnl_svd_economy+double-.o Templates/vnl_svd_economy+float-.o
Templates/vnl_svd_economy+vcl_complex+double--.o
Templates/vnl_svd_economy+vcl_complex+float--.o -L.
-L/Users/jonk/cvs/ITKbin/bin -litknetlib -litkvnl -litkvcl -lm -lgcc
-lgcc -lgcc
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> > const&)
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> > const&)
/usr/bin/libtool: internal link edit command failed
make[11]: *** [/Users/jonk/cvs/ITKbin/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
Anyone else seen this problem on the G5 Mac ?
Regards
Jon
========================================================
Jon Harald Kaspersen Mob: +47 93 03 65 90
Ph.D. Mechanical Engineering
Senior Scientist
SINTEF Helse
N-7465 Trondheim
NORWAY e-mail: Jon.H.Kaspersen at sintef.no
WEB: http://www.sintef.no/medtek
========================================================
More information about the Insight-users
mailing list