CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Tools/scripts/build_appveyor.sh
Views: 1798
1
#!/usr/bin/env bash
2
# script to build 32 bit cygwin binaries for SITL
3
4
export PATH="/usr/local/bin:/usr/bin:/bin"
5
export PATH
6
7
set -x
8
9
cd /cygdrive/c/work
10
11
(
12
date
13
git submodule update --init --recursive -f
14
15
# build for 32 bit target
16
export CXX=i686-pc-cygwin-g++.exe
17
export CC=i686-pc-cygwin-gcc
18
19
./waf configure --board sitl
20
21
python3 waf -j4 copter plane rover heli sub
22
23
# map to the names that MissionPlanner expects
24
cp /cygdrive/c/work/build/sitl/bin/ardurover.exe /cygdrive/c/work/sitl/Rover.elf
25
cp /cygdrive/c/work/build/sitl/bin/arduplane.exe /cygdrive/c/work/sitl/ArduPlane.elf
26
cp /cygdrive/c/work/build/sitl/bin/arducopter.exe /cygdrive/c/work/sitl/ArduCopter.elf
27
cp /cygdrive/c/work/build/sitl/bin/arducopter-heli.exe /cygdrive/c/work/sitl/ArduHeli.elf
28
cp /cygdrive/c/work/build/sitl/bin/ardusub.exe /cygdrive/c/work/sitl/ArduSub.elf
29
30
cp /usr/i686-pc-cygwin/sys-root/usr/bin/*.dll /cygdrive/c/work/sitl/
31
32
cd /cygdrive/c/work/sitl/
33
git log -1 > git.txt
34
ls
35
) | tee /cygdrive/c/work/sitl/build.txt 2>&1
36
37
38
39