A quick work around might be setting BUILD_MUL to NO assuming open gazer does not need MUL.

 

Fred Wheeler

 

 

 

From: Jeff Clune [mailto:jeffclune@cornell.edu]
Sent: Friday, March 25, 2011 6:49 PM
To: vxl-users@lists.sourceforge.net
Subject: [Vxl-users] VXL Does Not Compile with BUILD_SHARED_LIBS set to On, but does when set to OFF

 

Hello-

 

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[2]: *** [contrib/mul/vil3d/libvil3d.dylib] Error 1

make[1]: *** [contrib/mul/vil3d/CMakeFiles/vil3d.dir/all] Error 2

make: *** [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. 

 


Best regards,
Jeff Clune

Postdoctoral Fellow
Hod Lipson's Computational Synthesis Laboratory
Cornell University
jeffclune@cornell.edu
www.msu.edu/~jclune