This is a record setting up the FRC development environment for C++/Java for the comp in 2018.
Normally setting up the system, install anything one may need like
git/svn/browser
… and so on.Add FRC cmake tool ppa:
sudo add-apt-repository ppa:wpilib/toolchain-beta
, download package list:sudo apt update
, download toolchainssudo apt install frc-toolchain
.Download eclipse
sudo apt install eclipse
.Download C++ support for eclipse
sudo apt install sudo apt install eclipse-cdt*
if using bash(default). If using zsh, usesudo apt install eclipse-cdt\*
.Install the IDE/editor wanted. In my case:
|
|
If umake went wrong(which suppose to in my current version), refer this link to fix a bug of umake
Open eclipse and install the CDT plugin(for cpp development), Lib for FRC, and vim mode.
help->install new software->add->Enter "http://download.eclipse.org/tools/cdt/releases/9.3" for eclipse oxygen -> select all -> install...
help->install new software->add->Enter " http://vrapper.sourceforge.net/update-site/stable" for eclipse oxygen -> select all -> install...
help->install new software->add->Enter " http://first.wpi.edu/FRC/roborio/release/eclipse/" for eclipse oxygen -> select all -> install...
Install
LabView
started with downloading the standard linux ISO at the official website of NI.Unluckily, the official one only support redhat series thus our debian series will not fit. We need to convert those
.rpm
packages inside the ISO into.deb
so we can install and manage them with our native package manager. (Although one can manually unpack and install them, it would be a great pain…)Start by installing tools:
sudo apt install fakeroot alien
.Then extract or mount the file inside the ISO and copy everything in the root dir (inside the i386 folder for 32 bit installations) to a any working directory.
Run
fakeroot alien -k --script ./*.rpm
after entering the working directory chosen.Wait till finish, and
sudo dpkg -i *.deb
. And LabView should be installed.Now we need to install the FRC Plugin for LabView.
Unfortunately, the current version of FRC Plugin does not support Linux OS…Tooooooooooo bad.
Anyway, download the newest version of the zip file that could be found here; then unpack it into
~/wpilib/simulation
. *(If not exist, create one.)Manually install the files:
12345vim sim_ds.desktop frcsim.desktop # Replace "/usr/bin" with "~/.local/bin"cd ~/wpilib/simulation/ln -s frcsim ~/.local/bin/ln -s sim_ds ~/.local/bin/sim_dscp frcsim.desktop sim_ds.desktop ~/.local/share/applications/Build simulation for wpilib:
2017/12/4
TO BE CONTINUED