This repository contains the raw make files and scripts for building and deploying code for FRC C++ teams. Will automatically download and compile with the latest version of WPILib
Simply move these files into your repository and place your code in a directory named src/.
Status: Operational! (Report bugs as Issues)
-
Install system dependencies
-
Download the zip package (located in releases)
-
Add code to a new folder called src
-
(Windows only) Add the binaries folder to your System PATH
General:
-
CMake
-
FRC C++ Toolchain
Cygwin:
-
cmake
-
make
-
unzip
-
wget
-
openssh
Windows:
- NMake (Visual Studio)
How to build code:
-
Make sure the code you want to compile is in src/ and the
Makefile
is in the directory above src/ -
Type
make
into the terminal
How to deploy code:
FIRST TIME ONLY
-
Type
ssh-keygen -t rsa
into the terminal -
Enter file in which to save the key (/home/demo/.ssh/id_rsa):
roborio
-
Enter passphrase (empty for no passphrase): [leave blank]
-
After the output, connect to the robot and type
ssh-copy-id -i roborio lvuser@roborio-[TEAM]-frc.local
. Be sure to replace [TEAM] with your number -
Write your team number in the TEAM_NAME file. Make sure it is only one line and contains no extra spaces.
After this is done, simply type make deploy
to deploy
How to build code:
-
Make sure the code you want to compile is in src/ and the
Makefile
are in the directory above src/ -
Type
nmake /F Makefile.win
into cmd
How to deploy code:
- type
nmake /F Makefile.win deploy
Linux/Cygwin
make - build code
make update - manually update WPILib
make clean - clean output files
make deploy - deploy to robot
Windows
nmake /F Makefile.win - build code
nmake /F Makefile.win update - manually update WPILib
nmake /F Makefile.win clean - manually update WPILib
nmake /F Makefile.win deploy - deploy to robot