Giter Club home page Giter Club logo

frcpp_build_tools's Introduction

FRC(++) Build tools

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)

Start Here!

Instructions

  1. Install system dependencies

  2. Download the zip package (located in releases)

  3. Add code to a new folder called src

  4. (Windows only) Add the binaries folder to your System PATH

Dependencies

General:

  • CMake

  • FRC C++ Toolchain

Cygwin:

  • cmake

  • make

  • unzip

  • wget

  • openssh

Windows:

  • NMake (Visual Studio)

User guide

Linux/Cygwin

How to build code:

  1. Make sure the code you want to compile is in src/ and the Makefile is in the directory above src/

  2. Type make into the terminal

How to deploy code:

FIRST TIME ONLY

  1. Type ssh-keygen -t rsa into the terminal

  2. Enter file in which to save the key (/home/demo/.ssh/id_rsa): roborio

  3. Enter passphrase (empty for no passphrase): [leave blank]

  4. 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

  5. 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

Windows

How to build code:

  1. Make sure the code you want to compile is in src/ and the Makefile are in the directory above src/

  2. Type nmake /F Makefile.win into cmd

How to deploy code:

  1. type nmake /F Makefile.win deploy

Commands

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

frcpp_build_tools's People

Contributors

ahmad-bamba avatar davidfiumano avatar wardbenjamin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

team5593

frcpp_build_tools's Issues

Use more modern CMake conventions

The build script is currently configured to with cmake 2.8, which is quite old to say the least. Modern CMake versions through deprecation warnings at some of the CMake commands. It should be updated to work with CMake 3.5 or later.

If this is done some work will be required to make it compatible with Travis CI.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.