osrf / robocup3ds

Gazebo support for the RoboCup 3D simulation league.
11 stars 2 forks source link

"undefined reference to `boost::system::generic_category()" during make #19

Closed osrf-migration closed 8 years ago

osrf-migration commented 8 years ago

Original report (archived issue) by Jens Fischer (Bitbucket: Gama11).


Following the instructions in the readme, I get the following error when running make on Ubuntu 14.04 (the cmake step was successful, using release mode):

> make
[  6%] Built target robocup3dsGUIPlugin
[  9%] Built target gtest
[ 11%] Built target gtest_main
[ 67%] Built target robocup3dsPlugin
[ 69%] Built target UNIT_Agent_TEST
[ 72%] Built target UNIT_Effector_TEST
[ 74%] Built target UNIT_GameState_TEST
[ 76%] Built target UNIT_Geometry_TEST
[ 79%] Built target UNIT_Perceptors_TEST
Linking CXX executable UNIT_Robocup3dsPlugin_TEST
CMakeFiles/UNIT_Robocup3dsPlugin_TEST.dir/Robocup3dsPlugin_TEST.cc.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:222: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:223: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:224: undefined reference to `boost::system::system_category()'
CMakeFiles/UNIT_Robocup3dsPlugin_TEST.dir/Robocup3dsPlugin_TEST.cc.o: In function `get_system_category':
/usr/include/boost/asio/error.hpp:216: undefined reference to `boost::system::system_category()'
collect2: error: ld returned 1 exit status
make[2]: *** [src/UNIT_Robocup3dsPlugin_TEST] Error 1
make[1]: *** [src/CMakeFiles/UNIT_Robocup3dsPlugin_TEST.dir/all] Error 2
make: *** [all] Error 2

Here's a list of boost and gazebo packages I have installed. Am I missing anything?

I was able to work around it by removing the unit tests from the build.

osrf-migration commented 8 years ago

Original comment by Carlos Agüero (Bitbucket: caguero, GitHub: caguero).


See pull request #49. @Gama11, could you double check that the pull request fixes your problem?

osrf-migration commented 8 years ago

Original comment by Carlos Agüero (Bitbucket: caguero, GitHub: caguero).


osrf-migration commented 8 years ago

Original comment by Carlos Agüero (Bitbucket: caguero, GitHub: caguero).


Merged in issue_19 (pull request #49)

Fix issue #19

→ \<\<cset 94b40278d5e6a9887f2d596c926365343a0ea03e>>