View Single Post
  #1   Spotlight this post!  
Unread 08-01-2013, 00:39
nikitakit nikitakit is offline
Registered User
FRC #0980 (Thunderbots)
 
Join Date: Feb 2009
Rookie Year: 2009
Location: California
Posts: 9
nikitakit will become famous soon enough
UCPP: cross-platform C++ toolchain

The Universal C++ toolchain (UCPP) has been updated for the 2013 competition!

UCPP allows command-line building/deploying of C++ code on Linux and Windows. It does not require a WindRiver installation.

UCPP projects are fully compatible with WindRiver projects, making it easy for WindRiver and UCPP users to work on the same codebase.

Git repository: https://github.com/nikitakit/ucpp
Previous thread: http://www.chiefdelphi.com/forums/sh...ad.php?t=91428 (now closed, so I created this one)

Linux installation:
  1. Install dependencies: wine, wput, python2, (and optionally git)
  2. Clone the git repository or download the zip archive
  3. Add "ucpp/ucpp" to the system PATH
  4. Run "ucpp setup -t xxx" (replace xxx with your team number)

Windows installation
  1. Install Python 2.7: http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi
  2. Install Git for Windows: http://git-scm.com/download/win
  3. Launch the "Git Bash" command prompt
  4. Clone the git repository, add ucpp/ucpp to the system PATH, and run "ucpp setup"
    Code:
    git clone git://github.com/nikitakit/ucpp.git
    echo 'export PATH="$PATH:~/ucpp/ucpp"' >> ~/.bashrc
    source ~/.bashrc
    ucpp setup -t xxx # replace xxx with your team number

The Windows setup script will download WPILib and a compiler package if it detects that WindRiver is not installed.

Setting up a project
  1. cd into your project folder. Sample code can be found in "~/.ucpp/demo"
  2. Run "ucpp init". This only needs to be done once per project.

Building and Deploying to the robot
  1. Run "ucpp configure" This only needs to be done when a C++ file is added or removed from the folder.
  2. Run "make". This compiles the code.
  3. Run "make deploy". This pushes code to the cRIO via FTP.

Additional help
See the README, run "ucpp help", or post a question here.

I can make modifications for UCPP to run on Mac or using Cygwin if people need them.

Contributors
andreboos
anidev
AustinSchuh
byteit101
correnos
nikitakit
ozzloy
rbmj

Last edited by nikitakit : 08-01-2013 at 03:36.