A quick work around might be setting BUILD_MUL to NO assuming open gazer does not need MUL.
From: Jeff Clune [mailto:firstname.lastname@example.org]
Sent: Friday, March 25, 2011 6:49 PM
Subject: [Vxl-users] VXL Does Not Compile with BUILD_SHARED_LIBS set to On, but does when set to OFF
I am trying to compile VXL on OS X with BUILD_SHARED_LIBS ON, and I get the following error:
[ 54%] Building CXX object contrib/mul/vil3d/CMakeFiles/vil3d.dir/Templates/vil_smart_ptr+vil3d_image_view_base-.o
Linking CXX shared library libvil3d.dylib
ld: duplicate symbol double vil3d_tricub_interp_raw<unsigned int>(double, double, double, unsigned int const*, long, long, long)in CMakeFiles/vil3d.dir/Templates/vil3d_tricub_interp+uint_32-.o and CMakeFiles/vil3d.dir/Templates/vil3d_tricub_interp+uint-.o
collect2: ld returned 1 exit status
make: *** [contrib/mul/vil3d/libvil3d.dylib] Error 1
make: *** [contrib/mul/vil3d/CMakeFiles/vil3d.dir/all] Error 2
Oddly, it does compile with BUILD_SHARED_LIBS set to OFF, but unfortunately I am trying to compile OpenGazer, which requires them to be on.
I have been pounding away on this for hours now and cannot figure out a workaround. If anyone could help me I would greatly appreciate it.