编译环境是Ubuntu18.04,遥控器是x9E 记录一下过程。 在安装之前请apt-get update 与 apt-get upgrade 安装库: apt-get install cmake gcc gcc-avr avr-libc build-essential \? ? libfox-1.6-dev libsdl1.2-dev python-pyqt5 \? ? qt5-default qttools5-dev-tools qtmultimedia5-dev qttools5-dev libqt5svg5-dev \? ? gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib?缺少qt5svg:apt-get install??python3-pyqt5.qtsvg 缺少libstdc++-arm-none-eabi-newlib :vi /etc/apt/sources.list?添加源 deb http://ftp.de.debian.org/debian?sid main apt-get update apt-get install?libstdc++-arm-none-eabi-newlib
在Ubuntu18.04 还要装 sudo apt-get install qt5-default qttools5-dev-tools qtmultimedia5-dev qttools5-dev sudo apt-get install python3-pyside.qtwebkit上面一切顺利的话, 下载源码git clone --recursive -b 2.2?https://github.com.cnpmjs.org/opentx/opentx.git cd opentx mkdir build-taranis-debug cd build-taranis-debug cmake -DPCB=X9E+ -DGVARS=YES -DLUA=YES -DDEBUG=YES -DCMAKE_BUILD_TYPE=Debug ../ 然后会看到 -- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is GNU 4.8.5 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- OpenTX 2.2.0 -- Looking for SDL -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE?? SDL Include Path: /usr/include/SDL -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/cc USING -std=gnu++11 WARNING: can't find gtests source, gtest target will not be available! -- Looking for QT lupdate -- /usr/bin/lupdate QT lupdate: /usr/bin/lupdate -- Configuring done -- Generating done -- Build files have been written to: opentx/build-taranis-debug
说明配置成功了。
接下来编译固件 make firmware |