Skip to content

Building the code on Windows10 using WSL Ubuntu

vierfuffzig edited this page Mar 26, 2018 · 1 revision

1. Install Windows Subsystem for Linux and 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

2. Clone the repository

  • 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 init and git submodule update

3. Install the build requisites for Ubuntu

  • 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 -y

    sudo apt-get update

    sudo apt-get install cmake

    sudo add-apt-repository ppa:ubuntu-toolchain-r/test

    sudo apt-get update

    sudo apt-get install g++-4.9

    sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded

    sudo apt-get update

    sudo apt-get install gcc-arm-none-eabi

    sudo apt-get update

    sudo apt-get upgrade

4. Build using make

  • navigate to the respective vehicle folder you want to build for (ArduPlane or ArduCopter)

  • use make f4light to 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_board to build for other targets, e.g. make f4light BOARD=f4light_Revolution_SD

  • once compiled, the binaries can be found in your vehicle folder

Clone this wiki locally