amazerobot/AerialManipulator

gz: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgazebo_common.so.9

hilinxinhui opened this issue · 0 comments

执行:

make px4_sitl_default gazebo

提示如下问题:

[37/109] Generating /home/lxh/Firmware/Tools/sitl_gazebo/models/iris/iris.sdf
FAILED: /home/lxh/Firmware/Tools/sitl_gazebo/models/iris/iris.sdf 
cd /home/lxh/Firmware/Tools/sitl_gazebo && rm -f /home/lxh/Firmware/Tools/sitl_gazebo/models/iris/iris.sdf && /usr/bin/python3 /home/lxh/Firmware/Tools/sitl_gazebo/scripts/xacro.py -o /home/lxh/Firmware/Tools/sitl_gazebo/models/rotors_description/urdf/iris_base.urdf /home/lxh/Firmware/Tools/sitl_gazebo/models/rotors_description/urdf/iris_base.xacro enable_mavlink_interface:=true enable_ground_truth:=false enable_wind:=false enable_logging:=false rotors_description_dir:=/home/lxh/Firmware/Tools/sitl_gazebo/models/rotors_description send_vision_estimation:=false send_odometry:=true && gz sdf -p /home/lxh/Firmware/Tools/sitl_gazebo/models/rotors_description/urdf/iris_base.urdf >> /home/lxh/Firmware/Tools/sitl_gazebo/models/iris/iris.sdf && rm -f /home/lxh/Firmware/Tools/sitl_gazebo/models/rotors_description/urdf/iris_base.urdf

gz: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgazebo_common.so.9: undefined symbol: _ZN8ignition10fuel_tools12ClientConfig12SetUserAgentERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
[38/109] Building CXX object CMakeFiles/mav_msgs.dir/MotorSpeed.pb.cc.o
ninja: build stopped: subcommand failed.
FAILED: external/Stamp/sitl_gazebo/sitl_gazebo-build 
cd /home/lxh/Firmware/build/px4_sitl_default/build_gazebo && /usr/bin/cmake --build /home/lxh/Firmware/build/px4_sitl_default/build_gazebo -- -j2
ninja: build stopped: subcommand failed.
Makefile:217: recipe for target 'px4_sitl_default' failed
make: *** [px4_sitl_default] Error 1

执行以下指令更新libignition-math2即可:

sudo apt upgrade libignition-math2

详细的解决方案请参考这里