141

阿木币

0

精华

24 小时

在线时间

老司机

Rank: 2

发表于 2022-3-18 18:22:08 6045 浏览 2 回复

px4仿真编译 make amovlab_sitl_default gazebo

可能是少装了某些依赖,但具体怎么弄嘎不清楚
以下为错误提示
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GSTREAMER_LIBRARIES (ADVANCED)
    linked by target "gazebo_airship_dynamics_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_airspeed_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_groundtruth_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "physics_msgs" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "std_msgs" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_usv_dynamics_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_parachute_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_irlock_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_geotagged_images_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_lidar_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_multirotor_base_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_wind_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "sensor_msgs" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_gst_camera_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "mav_msgs" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_controller_interface" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_video_stream_widget" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_gps_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_opticalflow_mockup_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_opticalflow_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_uuv_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "nav_msgs" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_sonar_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_vision_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_gimbal_controller_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_imu_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_mavlink_interface" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_motor_model" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_magnetometer_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_barometer_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "LiftDragPlugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo
    linked by target "gazebo_catapult_plugin" in directory /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo

-- Configuring incomplete, errors occurred!
See also "/home/weipengcheng/prometheus_px4/build/amovlab_sitl_default/build_gazebo/CMakeFiles/CMakeOutput.log".
See also "/home/weipengcheng/prometheus_px4/build/amovlab_sitl_default/build_gazebo/CMakeFiles/CMakeError.log".
[741/749] Linking CXX static library src/modules/mc_pos_control/libmodules__mc_pos_control.a
FAILED: external/Stamp/sitl_gazebo/sitl_gazebo-configure
cd /home/weipengcheng/prometheus_px4/build/amovlab_sitl_default/build_gazebo && /usr/bin/cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DSEND_ODOMETRY_DATA=ON -GNinja /home/weipengcheng/prometheus_px4/Tools/sitl_gazebo && /usr/bin/cmake -E touch /home/weipengcheng/prometheus_px4/build/amovlab_sitl_default/external/Stamp/sitl_gazebo/sitl_gazebo-configure
[743/749] Building CXX object src/systemcmds/to...ds__topic_listener.dir/listener_generated.cpp.o
ninja: build stopped: subcommand failed.
make: *** [Makefile:219:amovlab_sitl_default] 错误 1


Sherry已获得悬赏 3 阿木币

最佳答案

找到答案了,sudo apt-get install libgstreamer-plugins-base1.0-dev

扫一扫浏览分享
回复

使用道具 举报

141

阿木币

0

精华

24 小时

在线时间

老司机

Rank: 2

 楼主| 发表于 2022-3-18 18:36:15
找到答案了,sudo apt-get install libgstreamer-plugins-base1.0-dev


回复 点赞

使用道具 举报

141

阿木币

0

精华

24 小时

在线时间

老司机

Rank: 2

 楼主| 发表于 2022-3-18 18:36:55
谁知道怎麽撤销问题么?
回复 点赞

使用道具 举报

返回列表
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表