Skip to content

Instantly share code, notes, and snippets.

@GOROman
Last active June 4, 2023 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GOROman/9e39b6a7cfba9d74564c3ae70693d75a to your computer and use it in GitHub Desktop.
Save GOROman/9e39b6a7cfba9d74564c3ae70693d75a to your computer and use it in GitHub Desktop.
EdgeTX のファームウェアを Mac でビルドする

EdgeTX のファームウェアを Mac でビルドする

開発環境インストール

Xcode など入っている前提

aqt / Qt のインストール

aqtinstall とは Another Qt installer(aqt) aqt コマンドが使えるようになる 不要

pip3 install aqtinstall
aqt install 5.12.9 mac desktop clang_64

SDL Fox CMake のインストール

brew install sdl fox cmake

Pillow clang lz4 のインストール

pip3 install Pillow clang lz4

ソースコード取得

  • git clone
git clone --recursive https://github.com/EdgeTX/edgetx.git
cd edgetx

環境変数設定

パスは適宜書き換える

export QTDIR=/Users/etx/Src/Qt/5.12.9/clang_64
export QT_PLUGIN_PATH=$QTDIR/plugins

CMake

-DPCBREV=で対象のプロポを指定する

mkdir build
cd build

cmake -DPCB=X10 -DPCBREV=TX16S \
   -DCMAKE_PREFIX_PATH=$QTDIR \
   -DGCC_ARM_PATH=/Applications/ARM/bin/ \
   ..

Make

make -j4 firmware

参照

https://github.com/EdgeTX/edgetx/wiki/Build-instructions-using-macOS-10.15-%28Catalina%29

@GOROman
Copy link
Author

GOROman commented Jun 4, 2023

DOOM
https://github.com/DavBfr/edgetx-doom

cmake -DPCB=X10 -DPCBREV=TX16S -DDEFAULT_MODE=2 -DGVARS=YES -DPPM_UNIT=US -DHELI=NO -DLUA=NO -DCMAKE_BUILD_TYPE=Release    -DCMAKE_PREFIX_PATH=$QTDIR  ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment