[Insight-users] RE: Installing ITK on Mac OS X

Ruben Schilling r.b.schilling at googlemail.com
Thu Aug 2 18:46:11 EDT 2007


Hi,

it really seems vnl has cross platform issues. I can not report an  
equal problem, but in my working installation of ITK-3.2.0 (also Mac  
OS X) vnl throws warnings to the linker all the time, especially in  
combination with GradientDescentOptimizers and quaternion transforms.  
My errors are related to the bind settings. Seeing this email and the  
one by hanfei before is giving me an unlucky about cross platform  
vnl. On a Suse Linux systems I build the same tools without errors or  
warnings (and without specifying different options when rebuilding  
ITK). To add my share of the vnl error messages I post some samples  
too :)

Best
Ruben


/usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding  
may result in errors or different symbols being used
symbol vnl_matrix<unsigned int>::cols() constused from dynamic  
library /Users/schillin/InsightToolkitBuild/bin/libitkvnl.dylib 
(vnl_matrix+uint-.o) not from earlier dynamic library /Users/schillin/ 
InsightToolkitBuild/bin/libitkvnl_algo.3.2.dylib(vnl_rnpoly_solve.o)
symbol __ZNK10vnl_matrixIjE4colsEv.eh used from dynamic library / 
Users/schillin/InsightToolkitBuild/bin/libitkvnl.dylib(vnl_matrix 
+uint-.o) not from earlier dynamic library /Users/schillin/ 
InsightToolkitBuild/bin/libitkvnl_algo.3.2.dylib(vnl_rnpoly_solve.o)
symbol vnl_matrix<unsigned int>::rows() constused from dynamic  
library /Users/schillin/InsightToolkitBuild/bin/libitkvnl.dylib 
(vnl_matrix+uint-.o) not from earlier dynamic library /Users/schillin/ 
InsightToolkitBuild/bin/libitkvnl_algo.3.2.dylib(vnl_rnpoly_solve.o)
symbol __ZNK10vnl_matrixIjE4rowsEv.eh used from dynamic library / 
Users/schillin/InsightToolkitBuild/bin/libitkvnl.dylib(vnl_matrix 
+uint-.o) not from earlier dynamic library /Users/schillin/ 
InsightToolkitBuild/bin/libitkvnl_algo.3.2.dylib(vnl_rnpoly_solve.o)
symbol vnl_matrix<unsigned int>::operator()(unsigned int, unsigned  
int)used from dynamic library /Users/schillin/InsightToolkitBuild/bin/ 
libitkvnl.dylib(vnl_matrix+uint-.o) not from earlier dynamic library / 
Users/schillin/InsightToolkitBuild/bin/libitkvnl_algo.3.2.dylib 
(vnl_rnpoly_solve.o)
symbol __ZN14vnl_quaternionIdED1Ev.eh used from dynamic library / 
Users/schillin/InsightToolkitBuild/bin/libitkvnl.dylib(vnl_quaternion 
+double-.o) not from earlier dynamic library /Users/schillin/ 
InsightToolkitBuild/bin/libITKNumerics.3.2.dylib 
(itkQuaternionRigidTransformGradientDescentOptimizer.o)
symbol vnl_quaternion<double>::~vnl_quaternion()used from dynamic  
library /Users/schillin/InsightToolkitBuild/bin/libitkvnl.dylib 
(vnl_quaternion+double-.o) not from earlier dynamic library /Users/ 
schillin/InsightToolkitBuild/bin/libITKNumerics.3.2.dylib 
(itkQuaternionRigidTransformGradientDescentOptimizer.o)
symbol __ZN14vnl_quaternionIdEC1Ev.eh used from dynamic library / 
Users/schillin/InsightToolkitBuild/bin/libitkvnl.dylib(vnl_quaternion 
+double-.o) not from earlier dynamic library /Users/schillin/ 
InsightToolkitBuild/bin/libITKNumerics.3.2.dylib 
(itkQuaternionRigidTransformGradientDescentOptimizer.o)
symbol vnl_quaternion<double>::vnl_quaternion()used from dynamic  
library /Users/schillin/InsightToolkitBuild/bin/libitkvnl.dylib 
(vnl_quaternion+double-.o) not from earlier dynamic library /Users/ 
schillin/InsightToolkitBuild/bin/libITKNumerics.3.2.dylib 
(itkQuaternionRigidTransformGradientDescentOptimizer.o)
symbol vnl_vector_fixed<double, 4u>::size() constused from dynamic  
library /Users/schillin/InsightToolkitBuild/bin/libitkvnl.dylib 
(vnl_vector_fixed+double.4-.o) not from earlier dynamic library / 
Users/schillin/InsightToolkitBuild/bin/libITKNumerics.3.2.dylib 
(itkQuaternionRigidTransformGradientDescentOptimizer.o)
symbol __ZNK16vnl_vector_fixedIdLj4EE4sizeEv.eh used from dynamic  
library /Users/schillin/InsightToolkitBuild/bin/libitkvnl.dylib 
(vnl_vector_fixed+double.4-.o) not from earlier dynamic library / 
Users/schillin/InsightToolkitBuild/bin/libITKNumerics.3.2.dylib 
(itkQuaternionRigidTransformGradientDescentOptimizer.o)
symbol __ZN16vnl_vector_fixedIdLj4EEixEj.eh used from dynamic  
library /Users/schillin/InsightToolkitBuild/bin/libitkvnl.dylib 
(vnl_vector_fixed+double.4-.o) not from earlier dynamic library / 
Users/schillin/InsightToolkitBuild/bin/libITKNumerics.3.2.dylib 
(itkQuaternionRigidTransformGradientDescentOptimizer.o)
symbol vnl_vector_fixed<double, 4u>::vnl_vector_fixed()used from  
dynamic library /Users/schillin/InsightToolkitBuild/bin/ 
libitkvnl.dylib(vnl_vector_fixed+double.4-.o) not from earlier  
dynamic library /Users/schillin/InsightToolkitBuild/bin/ 
libITKNumerics.3.2.dylib 
(itkQuaternionRigidTransformGradientDescentOptimizer.o)
symbol __ZN16vnl_vector_fixedIdLj4EEC2Ev.eh used from dynamic  
library /Users/schillin/InsightToolkitBuild/bin/libitkvnl.dylib 
(vnl_vector_fixed+double.4-.o) not from earlier dynamic library / 
Users/schillin/InsightToolkitBuild/bin/libITKNumerics.3.2.dylib 
(itkQuaternionRigidTransformGradientDescentOptimizer.o)
symbol vnl_vector_fixed<double, 4u>::operator[](unsigned int)used  
from dynamic library /Users/schillin/InsightToolkitBuild/bin/ 
libitkvnl.dylib(vnl_vector_fixed+double.4-.o) not from earlier  
dynamic library /Users/schillin/InsightToolkitBuild/bin/ 
libITKNumerics.3.2.dylib 
(itkQuaternionRigidTransformGradientDescentOptimizer.o)
symbol vnl_vector_fixed<double, 4u>::begin() used from dynamic  
library /Users/schillin/InsightToolkitBuild/bin/libitkvnl.dylib 
(vnl_vector_fixed+double.4-.o) not from earlier dynamic library / 
Users/schillin/InsightToolkitBuild/bin/libITKNumerics.3.2.dylib 
(itkQuaternionRigidTransformGradientDescentOptimizer.o)
symbol __ZN16vnl_vector_fixedIdLj4EE5beginEv.eh used from dynamic  
library /Users/schillin/InsightToolkitBuild/bin/libitkvnl.dylib 
(vnl_vector_fixed+double.4-.o) not from earlier dynamic library / 
Users/schillin/InsightToolkitBuild/bin/libITKNumerics.3.2.dylib 
(itkQuaternionRigidTransformGradientDescentOptimizer.o)
symbol vnl_vector_fixed<double, 4u>::normalize() used from dynamic  
library /Users/schillin/InsightToolkitBuild/bin/libitkvnl.dylib 
(vnl_vector_fixed+double.4-.o) not from earlier dynamic library / 
Users/schillin/InsightToolkitBuild/bin/libITKNumerics.3.2.dylib 
(itkQuaternionRigidTransformGradientDescentOptimizer.o)



