PX4仿真gazebo报错 make px4_sitl_default gazebo
-- Configuring incomplete, errors occurred!
See also "/home/zzh/Desktop/PX4-Autopilot/build/px4_sitl_default/build_gazebo/CMakeFiles/CMakeOutput.log".
See also "/home/zzh/Desktop/PX4-Autopilot/build/px4_sitl_default/build_gazebo/CMakeFiles/CMakeError.log".
[412/543] Linking CXX static library platforms/common/uORB/uORB_tests/libmodules__uORB__uORB_tests.a
FAILED: external/Stamp/sitl_gazebo/sitl_gazebo-configure
cd /home/zzh/Desktop/PX4-Autopilot/build/px4_sitl_default/build_gazebo && /usr/bin/cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DSEND_ODOMETRY_DATA=ON -DGENERATE_ROS_MODELS=ON -GNinja /home/zzh/Desktop/PX4-Autopilot/Tools/sitl_gazebo && /usr/bin/cmake -E touch /home/zzh/Desktop/PX4-Autopilot/build/px4_sitl_default/external/Stamp/sitl_gazebo/sitl_gazebo-configure
[426/543] Building CXX object src/systemcmds/tests/CMakeFiles/systemcmds__tests.dir/test_matrix.cpp.o
ninja: build stopped: subcommand failed.
make: *** [Makefile:230: px4_sitl] Error 1
翻遍csdn没什么解决方案,google回答第一条,翻到最后给出解决方案
gstreamer没有装好
sudo apt install libgstreamer1.0-dev
sudo apt install gstreamer1.0-plugins-good
sudo apt install gstreamer1.0-plugins-bad
sudo apt install gstreamer1.0-plugins-ugly
跑完这四条命令,按理说应该行了,但是我这里make还是有一点小问题
翻提示,有No package ‘gstreamer-app-1.0’ found
所以要再安装一个
sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
终于解决了
ps:这个问题之前,还卡了很久,一直报错gazebo.dir什么的
是要运行官方文档里的一行代码,因为Ubuntu20.04安装rosgazebo是不参考官方文档的,所以漏了这一行
bash ./PX4-Autopilot/Tools/setup/ubuntu.sh
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)