Install SITL Error: what am I missing? - dronekit-python

I am stuck with getting the SITL to install and I have tried many ways.
Please I don't know how to proceed.
I followed the instructions in
http://dev.ardupilot.com/wiki/sitl-nati ... _in_cygwin
I am able to
make px4-v2
The paths are set correctly in .bashrc
export PATH=$PATH:$HOME/ardupilot/Tools/autotest
However,
make sitl -j4
generates the following error:
$ make sitl -j4
%% libraries/AP_Common/c++.o
%% libraries/AP_Common/AP_Common.o
%% libraries/AP_Menu/AP_Menu.o
In file included from /home/Me/ardupilot/libraries/AP_Common/c++.cpp:9:0:
/home/Me/ardupilot/libraries/AP_HAL/AP_HAL.h:6:21: fatal error: stdbool.h: No such file or directory
compilation terminated.
C:/cygwin/home/Me/ardupilot/mk/build_rules.mk:27: recipe for target '/tmp/arducopter.build/libraries/AP_Common/c++.o' failed
make: *** [/tmp/arducopter.build/libraries/AP_Common/c++.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /home/Me/ardupilot/libraries/AP_Common/AP_Common.cpp:21:0:
/home/Me/ardupilot/libraries/AP_HAL/AP_HAL.h:6:21: fatal error: stdbool.h: No such file or directory
compilation terminated.
C:/cygwin/home/Me/ardupilot/mk/build_rules.mk:27: recipe for target '/tmp/arducopter.build/libraries/AP_Common/AP_Common.o' failed
make: *** [/tmp/arducopter.build/libraries/AP_Common/AP_Common.o] Error 1
// BUILDROOT=/tmp/arducopter.build HAL_BOARD=HAL_BOARD_SITL HAL_BOARD_SUBTYPE=HAL_BOARD_SUBTYPE_NONE TOOLCHAIN=NATIVE EXTRAFLAGS=-DGIT_VERSION="c52f16b8"
In file included from /home/Me/ardupilot/libraries/AP_Common/AP_Common.h:26:0,
from /home/Me/ardupilot/libraries/AP_Menu/AP_Menu.cpp:7:
/usr/include/stdlib.h:16:20: fatal error: stddef.h: No such file or directory
compilation terminated.
C:/cygwin/home/Me/ardupilot/mk/build_rules.mk:27: recipe for target '/tmp/arducopter.build/libraries/AP_Menu/AP_Menu.o' failed
make: *** [/tmp/arducopter.build/libraries/AP_Menu/AP_Menu.o] Error 1

Easier to use vagrant for doing this than doing manually : http://ardupilot.org/dev/docs/setting-up-sitl-using-vagrant.html

I use Ubuntu. Download the code and run it using the following steps.
git clone https://github.com/ArduPilot/ardupilot.git
cd ardupilot
https://github.com/ArduPilot/ardupilot.git
make sitl -j4

Related

Errors in building INET in omnet++ 5.5.1

I have installed OMNeT++ 5.5.1 in ubuntu 18.04 successfully and it is working.
However, I am getting the following errors while building the latest version of INET. I followed the instructions ( using the IDE) given in the document. Can anyone please help me to get ride of it? Thank you.
/tmp/cc4FhpSO.s: Assembler messages:
/tmp/cc4FhpSO.s: Fatal error: can't close ../out/gcc-debug/src/inet/visualizer/base/MediumVisualizerBase.o: No space left on device
Makefile:1754: recipe for target '../out/gcc-debug/src/inet/visualizer/base/MediumVisualizerBase.o' failed
make[1]: *** [../out/gcc-debug/src/inet/visualizer/base/MediumVisualizerBase.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/tech/Downloads/inet4/src'
make: *** [all] Error 2
Makefile:7: recipe for target 'all' failed
"make MODE=debug -j2 all" terminated with exit code 2. Build might be incomplete.
20:48:19 Build Failed. 5 errors, 0 warnings. (took 11m:39s.915ms)
It seems that you don't have free space in the disk:
/tmp/cc4FhpSO.s: Fatal error: can't close ../out/gcc-debug/src/inet/visualizer/base/MediumVisualizerBase.o: No space left on device

cmocka.h: No such file or directory though cmocka installed -- IBM watson embedded C Client Library

I'm trying to compile Embedded C Client Library example for IBM watson.
I'm referring to https://github.com/ibm-watson-iot/iot-embeddedc for instructions.
While compiling I'm getting error as cmocka.h not found. I copied cmocka.h file manually to /home/amruta/iot-embeddedc/test but still getting same error.
Path of cmocka.h :
/home/amruta/cmocka-1.1.0/include/cmocka.h
path of test_gatewayclient.c :
/home/amruta/iot-embeddedc/test/test_gatewayclient.c
Build path :
/home/amruta/iot-embeddedc/build
Error :
[ 81%] Building C object test/CMakeFiles/test_gatewayclient.dir/test_gatewayclient.c.o
/home/amruta/iot-embeddedc/test/test_gatewayclient.c:5:20: fatal error: cmocka.h: No such file or directory
compilation terminated.
test/CMakeFiles/test_gatewayclient.dir/build.make:62: recipe for target 'test/CMakeFiles/test_gatewayclient.dir/test_gatewayclient.c.o' failed
make[2]: *** [test/CMakeFiles/test_gatewayclient.dir/test_gatewayclient.c.o] Error 1
CMakeFiles/Makefile2:96: recipe for target 'test/CMakeFiles/test_gatewayclient.dir/all' failed
make[1]: *** [test/CMakeFiles/test_gatewayclient.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2

CLion erroring on compiling - call stack problem

I'm trying to compile a hello world file in clion but I keep getting this error
"C:\Program Files\JetBrains\CLion 2018.3.1\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" C:\Users\NAME\CLionProjects\HelloWorld
CMake Error at C:/Program Files/JetBrains/CLion 2018.3.1/bin/cmake/win/share/cmake-3.13/Modules/CMakeDetermineCompilerId.cmake:523 (file):
file STRINGS file
"C:/Users/NAME/CLionProjects/HelloWorld/cmake-build-debug/CMakeFiles/3.13.1/CompilerIdC/a.exe"
cannot be read.
How do I get rid of it?
Image of tooltip section
EDIT:
I keep getting the following compile error:
====================[ Build | HelloWorld | Debug ]==============================
"C:\Program Files\JetBrains\CLion 2018.3.1\bin\cmake\win\bin\cmake.exe" --build C:\Users\ssez\CLionProjects\HelloWorld\cmake-build-debug --target HelloWorld -- -j 4
[ 33%] Linking C executable HelloWorld.exe
c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot open output file HelloWorld.exe: Permission denied
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[3]: * [HelloWorld.exe] Error 1
CMakeFiles\HelloWorld.dir\build.make:99: recipe for target 'HelloWorld.exe' failed
mingw32-make.exe[2]: [CMakeFiles/HelloWorld.dir/all] Error 2
CMakeFiles\Makefile2:71: recipe for target 'CMakeFiles/HelloWorld.dir/all' failed
mingw32-make.exe1: [CMakeFiles/HelloWorld.dir/rule] Error 2
CMakeFiles\Makefile2:83: recipe for target 'CMakeFiles/HelloWorld.dir/rule' failed
mingw32-make.exe: * [HelloWorld] Error 2
Makefile:117: recipe for target 'HelloWorld' failed
Did you setup the toolchain in CLion after you installed both MinGW and CLion?
File > Settings > Build, Execution, Deployment > Toolchains
CLion can normally autodetect the compilers that it knows about, however I believe that it still has to be told which compiler to look for at first.

Error while cross compiling poppler package

I am getting the following error while cross compiling Poppler package on Ubuntu
After configuring I gave command make
then while making the following error has come
GlobalParams.cc:81:35: fatal error: fontconfig/fontconfig.h: No such file or directory
compilation terminated.
make[3]: * [libpoppler_la-GlobalParams.lo] Error 1
make[3]: Leaving directory /media/COMMON/WorkSpace/Packages/poppler-0.41.0/poppler'
make[2]: *** [all] Error 2
make[2]: Leaving directory/media/COMMON/WorkSpace/Packages/poppler-0.41.0/poppler'
make[1]: * [all-recursive] Error 1
make[1]: Leaving directory `/media/COMMON/WorkSpace/Packages/poppler-0.41.0'
make: *** [all] Error 2
I even check the includes which I had given while configuring it has the fontconfig/fontconfig.h but den still the error is coming.
It looks like you should cross-compile the fontconfig library,then include the headers and libs into Popper.
Download the latest fontconfig and excute the conmmand below:
PKG_CONFIG_PATH=/opt/poppLib/lib/pkgconfig ./configureCC=arm-linux-gcc --host=arm-linux --build=i386-linux --prefix=/opt/poppLib--with-arch=arm --enable-libxml2 --disable-docs
make && make install
then add the include and lib in your Popper ,try compile it again.

Building Minix 3.3 Errors

i installed minix 3.3 ,then i downloaded the source and tried to build followd this link instructions.
i got an error building minix as follows:
*** Error code 1
Stop.
make: stopped in /usr/src/gnu/usr.bin/texinfo
*** Error code 1
Stop.
make: stopped in /usr/src/gnu/usr.bin/texinfo
*** Error code 1
Stop.
make: stopped in /usr/src/gnu/usr.bin
*** Error code 1
Stop.
make: stopped in /usr/src/gnu
*** Error code 1
Stop.
make: stopped in /usr/src
*** Error code 1
Stop.
make: stopped in /usr/src
i found same problem discussed in this link ,i followd the instructions mentioned there:
#pkgin in gtexinfo
#cd /usr/src/gnu/usr.bin/texinfo
#makeinfo -I/usr/src/gnu/dist/texinfo/doc --no-split -o info-stnd.info /usr/src/gnu/dist/texinfo/doc/info-stnd.texi
#makeinfo -I/usr/src/gnu/dist/texinfo/doc --no-split -o info.info /usr/src/gnu/dist/texinfo/doc/info.texi
#makeinfo -I/usr/src/gnu/dist/texinfo/doc --no-split -o texinfo.info /usr/src/gnu/dist/texinfo/doc/texinfo.txi
#cd ../../..
#make -C gnu/usr.bin/texinfo all
at last command i recieve the following error
#make -c gnu/usr.bin/texinfo all
create texinfo/info-stnd.info
unknown option: no-version-header
*** Error code 1
stop.
make:stopped in /usr/src/gnu/usr.bin/texinfo
is there is a way to build it without errors.

Resources