Project Setup
Software Requirements
The following software is required to build the project:
Windows
Arduino installation with Teensyduino add-on
Git for Windows (Bash)
MinGW (make)
Visual Studio 2017 (for Management UI builds)
Qt 5 (for Management UI builds)
This project uses Makefile, however build tools and board files are copied from an Arduino/Teensyduino installation.
If needed, copy MinGW/bin/mingw32-make.exe to MinGW/bin/make.exe, as this documentation refers to the command as make.
Requirements to regenerate protobuf (nanopb) sources:
Download protoc binaries, fe.: https://github.com/protocolbuffers/protobuf/releases/download/v3.11.4/protoc-3.11.4-win64.zip
Extract zip, fe. c:\share\protoc-3.11.4
Add protoc (fe., c:\share\protoc-3.11.4\bin) to PATH
Ubuntu 18.04
Arduino installation with Teensyduino add-on
apt install build-essentialQt 5 (for Management UI builds)
This project uses Makefile, however build tools and board files are copied from an Arduino/Teensyduino installation.
Requirements to regenerate protobuf (nanopb) sources:
apt install protobuf libprotobuf-dev python-protobuf
To communicate with the Teensy hardware as a non-root user, install the Teensy udev rule:
Fetching sources
Use git to clone the root project (TeensyFanController).
You must initialize and pull the git sub-modules/sub-repositories:
Use the ui_qt5 sub-directory underneath the root project directory for Management UI builds.
Setup project build environment
Change directory to the project root, and use Makefile:
Root Make targets:
makealias formake setupmake setupalias formake clean setup-toolchain setup-libs setup-nanopb protosmake setup-toolchaincopy toolchain and Teensy3 cores from Teensyduino into projectmake setup-libscopy Teensyduino libraries into projectmake setup-nanopbcopy nanopb into project librariesmake protosalias formake runtime_config_v1.pb.cmake runtime_config_v1.pb.cgenerate RuntimeConfigV1 protobuf sourcesmake cleanalias formake clean-build clean-setupmake clean-builddelete builds produced byteensy_fan_controller/Makefilemake clean-setupdelete files produced by this Makefile
Last updated