Skip to content

Latest commit

 

History

History
32 lines (16 loc) · 1.07 KB

fuerte_build_notes.md

File metadata and controls

32 lines (16 loc) · 1.07 KB

Undefined reference to boost_system

Error

/usr/bin/ld: CMakeFiles/stereoimageproc_exe.dir/src/nodes/stereo_image_proc.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv'

Solution

To the CMakeLists.txt of the complaining ROS package, do one of the following, as appropriate:

  • Add boost_system to the target_link_libraries line.
  • Add system to the rosbuild_link_boost line.

PyString_XXX not declared in this scope

Error

/opt/ros/desktop-full/geometry/tf/src/pytf.cpp: In function ‘PyObject* asListOfStrings(std::vector<std::basic_string<char> >)’:
/opt/ros/desktop-full/geometry/tf/src/pytf.cpp:224:60: error: ‘PyString_FromString’ was not declared in this scope
/opt/ros/desktop-full/geometry/tf/src/pytf.cpp: In function ‘PyObject* setTransform(PyObject*, PyObject*)’:
/opt/ros/desktop-full/geometry/tf/src/pytf.cpp:371:106: error: ‘PyString_AsString’ was not declared in this scope

Solution

Include the following in the appropriate CMakeLists.txt:

set(PYTHON_INCLUDE_PATH /usr/include/python2.7)