-
Notifications
You must be signed in to change notification settings - Fork 10
build issue on macosx #72
Comments
Hello Serena you build system is trying to link this following executable (a test_
but fails because the object file has no "main" function. Maybe playing with boost options in the CMakeLists.txt might help. You could also simply skip the tests. Hope it helps |
To be honest we never tried here on clang. Le jeudi 11 juillet 2013, Sébastien BARTHÉLÉMY a écrit :
Olivier Stasse,Ph.D., Researcher, |
Hi Serena, Best, Olivier. On 07/10/2013 10:33 PM, Serena Ivaldi wrote:
|
Hi Olivier |
Hello, I'm trying to install metapod on macosx. I've succeeded in installing all dependencies with homebrew, now I'm compiling and the building fails but I have no idea why. Cmake gives no errors, here's the output of the make (the part giving errors):
ternal::backward_traversal_prev_internal<Visitor, Robot,...
^
/Users/sere/software/src/metapod/tests/use_model/test_backward_traversal_prev.cc:67:3: note:
in instantiation of function template specialization
'metapod::backward_traversal_prev<PrintBwdTraversalVisitor,
metapod::simple_humanoid, 10, -1>::runstd::basic_ofstream<char, int>'
requested here
backward_traversal_prev<PrintBwdTraversalVisitor, CURRENT_MODEL_ROBOT,
^
24 warnings generated.
Linking CXX executable test_backward_traversal_prev_simple_humanoid
cd /Users/sere/software/src/metapod/build/tests/use_simple_humanoid && /usr/local/Cellar/cmake/2.8.11.1/bin/cmake -E cmake_link_script CMakeFiles/test_backward_traversal_prev_simple_humanoid.dir/link.txt --verbose=1
/usr/bin/c++ -pedantic -Wno-long-long -Wall -Wextra -Wcast-align -Wcast-qual -Wformat -Wwrite-strings -Wconversion -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/test_backward_traversal_prev_simple_humanoid.dir/test_backward_traversal_prev.cc.o -o test_backward_traversal_prev_simple_humanoid /usr/local/lib/libboost_filesystem-mt.dylib /usr/local/lib/libboost_system-mt.dylib /usr/local/lib/libboost_unit_test_framework-mt.dylib /usr/local/lib/libboost_program_options-mt.dylib /usr/local/lib/libboost_regex-mt.dylib /usr/local/lib/libboost_timer-mt.dylib /usr/local/lib/libboost_chrono-mt.dylib /usr/local/lib/libboost_system-mt.dylib ../../libmetapod_simple_humanoid.dylib /usr/local/lib/libboost_unit_test_framework-mt.dylib /usr/local/lib/libboost_program_options-mt.dylib /usr/local/lib/libboost_regex-mt.dylib /usr/local/lib/libboost_timer-mt.dylib /usr/local/lib/libboost_chrono-mt.dylib
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
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]: *** [tests/use_simple_humanoid/test_backward_traversal_prev_simple_humanoid] Error 1
make[1]: *** [tests/use_simple_humanoid/CMakeFiles/test_backward_traversal_prev_simple_humanoid.dir/all] Error 2
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: