OpenTX 2.1 OSX Build instructions - stodev-com-br/opentx GitHub Wiki

The following instructions describe how to set up the build environment, retrieve the source code and lastly build OpenTX on a Apple IOS machine.

Install packages

To start with a number of tools and libraries have to be installed.

Get & install Homebrew >>http://brew.sh

(this is to install qmake, the arm compiler, and pyqt)

Install homebrew by pasting this line in terminal (not as root) :

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Answer 'yes' to xCode command line tools installation (you might have to install xCode on your system) It is apple IDE a great tool which is free

GCC-ARM tools and essential build tools

In a terminal window

brew tap PX4/homebrew-px4
brew update
brew install gcc-arm-none-eabi cmake homebrew/x11/fox dfu-util

If you get assertion errors in gcc during compilation try a different gcc version (e.g. brew remove gcc-arm-none-eabi and brew install gcc-arm-none-eabi-49)

(Instructions based on ArduPilot)

If you want to build Companion or the simulator also install Qt and SDL

brew install sdl qt4 xerces xsd

Installing Python and PyQt5 on OSX

In a terminal window

brew install python
brew install pyqt

This will install python, pyqt and sip, which pyqt depends on.

This is what you need to install to build binaries

The simulators do not build yet

Prepare the source code

Navigate to wherever you want to store the source code. Issue the following command (it will take quite a while to complete):

git clone https://github.com/opentx/opentx

Git has now built a cloned OpenTX repository for you. The first thing you should do is to select which branch of the repository you want to use.
If you want the latest stable release you should check out master:

cd opentx
git checkout master

Build OpenTX Firmware (2.1)

First go to the source directory:

cd radio/src
Command Note
make This builds in a loadable 9x binary file (opentx.bin) with default selections
make PCB=TARANIS This builds a loadable Taranis binary file
make simu This results in an executable 9x simulator that can be started on the PC. To start it enter ./simu
make simu TRANSLATIONS=SE This results in an executable 9x simulator with Swedish texts that can be started on the PC. Enter ./simu to start it
make simu PCB=TARANIS This results in an executable Taranis simulator that can be started on the PC. To start it enter ./simu
make clean Remove compiled files and directories. Good to use when you have messed something up and want a clean start

Play around with the different build options. You find them listed in the OpenTX Compilation Options page.

⚠️ **GitHub.com Fallback** ⚠️