-
Notifications
You must be signed in to change notification settings - Fork 6
Building the code on Windows10 using WSL Ubuntu
(Original Howtogeek's Instructions)
- Under Control Panel >> Programs >> Turn Windows Features on and off enable "Windows Subsystem for Linux"
- Download and install Ubuntu from MicrosoftStore
- navigate to the directory you want to clone into and run
git clone https://github.com/night-ghost/ardupilot.git - init and update submodules
git submodule initandgit submodule update
-
within the cloned ardupilot directory, navigate to Tools/Scripts and run
./install-prereqs-ubuntu.sh -y -
by installing the following extra tools, you can compile mainstream code for other targets as well:
sudo add-apt-repository ppa:george-edison55/cmake-3.x -ysudo apt-get updatesudo apt-get install cmakesudo add-apt-repository ppa:ubuntu-toolchain-r/testsudo apt-get updatesudo apt-get install g++-4.9sudo add-apt-repository ppa:terry.guo/gcc-arm-embeddedsudo apt-get updatesudo apt-get install gcc-arm-none-eabisudo apt-get updatesudo apt-get upgrade
-
navigate to the respective vehicle folder you want to build for (ArduPlane or ArduCopter)
-
use
make f4lightto build for revomini on default build rules -
changes or building for a different target requires cleaning first:
make f4light-clean -
use
make f4light BOARD=desired_boardto build for other targets, e.g.make f4light BOARD=f4light_Revolution_SD -
once compiled, the binaries can be found in your vehicle folder