Makefile:193: recipe for target 'px4_sitl_default' failed

kindly help me regardin the error as i am unable to solve it i was installing gazebo through https://dev.px4.io/v1.9.0/en/simulation/multi-vehicle-simulation.html but on the third step its giving error

cactus@cactus-Inspiron-5559:~/Firmware$ DONT_RUN=1 make px4_sitl_default gazebo
[2/6] Performing configure step for ‘sitl_gazebo’
– install-prefix: /usr/local
– Using C++14 compiler
– Boost version: 1.58.0
– Found the following Boost libraries:
– system
– thread
– filesystem
– chrono
– date_time
– atomic
– Boost version: 1.58.0
– Checking for module ‘gstreamer-1.0 >= 1.0’

– Checking for module ‘gstreamer-base-1.0 >= 1.0’

– Building klt_feature_tracker without catkin
– Building OpticalFlow with OpenCV
– catkin DISABLED
– Gazebo version: 7.0
– Found GStreamer: adding gst_camera_plugin
– Found GStreamer: adding gst_video_stream_widget
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 “LiftDragPlugin” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “gazebo_gst_camera_plugin” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “gazebo_barometer_plugin” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “gazebo_geotagged_images_plugin” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “gazebo_magnetometer_plugin” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “sensor_msgs” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “gazebo_irlock_plugin” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “gazebo_video_stream_widget” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “gazebo_controller_interface” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “gazebo_wind_plugin” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “std_msgs” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “gazebo_gps_plugin” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “gazebo_sonar_plugin” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “mav_msgs” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “nav_msgs” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “gazebo_lidar_plugin” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “gazebo_opticalflow_plugin” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “gazebo_mavlink_interface” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “gazebo_uuv_plugin” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “gazebo_vision_plugin” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “gazebo_multirotor_base_plugin” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “gazebo_imu_plugin” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “gazebo_gimbal_controller_plugin” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “physics_msgs” in directory /home/cactus/Firmware/Tools/sitl_gazebo
linked by target “gazebo_motor_model” in directory /home/cactus/Firmware/Tools/sitl_gazebo

– Configuring incomplete, errors occurred!
See also “/home/cactus/Firmware/build/px4_sitl_default/build_gazebo/CMakeFiles/CMakeOutput.log”.
See also “/home/cactus/Firmware/build/px4_sitl_default/build_gazebo/CMakeFiles/CMakeError.log”.
[2/6] Generating …/…/logs
FAILED: cd /home/cactus/Firmware/build/px4_sitl_default/build_gazebo && /usr/bin/cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DSEND_VISION_ESTIMATION_DATA=ON -GNinja /home/cactus/Firmware/Tools/sitl_gazebo && /usr/bin/cmake -E touch /home/cactus/Firmware/build/px4_sitl_default/external/Stamp/sitl_gazebo/sitl_gazebo-configure
ninja: build stopped: subcommand failed.
Makefile:193: recipe for target ‘px4_sitl_default’ failed
make: *** [px4_sitl_default] Error 1

Any answer on this please?

I have the same problem. Gazebo and all its dependencies have been installed properly.

But I run make px4_sitl_default jmavsim everything works correctly.

Thanks in advance!

thank you so much its working now

Does it work with Gazebo sim?

No it doesnot work with gazebo

I am facing tge same problem again as i am using gazebo

try using this Fixed-wing offboard actuator control

1 Like

thank you so much mate it worked

Seems like Gstreamer library has not got installed during the installation process. You have to manually install it, from GStreamer website instruction. Follow the link,
https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c