[Insight-users] MacOSX build with testing
Hans Johnson
hans-johnson at uiowa.edu
Tue Feb 22 16:30:20 EST 2005
Hello All,
I am new to building on the Mac OSX, and can not figure out how to solve the
linking errors. This is a new mac G4 powerbook running OSX 10.3.8. I can
build with testing off just fine, but with Testing turned on, the build
fails with lots of messages like the following:
echo "Building executable
/Users/hjmjohnson/src/brains2/MacOSX/DEBUG/iplFreeware/unpackdir/Insight/bin
/itkNumericsTests..."
c++ -g -fstrict-aliasing -UNDEBUG -Wall -Wcast-qual
-Wstrict-prototypes -multiply_defined suppress -ftemplate-depth-50
-no-cpp-precomp -Wno-long-double -fPIC itkNumericsTests.o
itkNumericsPrintTest.o itkAmoebaOptimizerTest.o
itkConjugateGradientOptimizerTest.o itkCompositeValleyFunctionTest.o
itkCumulativeGaussianOptimizerTest.o itkGradientDescentOptimizerTest.o
itkLevenbergMarquardtOptimizerTest.o itkLBFGSBOptimizerTest.o
itkLBFGSOptimizerTest.o itkMultivariateLegendrePolynomialTest.o
itkNumericsTest.o itkOptimizersHierarchyTest.o itkPowellOptimizerTest.o
itkRegularStepGradientDescentOptimizerTest.o itkSymmetricEigenSystemTest.o
itkVersorTransformOptimizerTest.o itkVersorRigid3DTransformOptimizerTest.o
-o
/Users/hjmjohnson/src/brains2/MacOSX/DEBUG/iplFreeware/unpackdir/Insight/bin
/itkNumericsTests -L.
-L/Users/hjmjohnson/src/brains2/MacOSX/DEBUG/iplFreeware/unpackdir/Insight/b
in -lITKCommon -lITKNumerics -lITKIO -lITKCommon -litkvnl_inst -litkvnl_algo
-litkvnl -litkvcl -litknetlib -lm -litksys -lpthread -lITKNrrdIO -litkpng
-litktiff -lm -litkgdcm -litkjpeg8 -litkjpeg12 -litkjpeg16 -lITKMetaIO
-litkzlib -lITKDICOMParser -lITKEXPAT
Building executable
/Users/hjmjohnson/src/brains2/MacOSX/DEBUG/iplFreeware/unpackdir/Insight/bin
/itkNumericsTests...
ld: multiple definitions of symbol
_ZNK3itk18ImageToImageFilterINS_5ImageIaLj2EEENS1_IfLj2EEEE14GetNameOfClassE
v.eh
itkNumericsTests.o definition of absolute
_ZNK3itk18ImageToImageFilterINS_5ImageIaLj2EEENS1_IfLj2EEEE14GetNameOfClassE
v.eh (value 0x0)
/Users/hjmjohnson/src/brains2/MacOSX/DEBUG/iplFreeware/unpackdir/Insight/bin
/libITKCommon.a(itkExplicitInstantiations.o) definition of absolute
_ZNK3itk18ImageToImageFilterINS_5ImageIaLj2EEENS1_IfLj2EEEE14GetNameOfClassE
v.eh (value 0x0)
ld: multiple definitions of symbol
_ZNK3itk18ImageToImageFilterINS_5ImageIaLj2EEES2_E14GetNameOfClassEv.eh
itkNumericsTests.o definition of absolute
_ZNK3itk18ImageToImageFilterINS_5ImageIaLj2EEES2_E14GetNameOfClassEv.eh
(value 0x0)
/Users/hjmjohnson/src/brains2/MacOSX/DEBUG/iplFreeware/unpackdir/Insight/bin
/libITKCommon.a(itkExplicitInstantiations.o) definition of absolute
_ZNK3itk18ImageToImageFilterINS_5ImageIaLj2EEES2_E14GetNameOfClassEv.eh
(value 0x0)
Could someone please let me know were I am going wrong?
Thanks,
Hans J. Johnson
More information about the Insight-users
mailing list