Am 03.08.2007 um 00:09 schrieb DZ:

> I removed fink, and simply downloaded the latest
> version of cmake from www.cmake.org. I then downloaded
> itk-3.2.0.tar.gz and itk-2.6.0.tar.gz.  I set the
> following in ccmake:
>
> BUILD_SHARED_LIBS      OFF
> BUILD _EXAMPLES         OFF
> BUILD_TESTING             OFF
>
> itk-3.2.0 compiled with those settings, however
> compliling itk-2.6.0 gave the following errors:
>
> [ 56%] Building CXX object
> Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_math.o
> /Users/williamgreene/src/itk-2.6.0/Utilities/vxl/core/vnl/ 
> vnl_math.cxx:
> In function 'bool vnl_math_isinf(float)':
> /Users/williamgreene/src/itk-2.6.0/Utilities/vxl/core/vnl/ 
> vnl_math.cxx:221:
> error: '__isnand' was not declared in this scope
> /Users/williamgreene/src/itk-2.6.0/Utilities/vxl/core/vnl/ 
> vnl_math.cxx:
> In function 'bool vnl_math_isinf(double)':
> /Users/williamgreene/src/itk-2.6.0/Utilities/vxl/core/vnl/ 
> vnl_math.cxx:223:
> error: '__isnand' was not declared in this scope
> /Users/williamgreene/src/itk-2.6.0/Utilities/vxl/core/vnl/ 
> vnl_math.cxx:
> In function 'bool vnl_math_isinf(long double)':
> /Users/williamgreene/src/itk-2.6.0/Utilities/vxl/core/vnl/ 
> vnl_math.cxx:225:
> error: '__isnand' was not declared in this scope
> make[2]: ***
> [Utilities/vxl/core/vnl/CMakeFiles/itkvnl.dir/vnl_math.o]
> Error 1
> make[1]: *** [Utilities/vxl/core/vnl/CMake
> Files/itkvnl.dir/all] Error 2
> make: *** [all] Error 2
>
>
>
> I initially downloaded itk-3.2.0.zip and set all the
> settings above to ON and I got a compilation error,
> but since I don't need any of the above settings on, I
> guess it is not that important. Anyways, I
> redownloaded itk-3.2.0.tar.gz because I read several
> things saying that .tar.gz was a better format to
> download. Why is .tar.gz better? I then set the
> settings above to off and compiled and 3.2.0 worked,
> but earlier itk releases did not as discussed above.
> Why will earlier releases (2.6.0) not compile?
> Although I will not use a earlier release of itk, I am
> still interested in understanding why I got the above
> errors. Also, older versions of cmake would not
> compile itk-3.2.0, why is this?
>
> Thanks so much for the help.
>
>
>
> ______________________________________________________________________ 
> ______________
> Be a better Heartthrob. Get better relationship answers from  
> someone who knows. Yahoo! Answers - Check it out.
> http://answers.yahoo.com/dir/?link=list&sid=396545433
> _______________________________________________
> 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