[ome-users] C++ bindings
Guy Blanchard
gb288 at cam.ac.uk
Mon Oct 1 21:38:47 BST 2012
Hi,
I've been trying to compile the C++ bindings, following your instructions on https://github.com/openmicroscopy/bioformats/blob/develop/components/scifio/cppwrap/readme.txt
and on the MacOS related page.
I'm getting the following error:
[ 6%] Building CXX object CMakeFiles/jace.dir/jace/source/jace/WrapperVmLoader.cpp.o
Linking CXX shared library libjace.jnilib
Undefined symbols for architecture x86_64:
"boost::system::system_category()", referenced from:
___cxx_global_var_init3 in JArray.cpp.o
boost::thread_exception::thread_exception(int, char const*) in JArray.cpp.o
___cxx_global_var_init3 in JClassImpl.cpp.o
boost::thread_exception::thread_exception(int, char const*) in JClassImpl.cpp.o
___cxx_global_var_init3 in JNIHelper.cpp.o
boost::thread_exception::thread_exception(int, char const*) in JNIHelper.cpp.o
___cxx_global_var_init3 in JObject.cpp.o
...
"boost::system::generic_category()", referenced from:
___cxx_global_var_init1 in JArray.cpp.o
___cxx_global_var_init2 in JArray.cpp.o
___cxx_global_var_init1 in JClassImpl.cpp.o
___cxx_global_var_init2 in JClassImpl.cpp.o
___cxx_global_var_init1 in JNIHelper.cpp.o
___cxx_global_var_init2 in JNIHelper.cpp.o
___cxx_global_var_init1 in JObject.cpp.o
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libjace.jnilib] Error 1
make[1]: *** [CMakeFiles/jace.dir/all] Error 2
make: *** [all] Error 2
I understand from some web discussions that it could be that gcc is being used instead of g++ but the cmake that you generate with your commands seems to know both these compilers and I don't know enough to chase down the error further.
Wondered if you'd been asked this before or have an obvious solution.
I'm on Mac OS 10.7.4 (Lion) with x86_64 architecture:
Typing 'uname -a' gives:
Darwin mallis.home 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr 9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64
Thanks for your help,
Guy
====================
Dr Guy Blanchard
Dept Physiology, Development and Neuroscience
Downing Site
Cambridge CB2 3DY
email: gb288 at cam.ac.uk
m: 07930 988145
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-users/attachments/20121001/663df518/attachment.html>
More information about the ome-users
mailing list