# Connect QGroundControl with jMAVSim or Gazebo

**URL:** <https://discuss.px4.io/t/connect-qgroundcontrol-with-jmavsim-or-gazebo/15689>\
**Category:** Development\
**Created:** [March 13, 2020, 7:21pm UTC](https://discuss.px4.io/t/connect-qgroundcontrol-with-jmavsim-or-gazebo/15689 "2020-03-13T19:21:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MuhammadBilal1](https://discuss.px4.io/letter_avatar_proxy/v4/letter/m/3ec8ea/32.png) [@MuhammadBilal1](https://discuss.px4.io/u/MuhammadBilal1)\
**Post date:** [March 13, 2020, 7:21pm UTC](https://discuss.px4.io/t/connect-qgroundcontrol-with-jmavsim-or-gazebo/15689/1 "2020-03-13T19:21:24Z")

</div>

I am trying to connect QGroundControl with Gazebo but its not working.  
After failure I tried to connect QGroundControl with jMAVSim that didn’t worked either.

To run the Gazebo, I am using the following command but didn’t worked. (Output is given at the end of this post)  
“ **make px4\_sitl gazebo\_plane** ”

_Here is the output if I try to run jMAVSim simulator._

> bilal@bilal-ubuntu:~/Simulator\_Gazebo/Firmware$ **make px4\_sitl jMAVSim**  
> ninja: error: unknown target ‘jMAVSim’  
> Makefile:205: recipe for target ‘px4\_sitl’ failed  
> make: \*\*\* [px4\_sitl] Error 1

_I installed the following things in the given order:_

**STEP 1: Get Gazeebo Script**  
wget [https://raw.githubusercontent.com/PX4/Firmware/v1.10.0/Tools/setup/ubuntu.sh](https://raw.githubusercontent.com/PX4/Firmware/v1.10.0/Tools/setup/ubuntu.sh)  
wget [https://raw.githubusercontent.com/PX4/Firmware/v1.10.0/Tools/setup/requirements.txt](https://raw.githubusercontent.com/PX4/Firmware/v1.10.0/Tools/setup/requirements.txt)

**STEP 2: Install Gazeebo from Script**  
source ubuntu.sh

**STEP 3: Get PX4 Firmware**  
git clone [GitHub - PX4/PX4-Autopilot: PX4 Autopilot Software](https://github.com/PX4/Firmware.git)  
make posix gazebo\_plane  
make px4\_sitl gazebo\_plane

**STEP 4: Get QGroundControl**  
[https://s3-us-west-2.amazonaws.com/qgroundcontrol/latest/QGroundControl.AppImage](https://s3-us-west-2.amazonaws.com/qgroundcontrol/latest/QGroundControl.AppImage)

**STEP 5: Run QGroundControl**  
chmod +x ./QGroundControl.AppImage  
./QGroundControl.AppImage

_Here is the directory structure I am following:_  
…\Simulator\_Gazebo\Firmware(Clone of Step 3 PX4)  
…\Simulator\_Gazebo\gazebo\ubuntu.sh  
…\Simulator\_Gazebo\gazebo\requirements.txt  
…\Simulator\_Gazebo\qgc\QGroundControl.AppImage

Please let me know what I am doing wrong here?

**OUTPUT OF GAZEBO RUN COMMAND**

> bilal@bilal-ubuntu:~/Simulator\_Gazebo$ git clone [GitHub - PX4/PX4-Autopilot: PX4 Autopilot Software](https://github.com/PX4/Firmware.git)  
> Cloning into ‘Firmware’…  
> remote: Enumerating objects: 40, done.  
> remote: Counting objects: 100% (40/40), done.  
> remote: Compressing objects: 100% (33/33), done.  
> remote: Total 311493 (delta 16), reused 15 (delta 7), pack-reused 311453  
> Receiving objects: 100% (311493/311493), 112.36 MiB | 2.58 MiB/s, done.  
> Resolving deltas: 100% (233765/233765), done.
> 
> bilal@bilal-ubuntu:~/Simulator\_Gazebo$ cd Firmware/
> 
> bilal@bilal-ubuntu:~/Simulator\_Gazebo/Firmware$ **make px4\_sitl gazebo\_plane**  
> – PX4 version: v1.11.0-beta1-752-g2da38ae81c  
> – PX4 config file: /home/bilal/Simulator\_Gazebo/Firmware/boards/px4/sitl/default.cmake  
> – PX4 config: px4\_sitl\_default  
> – PX4 platform: posix  
> – PX4 lockstep: enabled  
> – cmake build type: RelWithDebInfo  
> – The CXX compiler identification is GNU 7.5.0  
> – The C compiler identification is GNU 7.5.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)  
> – Found PythonInterp: /usr/bin/python3 (found suitable version “3.6.9”, minimum required is “3”)  
> – build type is RelWithDebInfo  
> – PX4 ECL: Very lightweight Estimation & Control Library v1.9.0-rc1-225-g230c865  
> – Configuring done  
> – Generating done  
> – Build files have been written to: /home/bilal/Simulator\_Gazebo/Firmware/build/px4\_sitl\_default  
> [0/731] git submodule src/drivers/gps/devices  
> [1/731] git submodule src/lib/ecl  
> [2/731] git submodule mavlink/include/mavlink/v2.0  
> [3/731] git submodule Tools/sitl\_gazebo  
> [9/731] Performing configure step for ‘sitl\_gazebo’  
> – install-prefix: /usr/local  
> – The C compiler identification is GNU 7.5.0  
> – The CXX compiler identification is GNU 7.5.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 compiler  
> – Looking for pthread.h  
> – Looking for pthread.h - found  
> – Looking for pthread\_create  
> – Looking for pthread\_create - not found  
> – Looking for pthread\_create in pthreads  
> – Looking for pthread\_create in pthreads - not found  
> – Looking for pthread\_create in pthread  
> – Looking for pthread\_create in pthread - found  
> – Found Threads: TRUE  
> – Boost version: 1.65.1  
> – Found the following Boost libraries:  
> – system  
> – thread  
> – filesystem  
> – chrono  
> – date\_time  
> – atomic  
> – Found PkgConfig: /usr/bin/pkg-config (found version “0.29.1”)  
> – Checking for module ‘bullet\>=2.82’  
> – Found bullet, version 2.87  
> – Found Simbody: /usr/include/simbody  
> – Boost version: 1.65.1  
> – Found the following Boost libraries:  
> – thread  
> – system  
> – filesystem  
> – program\_options  
> – regex  
> – iostreams  
> – date\_time  
> – chrono  
> – atomic  
> – Found Protobuf: /usr/lib/x86\_64-linux-gnu/libprotobuf.so;-lpthread (found version “3.0.0”)  
> – Boost version: 1.65.1  
> – 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/x86\_64-linux-gnu/libOgreMain.so;debug;/usr/lib/x86\_64-linux-gnu/libOgreMain.so  
> – Looking for OGRE\_Paging…  
> – Found OGRE\_Paging: optimized;/usr/lib/x86\_64-linux-gnu/libOgrePaging.so;debug;/usr/lib/x86\_64-linux-gnu/libOgrePaging.so  
> – Looking for OGRE\_Terrain…  
> – Found OGRE\_Terrain: optimized;/usr/lib/x86\_64-linux-gnu/libOgreTerrain.so;debug;/usr/lib/x86\_64-linux-gnu/libOgreTerrain.so  
> – Looking for OGRE\_Property…  
> – Found OGRE\_Property: optimized;/usr/lib/x86\_64-linux-gnu/libOgreProperty.so;debug;/usr/lib/x86\_64-linux-gnu/libOgreProperty.so  
> – Looking for OGRE\_RTShaderSystem…  
> – Found OGRE\_RTShaderSystem: optimized;/usr/lib/x86\_64-linux-gnu/libOgreRTShaderSystem.so;debug;/usr/lib/x86\_64-linux-gnu/libOgreRTShaderSystem.so  
> – Looking for OGRE\_Volume…  
> – Found OGRE\_Volume: optimized;/usr/lib/x86\_64-linux-gnu/libOgreVolume.so;debug;/usr/lib/x86\_64-linux-gnu/libOgreVolume.so  
> – Looking for OGRE\_Overlay…  
> – Found OGRE\_Overlay: optimized;/usr/lib/x86\_64-linux-gnu/libOgreOverlay.so;debug;/usr/lib/x86\_64-linux-gnu/libOgreOverlay.so  
> – Found Protobuf: /usr/lib/x86\_64-linux-gnu/libprotobuf.so;-lpthread;-lpthread (found suitable version “3.0.0”, minimum required is “2.3.0”)  
> – Config-file not installed for ZeroMQ – checking for pkg-config  
> – Checking for module ‘libzmq \>= 4’  
> – Found libzmq , version 4.2.5  
> – Found ZeroMQ: TRUE (Required is at least version “4”)  
> – Checking for module ‘uuid’  
> – Found uuid, version 2.31.1  
> – Found UUID: TRUE  
> – Checking for module ‘tinyxml2’  
> – Found tinyxml2, version 6.0.0  
> – Looking for dlfcn.h - found  
> – Looking for libdl - found  
> – Found DL: TRUE  
> – FreeImage.pc not found, we will search for FreeImage\_INCLUDE\_DIRS and FreeImage\_LIBRARIES  
> – Checking for module ‘gts’  
> – Found gts, version 0.7.6  
> – Found GTS: TRUE  
> – Checking for module ‘libswscale’  
> – Found libswscale, version 4.8.100  
> – Found SWSCALE: TRUE  
> – Checking for module ‘libavdevice \>= 56.4.100’  
> – Found libavdevice , version 57.10.100  
> – Found AVDEVICE: TRUE (Required is at least version “56.4.100”)  
> – Checking for module ‘libavformat’  
> – Found libavformat, version 57.83.100  
> – Found AVFORMAT: TRUE  
> – Checking for module ‘libavcodec’  
> – Found libavcodec, version 57.107.100  
> – Found AVCODEC: TRUE  
> – Checking for module ‘libavutil’  
> – Found libavutil, version 55.78.100  
> – Found AVUTIL: TRUE  
> – Found CURL: /usr/lib/x86\_64-linux-gnu/libcurl.so (found version “7.58.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.1.7  
> – Found YAML: TRUE  
> – Checking for module ‘libzip’  
> – Found libzip, version 1.1.2  
> – Found ZIP: TRUE  
> – Found PythonInterp: /usr/bin/python3 (found suitable version “3.6.9”, minimum required is “3”)  
> – Found OpenCV: /usr (found version “3.2.0”)  
> – Found TinyXML: /usr/lib/x86\_64-linux-gnu/libtinyxml.so  
> – Checking for module ‘gstreamer-1.0 \>= 1.0’  
> – Found gstreamer-1.0 , version 1.14.5  
> – Checking for module ‘gstreamer-base-1.0 \>= 1.0’  
> – Found gstreamer-base-1.0 , version 1.14.5  
> – 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/bilal/Simulator\_Gazebo/Firmware/mavlink/include (found version “2.0”)  
> – catkin DISABLED  
> – Found Protobuf: /usr/lib/x86\_64-linux-gnu/libprotobuf.so;-lpthread;-lpthread;-lpthread (found version “3.0.0”)  
> – Checking for module ‘protobuf’  
> – Found protobuf, version 3.0.0  
> – Gazebo version: 9.12  
> – Found GStreamer: adding gst\_camera\_plugin  
> – Found GStreamer: adding gst\_video\_stream\_widget  
> – Configuring done  
> – Generating done  
> – Build files have been written to: /home/bilal/Simulator\_Gazebo/Firmware/build/px4\_sitl\_default/build\_gazebo  
> [375/731] Performing build step for ‘sitl\_gazebo’  
> [6/100] Generating /home/bilal/Simulat…ls/mb1240-xl-ez4/mb1240-xl-ez4-gen.sdf  
> /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/models/mb1240-xl-ez4/mb1240-xl-ez4.sdf.jinja → /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/models/mb1240-xl-ez4/mb1240-xl-ez4-gen.sdf  
> [8/100] Generating /home/bilal/Simulat…models/matrice\_100/matrice\_100-gen.sdf  
> /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/models/matrice\_100/matrice\_100.sdf.jinja → /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/models/matrice\_100/matrice\_100-gen.sdf  
> [9/100] Generating /home/bilal/Simulat…\_gazebo/models/px4flow/px4flow-gen.sdf  
> /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/models/px4flow/px4flow.sdf.jinja → /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/models/px4flow/px4flow-gen.sdf  
> [15/100] Generating /home/bilal/Simula…s/sitl\_gazebo/models/c920/c920-gen.sdf  
> /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/models/c920/c920.sdf.jinja → /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/models/c920/c920-gen.sdf  
> [16/100] Generating /home/bilal/Simula…models/3DR\_gps\_mag/3DR\_gps\_mag-gen.sdf  
> /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/models/3DR\_gps\_mag/3DR\_gps\_mag.sdf.jinja → /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/models/3DR\_gps\_mag/3DR\_gps\_mag-gen.sdf  
> [17/100] Generating /home/bilal/Simula…\_gazebo/models/pixhawk/pixhawk-gen.sdf  
> /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/models/pixhawk/pixhawk.sdf.jinja → /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/models/pixhawk/pixhawk-gen.sdf  
> [20/100] Generating /home/bilal/Simula…s/sitl\_gazebo/models/r200/r200-gen.sdf  
> /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/models/r200/r200.sdf.jinja → /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/models/r200/r200-gen.sdf  
> [22/100] Generating /home/bilal/Simula…sitl\_gazebo/models/sf10a/sf10a-gen.sdf  
> /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/models/sf10a/sf10a.sdf.jinja → /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/models/sf10a/sf10a-gen.sdf  
> [36/100] Building CXX object CMakeFile…/src/gazebo\_controller\_interface.cpp.o  
> FAILED: CMakeFiles/gazebo\_controller\_interface.dir/src/gazebo\_controller\_interface.cpp.o  
> /usr/bin/c++ -DLIBBULLET\_VERSION=2.87 -DLIBBULLET\_VERSION\_GT\_282 -Dgazebo\_controller\_interface\_EXPORTS -isystem /usr/include/gazebo-9 -isystem /usr/include/bullet -isystem /usr/include/simbody -isystem /usr/include/sdformat-6.2 -isystem /usr/include/ignition/math4 -isystem /usr/include/OGRE -isystem /usr/include/OGRE/Terrain -isystem /usr/include/OGRE/Paging -isystem /usr/include/ignition/transport4 -isystem /usr/include/ignition/msgs1 -isystem /usr/include/ignition/common1 -isystem /usr/include/ignition/fuel\_tools1 -isystem /usr/include/x86\_64-linux-gnu/qt5 -isystem /usr/include/x86\_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86\_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/include -I. -I/usr/include/eigen3 -I/usr/include/eigen3/eigen3 -I/usr/include/gazebo-9/gazebo/msgs -I/home/bilal/Simulator\_Gazebo/Firmware/mavlink/include -isystem /usr/include/opencv -I/home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/external/OpticalFlow/include -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86\_64-linux-gnu/glib-2.0/include -isystem /usr/include/uuid -isystem /usr/include/x86\_64-linux-gnu -Wno-deprecated-declarations -Wno-address-of-packed-member -fPIC -I/usr/include/uuid -I/usr/include/x86\_64-linux-gnu -std=gnu++1z -MD -MT CMakeFiles/gazebo\_controller\_interface.dir/src/gazebo\_controller\_interface.cpp.o -MF CMakeFiles/gazebo\_controller\_interface.dir/src/gazebo\_controller\_interface.cpp.o.d -o CMakeFiles/gazebo\_controller\_interface.dir/src/gazebo\_controller\_interface.cpp.o -c /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/src/gazebo\_controller\_interface.cpp  
> **c++: internal compiler error: Killed (program cc1plus)**  
> _Please submit a full bug report,_  
> with preprocessed source if appropriate.  
> See \<file:///usr/share/doc/gcc-7/README.Bugs\> for instructions.  
> [37/100] Building CXX object CMakeFile…ugin.dir/src/gazebo\_sonar\_plugin.cpp.o  
> **FAILED: CMakeFiles/gazebo\_sonar\_plugin.dir/src/gazebo\_sonar\_plugin.cpp.o**  
> /usr/bin/c++ -DLIBBULLET\_VERSION=2.87 -DLIBBULLET\_VERSION\_GT\_282 -Dgazebo\_sonar\_plugin\_EXPORTS -isystem /usr/include/gazebo-9 -isystem /usr/include/bullet -isystem /usr/include/simbody -isystem /usr/include/sdformat-6.2 -isystem /usr/include/ignition/math4 -isystem /usr/include/OGRE -isystem /usr/include/OGRE/Terrain -isystem /usr/include/OGRE/Paging -isystem /usr/include/ignition/transport4 -isystem /usr/include/ignition/msgs1 -isystem /usr/include/ignition/common1 -isystem /usr/include/ignition/fuel\_tools1 -isystem /usr/include/x86\_64-linux-gnu/qt5 -isystem /usr/include/x86\_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86\_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/include -I. -I/usr/include/eigen3 -I/usr/include/eigen3/eigen3 -I/usr/include/gazebo-9/gazebo/msgs -I/home/bilal/Simulator\_Gazebo/Firmware/mavlink/include -isystem /usr/include/opencv -I/home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/external/OpticalFlow/include -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86\_64-linux-gnu/glib-2.0/include -isystem /usr/include/uuid -isystem /usr/include/x86\_64-linux-gnu -Wno-deprecated-declarations -Wno-address-of-packed-member -fPIC -I/usr/include/uuid -I/usr/include/x86\_64-linux-gnu -std=gnu++1z -MD -MT CMakeFiles/gazebo\_sonar\_plugin.dir/src/gazebo\_sonar\_plugin.cpp.o -MF CMakeFiles/gazebo\_sonar\_plugin.dir/src/gazebo\_sonar\_plugin.cpp.o.d -o CMakeFiles/gazebo\_sonar\_plugin.dir/src/gazebo\_sonar\_plugin.cpp.o -c /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/src/gazebo\_sonar\_plugin.cpp  
> **c++: internal compiler error: Killed (program cc1plus)**  
> _Please submit a full bug report,_  
> with preprocessed source if appropriate.  
> See \<file:///usr/share/doc/gcc-7/README.Bugs\> for instructions.  
> [39/100] Building CXX object CMakeFile…gin.dir/src/gazebo\_vision\_plugin.cpp.o  
> **FAILED: CMakeFiles/gazebo\_vision\_plugin.dir/src/gazebo\_vision\_plugin.cpp.o**  
> /usr/bin/c++ -DLIBBULLET\_VERSION=2.87 -DLIBBULLET\_VERSION\_GT\_282 -Dgazebo\_vision\_plugin\_EXPORTS -isystem /usr/include/gazebo-9 -isystem /usr/include/bullet -isystem /usr/include/simbody -isystem /usr/include/sdformat-6.2 -isystem /usr/include/ignition/math4 -isystem /usr/include/OGRE -isystem /usr/include/OGRE/Terrain -isystem /usr/include/OGRE/Paging -isystem /usr/include/ignition/transport4 -isystem /usr/include/ignition/msgs1 -isystem /usr/include/ignition/common1 -isystem /usr/include/ignition/fuel\_tools1 -isystem /usr/include/x86\_64-linux-gnu/qt5 -isystem /usr/include/x86\_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86\_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/include -I. -I/usr/include/eigen3 -I/usr/include/eigen3/eigen3 -I/usr/include/gazebo-9/gazebo/msgs -I/home/bilal/Simulator\_Gazebo/Firmware/mavlink/include -isystem /usr/include/opencv -I/home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/external/OpticalFlow/include -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86\_64-linux-gnu/glib-2.0/include -isystem /usr/include/uuid -isystem /usr/include/x86\_64-linux-gnu -Wno-deprecated-declarations -Wno-address-of-packed-member -fPIC -I/usr/include/uuid -I/usr/include/x86\_64-linux-gnu -std=gnu++1z -MD -MT CMakeFiles/gazebo\_vision\_plugin.dir/src/gazebo\_vision\_plugin.cpp.o -MF CMakeFiles/gazebo\_vision\_plugin.dir/src/gazebo\_vision\_plugin.cpp.o.d -o CMakeFiles/gazebo\_vision\_plugin.dir/src/gazebo\_vision\_plugin.cpp.o -c /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/src/gazebo\_vision\_plugin.cpp  
> **c++: internal compiler error: Killed (program cc1plus)**  
> _Please submit a full bug report,_  
> with preprocessed source if appropriate.  
> See \<file:///usr/share/doc/gcc-7/README.Bugs\> for instructions.  
> [40/100] Building CXX object CMakeFile…c/gazebo\_geotagged\_images\_plugin.cpp.o  
> **FAILED:** CMakeFiles/gazebo\_geotagged\_images\_plugin.dir/src/gazebo\_geotagged\_images\_plugin.cpp.o  
> /usr/bin/c++ -DLIBBULLET\_VERSION=2.87 -DLIBBULLET\_VERSION\_GT\_282 -Dgazebo\_geotagged\_images\_plugin\_EXPORTS -isystem /usr/include/gazebo-9 -isystem /usr/include/bullet -isystem /usr/include/simbody -isystem /usr/include/sdformat-6.2 -isystem /usr/include/ignition/math4 -isystem /usr/include/OGRE -isystem /usr/include/OGRE/Terrain -isystem /usr/include/OGRE/Paging -isystem /usr/include/ignition/transport4 -isystem /usr/include/ignition/msgs1 -isystem /usr/include/ignition/common1 -isystem /usr/include/ignition/fuel\_tools1 -isystem /usr/include/x86\_64-linux-gnu/qt5 -isystem /usr/include/x86\_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86\_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/include -I. -I/usr/include/eigen3 -I/usr/include/eigen3/eigen3 -I/usr/include/gazebo-9/gazebo/msgs -I/home/bilal/Simulator\_Gazebo/Firmware/mavlink/include -isystem /usr/include/opencv -I/home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/external/OpticalFlow/include -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86\_64-linux-gnu/glib-2.0/include -isystem /usr/include/uuid -isystem /usr/include/x86\_64-linux-gnu -Wno-deprecated-declarations -Wno-address-of-packed-member -fPIC -I/usr/include/uuid -I/usr/include/x86\_64-linux-gnu -std=gnu++1z -MD -MT CMakeFiles/gazebo\_geotagged\_images\_plugin.dir/src/gazebo\_geotagged\_images\_plugin.cpp.o -MF CMakeFiles/gazebo\_geotagged\_images\_plugin.dir/src/gazebo\_geotagged\_images\_plugin.cpp.o.d -o CMakeFiles/gazebo\_geotagged\_images\_plugin.dir/src/gazebo\_geotagged\_images\_plugin.cpp.o -c /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/src/gazebo\_geotagged\_images\_plugin.cpp  
> **c++: internal compiler error: Killed (program cc1plus)**  
> _Please submit a full bug report,_  
> with preprocessed source if appropriate.  
> See \<file:///usr/share/doc/gcc-7/README.Bugs\> for instructions.  
> [41/100] Generating /home/bilal/Simula…Tools/sitl\_gazebo/models/iris/iris.sdf
> 
> [42/100] Building CXX object CMakeFile…ugin.dir/src/gazebo\_lidar\_plugin.cpp.o  
> FAILED: CMakeFiles/gazebo\_lidar\_plugin.dir/src/gazebo\_lidar\_plugin.cpp.o  
> /usr/bin/c++ -DLIBBULLET\_VERSION=2.87 -DLIBBULLET\_VERSION\_GT\_282 -Dgazebo\_lidar\_plugin\_EXPORTS -isystem /usr/include/gazebo-9 -isystem /usr/include/bullet -isystem /usr/include/simbody -isystem /usr/include/sdformat-6.2 -isystem /usr/include/ignition/math4 -isystem /usr/include/OGRE -isystem /usr/include/OGRE/Terrain -isystem /usr/include/OGRE/Paging -isystem /usr/include/ignition/transport4 -isystem /usr/include/ignition/msgs1 -isystem /usr/include/ignition/common1 -isystem /usr/include/ignition/fuel\_tools1 -isystem /usr/include/x86\_64-linux-gnu/qt5 -isystem /usr/include/x86\_64-linux-gnu/qt5/QtCore -isystem /usr/lib/x86\_64-linux-gnu/qt5/mkspecs/linux-g++ -I/home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/include -I. -I/usr/include/eigen3 -I/usr/include/eigen3/eigen3 -I/usr/include/gazebo-9/gazebo/msgs -I/home/bilal/Simulator\_Gazebo/Firmware/mavlink/include -isystem /usr/include/opencv -I/home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/external/OpticalFlow/include -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86\_64-linux-gnu/glib-2.0/include -isystem /usr/include/uuid -isystem /usr/include/x86\_64-linux-gnu -Wno-deprecated-declarations -Wno-address-of-packed-member -fPIC -I/usr/include/uuid -I/usr/include/x86\_64-linux-gnu -std=gnu++1z -MD -MT CMakeFiles/gazebo\_lidar\_plugin.dir/src/gazebo\_lidar\_plugin.cpp.o -MF CMakeFiles/gazebo\_lidar\_plugin.dir/src/gazebo\_lidar\_plugin.cpp.o.d -o CMakeFiles/gazebo\_lidar\_plugin.dir/src/gazebo\_lidar\_plugin.cpp.o -c /home/bilal/Simulator\_Gazebo/Firmware/Tools/sitl\_gazebo/src/gazebo\_lidar\_plugin.cpp  
> **c++: internal compiler error: Killed (program cc1plus)**  
> _Please submit a full bug report,_  
> with preprocessed source if appropriate.  
> See \<file:///usr/share/doc/gcc-7/README.Bugs\> for instructions.  
> [45/100] Building CXX object CMakeFile…ir/src/gazebo\_opticalflow\_plugin.cpp.o  
> ninja: build stopped: subcommand failed.  
> [727/731] Linking CXX executable bin/px4  
> **FAILED: external/Stamp/sitl\_gazebo/sitl\_gazebo-build**  
> cd /home/bilal/Simulator\_Gazebo/Firmware/build/px4\_sitl\_default/build\_gazebo && /usr/bin/cmake --build .  
> **ninja: build stopped: subcommand failed.**  
> **Makefile:205: recipe for target ‘px4\_sitl’ failed**  
> **make: \*\*\* [px4\_sitl] Error 1**
