Solutions for reported errors while building "BagFromImages"

1. $ROS_PACKAGE_PATH command not found

Method: build the source code in a catkin workspace as follows.

$ cd ~/catkin_ws
$ cd src
$ git clone https://github.com/raulmur/BagFromImages.git BagFromImages
$ cd BagFromImages
$ mkdir build
$ cd build
$ cmake ..
$ make

2. undefined reference to symbol '_ZN14console_bridge3logEPKciNS_8LogLevelES1_z'
/usr/lib/x86_64-linux-gnu/libconsole_bridge.so: error adding symbols: DSO missing from command line

Method:  libconsole_bridge should be linked in CMakeLists.txt.

ex: target_link_libraries (${PROJECT_NAME} console_bridge)


Reference:
[1] https://github.com/raulmur/BagFromImages
[2] https://www.cnblogs.com/sparkzxw/p/6501730.html
[3] https://github.com/raulmur/BagFromImages/issues/5

留言

這個網誌中的熱門文章

Tuing PID parameters in QGroundcontrol (2)

Useful PX4 Parameters

Burn linux image to eMMC storage on Banana Pi M3