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/showthread.php?t=91428 (now closed, so I created this one)
Linux installation:
- Install dependencies: wine, wput, python2, (and optionally git)
- Clone the git repository or download the zip archive
- Add “ucpp/ucpp” to the system PATH
- Run “ucpp setup -t xxx” (replace xxx with your team number)
Windows installation
- Install Python 2.7: http://www.python.org/ftp/python/2.7.3/python-2.7.3.msi
- Install Git for Windows: http://git-scm.com/download/win
- Launch the “Git Bash” command prompt
- Clone the git repository, add ucpp/ucpp to the system PATH, and run “ucpp setup”
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
- cd into your project folder. Sample code can be found in “~/.ucpp/demo”
- Run “ucpp init”. This only needs to be done once per project.
Building and Deploying to the robot
- Run “ucpp configure” This only needs to be done when a C++ file is added or removed from the folder.
- Run “make”. This compiles the code.
- 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