Skip to content

Build Instructions using docker and Windows 10

piotrva edited this page Jan 4, 2022 · 16 revisions

Work-in-progress page

Build on Windows 10 using docker images

Installation

Install docker desktop.

Source

git clone --recursive -b main https://github.com/EdgeTX/edgetx.git edgetx_main

If you've already got a git working copy, when you update it don't forget to update the submodules too, something like:

git fetch origin
git checkout v2.4.0
git submodule update --init --recursive

On host (Windows 10 installation)

Source directory.

Use a directory with no spaces in the name for the directory containing the source, i.e. not "My Documents" - Note: It's possible to create a symlink/junction point so that 'Documents' points to 'My Documents'.

cd /cygdrive/d/Documents/dev/embedded/edgetx/

In Cygwin Terminal:

docker run -it --rm --mount src="$(cygpath -w $(pwd))",target="/src",type=bind ghcr.io/edgetx/edgetx-dev:2.4 bash

Command Prompt (PowerShell):

docker run -it --rm --mount src="$(pwd)",target="/src",type=bind ghcr.io/edgetx/edgetx-dev:2.4 bash

In container

cd src

2.4 only:

export PATH="~/edgetx/edgetx-v2.4/radio/util:$PATH"

x9d+:

mkdir build-x9d-2.4
cd build-x9d-2.4/
cmake -LH ../ > cmake-options.txt
cmake -DPCB=X9D+ CMAKE_BUILD_TYPE:STRING=Release ../
make -j`nproc` firmware

NOTE: replace nproc with integer representing number of processes assigned for the task, for example for 16 processes:

make -j16 firmware

x7:

mkdir build-x7-2.4
cd build-x7-2.4
cmake -LH ../ > cmake-options.txt
cmake -DPCB=X7 CMAKE_BUILD_TYPE:STRING=Release ../
make -j`nproc` firmware

tx12:

mkdir build-tx12
cd build-tx12
cmake -LH ../ > cmake-options.txt
cmake -DPCB=X7 -DPCBREV=TX12 CMAKE_BUILD_TYPE:STRING=Release ../
make -j`nproc` firmware

References

https://github.com/EdgeTX/build-edgetx

Clone this wiki locally