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-essential
Qt 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:
make
alias formake setup
make setup
alias formake clean setup-toolchain setup-libs setup-nanopb protos
make setup-toolchain
copy toolchain and Teensy3 cores from Teensyduino into projectmake setup-libs
copy Teensyduino libraries into projectmake setup-nanopb
copy nanopb into project librariesmake protos
alias formake runtime_config_v1.pb.c
make runtime_config_v1.pb.c
generate RuntimeConfigV1 protobuf sourcesmake clean
alias formake clean-build clean-setup
make clean-build
delete builds produced byteensy_fan_controller/Makefile
make clean-setup
delete files produced by this Makefile
Last updated
Was this helpful?