Closed joelfinnigan closed 2 years ago
@joelfinnigan You can see the error in the log:
1.0'
-- No package 'gstreamer-app-1.0' found
Hi, I tried to install gstreamer using instructions from this post: https://github.com/PX4/PX4-Autopilot/issues/13416#issuecomment-552136098
I restarted and attempted to build again however I unfortunately still got an error related to gstreamer:
parallels@ubuntu-linux-20-04-desktop:~/PX4-Autopilot$ make px4_sitl_default gazebo -- PX4 version: v1.13.0-alpha1-3455-g43fb076828 -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3") -- PX4 config file: /home/parallels/PX4-Autopilot/boards/px4/sitl/default.px4board -- PLATFORM posix -- ROMFSROOT px4fmu_common -- TESTING y -- ETHERNET y -- PX4 config: px4_sitl_default -- PX4 platform: posix -- PX4 lockstep: enabled -- cmake build type: RelWithDebInfo -- The CXX compiler identification is GNU 9.3.0 -- The C compiler identification is GNU 9.3.0 -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/cc -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Building for code coverage -- ccache enabled (export CCACHE_DISABLE=1 to disable) -- ROMFS: ROMFS/px4fmu_common -- Configuring done -- Generating done -- Build files have been written to: /home/parallels/PX4-Autopilot/build/px4_sitl_default [7/828] git submodule src/drivers/gps/devices [9/828] git submodule src/modules/mavlink/mavlink [235/828] git submodule Tools/sitl_gazebo [501/828] Generating Mavlink developme...ssage_definitions/v1.0/development.xml Validating /home/parallels/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/development.xml Parsing /home/parallels/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/development.xml Validating /home/parallels/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/standard.xml Parsing /home/parallels/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/standard.xml Validating /home/parallels/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/common.xml Parsing /home/parallels/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/common.xml Validating /home/parallels/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/minimal.xml Parsing /home/parallels/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/minimal.xml Merged enum MAV_CMD Merged enum MAV_CMD Found 222 MAVLink message types in 4 XML files Generating C implementation in directory /home/parallels/PX4-Autopilot/build/px4_sitl_default/mavlink/development Generating C implementation in directory /home/parallels/PX4-Autopilot/build/px4_sitl_default/mavlink/standard Generating C implementation in directory /home/parallels/PX4-Autopilot/build/px4_sitl_default/mavlink/common Generating C implementation in directory /home/parallels/PX4-Autopilot/build/px4_sitl_default/mavlink/minimal Copying fixed headers for protocol 2.0 to /home/parallels/PX4-Autopilot/build/px4_sitl_default/mavlink [667/828] Performing configure step for 'sitl_gazebo' -- install-prefix: /usr/local -- cmake build type: RelWithDebInfo -- The C compiler identification is GNU 9.3.0 -- The CXX compiler identification is GNU 9.3.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Performing Test COMPILER_SUPPORTS_CXX17 -- Performing Test COMPILER_SUPPORTS_CXX17 - Success -- Performing Test COMPILER_SUPPORTS_CXX14 -- Performing Test COMPILER_SUPPORTS_CXX14 - Success -- Performing Test COMPILER_SUPPORTS_CXX11 -- Performing Test COMPILER_SUPPORTS_CXX11 - Success -- Performing Test COMPILER_SUPPORTS_CXX0X -- Performing Test COMPILER_SUPPORTS_CXX0X - Success -- Using C++17 standard -- ccache enabled (export CCACHE_DISABLE=1 to disable) -- Found Boost: /usr/lib/aarch64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.58") found components: system thread filesystem -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") -- Checking for module 'bullet>=2.82' -- Found bullet, version 2.88 -- Found ccd: /usr/include (found suitable version "2.0", minimum required is "2.0") -- Found fcl: /usr/include (found suitable version "0.5.0", minimum required is "0.3.2") -- Found assimp: /usr/include (found version "5.0.0") -- Found DART: /usr/include (Required is at least version "6.6") found components: dart -- Found Boost: /usr/lib/aarch64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.40.0") found components: thread system filesystem program_options regex iostreams date_time -- Found Protobuf: /usr/lib/aarch64-linux-gnu/libprotobuf.so;-lpthread (found version "3.6.1") -- Looking for ignition-math6 -- found version 6.9.2 -- Searching for dependencies of ignition-math6 -- Looking for OGRE... -- OGRE_PREFIX_WATCH changed. -- Checking for module 'OGRE' -- Found OGRE, version 1.9.0 -- Found Ogre Ghadamon (1.9.0) -- Found OGRE: optimized;/usr/lib/aarch64-linux-gnu/libOgreMain.so;debug;/usr/lib/aarch64-linux-gnu/libOgreMain.so -- Looking for OGRE_Paging... -- Found OGRE_Paging: optimized;/usr/lib/aarch64-linux-gnu/libOgrePaging.so;debug;/usr/lib/aarch64-linux-gnu/libOgrePaging.so -- Looking for OGRE_Terrain... -- Found OGRE_Terrain: optimized;/usr/lib/aarch64-linux-gnu/libOgreTerrain.so;debug;/usr/lib/aarch64-linux-gnu/libOgreTerrain.so -- Looking for OGRE_Property... -- Found OGRE_Property: optimized;/usr/lib/aarch64-linux-gnu/libOgreProperty.so;debug;/usr/lib/aarch64-linux-gnu/libOgreProperty.so -- Looking for OGRE_RTShaderSystem... -- Found OGRE_RTShaderSystem: optimized;/usr/lib/aarch64-linux-gnu/libOgreRTShaderSystem.so;debug;/usr/lib/aarch64-linux-gnu/libOgreRTShaderSystem.so -- Looking for OGRE_Volume... -- Found OGRE_Volume: optimized;/usr/lib/aarch64-linux-gnu/libOgreVolume.so;debug;/usr/lib/aarch64-linux-gnu/libOgreVolume.so -- Looking for OGRE_Overlay... -- Found OGRE_Overlay: optimized;/usr/lib/aarch64-linux-gnu/libOgreOverlay.so;debug;/usr/lib/aarch64-linux-gnu/libOgreOverlay.so -- Looking for ignition-math6 -- found version 6.9.2 -- Looking for ignition-transport8 -- found version 8.2.1 -- Searching for dependencies of ignition-transport8 -- Found Protobuf: /usr/lib/aarch64-linux-gnu/libprotobuf.so;-lpthread (found suitable version "3.6.1", minimum required is "3") -- Config-file not installed for ZeroMQ -- checking for pkg-config -- Checking for module 'libzmq >= 4' -- Found libzmq , version 4.3.2 -- Found ZeroMQ: TRUE (Required is at least version "4") -- Checking for module 'uuid' -- Found uuid, version 2.34.0 -- Found UUID: TRUE
-- Looking for ignition-msgs5 -- found version 5.8.1 -- Searching for dependencies of ignition-msgs5 -- Looking for ignition-math6 -- found version 6.9.2 -- Checking for module 'tinyxml2' -- Found tinyxml2, version 6.2.0 -- Looking for ignition-msgs5 -- found version 5.8.1 -- Looking for ignition-common3 -- found version 3.14.0 -- Searching for dependencies of ignition-common3 -- Looking for dlfcn.h - found -- Looking for libdl - found -- Found DL: TRUE
-- Searching forcomponent [graphics] -- Looking for ignition-common3-graphics -- found version 3.14.0 -- Searching for dependencies of ignition-common3-graphics -- Looking for ignition-math6 -- found version 6.9.2 -- Looking for ignition-fuel_tools4 -- found version 4.4.0 -- Searching for dependencies of ignition-fuel_tools4 -- Found CURL: /usr/lib/aarch64-linux-gnu/libcurl.so (found version "7.68.0")
-- Checking for module 'jsoncpp' -- Found jsoncpp, version 1.7.4 -- Found JSONCPP: TRUE
-- Checking for module 'yaml-0.1' -- Found yaml-0.1, version 0.2.2 -- Found YAML: TRUE
-- Checking for module 'libzip' -- Found libzip, version 1.5.1 -- Found ZIP: TRUE
-- Looking for ignition-common3 -- found version 3.14.0 -- Looking for ignition-math6 -- found version 6.9.2 -- Looking for ignition-msgs5 -- found version 5.8.1 -- Checking for one of the modules 'glib-2.0' -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3") -- Found OpenCV: /usr (found version "4.2.0") -- Found TinyXML: /usr/lib/aarch64-linux-gnu/libtinyxml.so
-- Checking for module 'gstreamer-1.0 >= 1.0' -- Found gstreamer-1.0 , version 1.16.2 -- Checking for module 'gstreamer-base-1.0 >= 1.0' -- Found gstreamer-base-1.0 , version 1.16.2 -- Checking for module 'gstreamer-app-1.0 >= 1.0' -- No package 'gstreamer-app-1.0' found -- Found GStreamer: GSTREAMER_INCLUDE_DIRS;GSTREAMER_LIBRARIES;GSTREAMER_VERSION;GSTREAMER_BASE_INCLUDE_DIRS;GSTREAMER_BASE_LIBRARIES (Required is at least version "1.0") -- Checking for module 'OGRE' -- Found OGRE, version 1.9.0 -- Building klt_feature_tracker without catkin -- Building OpticalFlow with OpenCV -- Found MAVLink: /home/parallels/PX4-Autopilot/build/px4_sitl_default/mavlink (found version "2.0") -- catkin DISABLED -- Found Protobuf: /usr/lib/aarch64-linux-gnu/libprotobuf.so;-lpthread (found version "3.6.1") -- Checking for module 'protobuf' -- Found protobuf, version 3.6.1 -- Gazebo version: 11.9 -- 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_APP_LIBRARIES (ADVANCED) linked by target "ForceVisual" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_airship_dynamics_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "sensor_msgs" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_airspeed_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_groundtruth_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "physics_msgs" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "std_msgs" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_usv_dynamics_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_video_stream_widget" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_gps_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_opticalflow_mockup_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_irlock_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_parachute_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_lidar_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_multirotor_base_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_wind_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_opticalflow_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_uuv_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_drop_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "nav_msgs" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_sonar_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_vision_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_user_camera_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_gst_camera_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "mav_msgs" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_controller_interface" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_gimbal_controller_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_imu_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_mavlink_interface" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_motor_model" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_camera_manager_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_magnetometer_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_barometer_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "LiftDragPlugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo linked by target "gazebo_catapult_plugin" in directory /home/parallels/PX4-Autopilot/Tools/sitl_gazebo-- Configuring incomplete, errors occurred! See also "/home/parallels/PX4-Autopilot/build/px4_sitl_default/build_gazebo/CMakeFiles/CMakeOutput.log". See also "/home/parallels/PX4-Autopilot/build/px4_sitl_default/build_gazebo/CMakeFiles/CMakeError.log". [822/828] Linking CXX executable bin/px4 FAILED: external/Stamp/sitl_gazebo/sitl_gazebo-configure cd /home/parallels/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/parallels/PX4-Autopilot/Tools/sitl_gazebo && /usr/bin/cmake -E touch /home/parallels/PX4-Autopilot/build/px4_sitl_default/external/Stamp/sitl_gazebo/sitl_gazebo-configure [824/828] Linking CXX executable bin/px4 ninja: build stopped: subcommand failed. make: *** [Makefile:225: px4_sitl_default] Error 1
I then tried 'sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev' before attempting to build again, however this now causes terminal to crash:
Any ideas?
Have tried reinstalling streamer with:
sudo apt-get install --reinstall gstreamer1.0-alsa gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-pulseaudio libgstreamer-plugins-bad1.0-0 libgstreamer-plugins-base1.0-0 libgstreamer-plugins-good1.0-0 libgstreamer1.0-0
However building still causes terminal crash - seems to crash on the same step each time (39/130 whilst generating typhoon_h480)
@joelfinnigan Did the error change after installing thr gstreamer plugins?
@Jaeyoung-Lim yes, before I was just getting the error message but now it causes terminal to freeze and crash?
@joelfinnigan How much memory do you have on your system? if it is less than 8GB, you are probably running out of memory
@Jaeyoung-Lim thanks you were right! Increased the memory allocation of the VM and build is now working and the GUI opens! Am now getting a new error message when I try to initiate takeoff however:
| \ \ \ / / / | | |/ / \ V / / /| | | / / \ / /_| | | | / /^\ \ __ | _| \/ \/ |/
px4 starting.
INFO [px4] Calling startup script: /bin/sh etc/init.d-posix/rcS 0 INFO [init] found model autostart file as SYS_AUTOSTART=10016 INFO [param] selected parameter default file eeprom/parameters_10016 [param] parameter file not found, creating eeprom/parameters_10016 SYS_AUTOCONFIG: curr: 0 -> new: 1 SYS_AUTOSTART: curr: 0 -> new: 10016 CAL_ACC0_ID: curr: 0 -> new: 1310988 CAL_GYRO0_ID: curr: 0 -> new: 1310988 CAL_ACC1_ID: curr: 0 -> new: 1310996 CAL_GYRO1_ID: curr: 0 -> new: 1310996 CAL_ACC2_ID: curr: 0 -> new: 1311004 CAL_GYRO2_ID: curr: 0 -> new: 1311004 CAL_MAG0_ID: curr: 0 -> new: 197388 CAL_MAG1_ID: curr: 0 -> new: 197644 SENS_BOARD_X_OFF: curr: 0.0000 -> new: 0.0000 SENS_DPRES_OFF: curr: 0.0000 -> new: 0.0010
- SYS_AUTOCONFIG: curr: 1 -> new: 0 IMU_INTEG_RATE: curr: 200 -> new: 250 INFO [dataman] data manager file './dataman' size is 11798680 bytes PX4 SIM HOST: localhost INFO [simulator] Waiting for simulator to accept connection on TCP port 4560 INFO [simulator] Simulator connected on TCP port 4560. INFO [commander] LED: open /dev/led0 failed (22) Gazebo multi-robot simulator, version 11.9.0 Copyright (C) 2012 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org
[Msg] Waiting for master. PWM_AUX_OUT: curr: 0 -> new: 1234 PWM_MAIN_OUT: curr: 0 -> new: 1234 [Msg] Connected to gazebo master @ http://127.0.0.1:11345 [Msg] Publicized address: 10.211.55.9 INFO [init] Mixer: etc/mixers/quad_w.main.mix on /dev/pwm_output0 INFO [init] setting PWM_AUX_OUT none INFO [mavlink] mode: Normal, data rate: 4000000 B/s on udp port 18570 remote port 14550 INFO [mavlink] mode: Onboard, data rate: 4000000 B/s on udp port 14580 remote port 14540 INFO [mavlink] mode: Onboard, data rate: 4000 B/s on udp port 14280 remote port 14030 INFO [mavlink] mode: Gimbal, data rate: 400000 B/s on udp port 13030 remote port 13280 INFO [logger] logger started (mode=all) INFO [logger] Start file log (type: full) INFO [logger] [logger] ./log/2021-11-20/13_02_52.ulg INFO [logger] Opened full log file: ./log/2021-11-20/13_0252.ulg INFO [mavlink] MAVLink only on localhost (set param MAV{i}BROADCAST = 1 to enable network) INFO [mavlink] MAVLink only on localhost (set param MAV{i}_BROADCAST = 1 to enable network) INFO [px4] Startup script returned successfully pxh> INFO [tone_alarm] home set INFO [tone_alarm] notify negative pxh> commander takeoff pxh> INFO [commander] Armed by internal command
INFO [navigator] Using minimum takeoff altitude: 2.50 m
INFO [commander] Takeoff detected
WARN [commander] Failsafe enabled: no datalink
INFO [commander] Failsafe mode activated INFO [tone_alarm] battery warning (fast) INFO [navigator] RTL HOME activated
INFO [navigator] RTL: landing at home position.
INFO [navigator] RTL: climb to 489 m (1 m above destination) INFO [commander] Failsafe mode deactivated
INFO [navigator] RTL: return at 489 m (1 m above destination)
INFO [navigator] RTL: land at destination
INFO [commander] Landing detected
INFO [commander] Disarmed by landing INFO [logger] closed logfile, bytes written: 1364578
I think this may be because I don't have QGroundControl installed? I have tried installing using the instructions given here: https://docs.qgroundcontrol.com/master/en/getting_started/download_and_install.html
However I get this error:
parallels@ubuntu-linux-20-04-desktop:~$ ~/Downloads/QGroundControl.AppImage bash: /home/parallels/Downloads/QGroundControl.AppImage: cannot execute binary file: Exec format error
Is this because I have an ARM chipset or have I missed a step somewhere? If it is the former, what would you recommend?
@joelfinnigan It looks like it, but not sure.
@Jaeyoung-Lim what would you recommend?
@joelfinnigan I would try finding an arm image of QGC(or if there is no image available, building it from source).
In any case, closing this issueas it is not related to simulation anymore.
@Jaeyoung-Lim ok thanks
please execute next command: bash ./PX4-Autopilot/Tools/setup/ubuntu.sh
I am very inexperienced with the Linux console, and SITL simulation in general. I am running Ubuntu Linux 20.04 on Parallels, attempting to build a PX4 SITL simulation. I began with a fresh virtual machine and installed ROS Noetic using the following instructions: https://wiki.ros.org/noetic/Installation/Ubuntu
Running 'roscore & rosrun gazebo_ros gazebo' launches both the server and the client correctly, and the proper ROS connections and Gazebo services are set up as described here: http://gazebosim.org/tutorials?tut=ros_installing&cat=connect_ros
I then installed the PX4 autopilot by running 'git clone https://github.com/PX4/PX4-Autopilot.git --recursive' and then 'bash ./PX4-Autopilot/Tools/setup/ubuntu.sh'
This completed but with an error and some warnings:
I added ~/.local/bin to path in the .bashrc file then restarted the machine and ran 'cd ~/PX4-Autopilot' then 'make clean' then 'make px4_sitl_default gazebo'
The build did not work, giving the following output:
Please help!!