-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
43 lines (25 loc) · 2.71 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
If you would like to compile the course libraries on your own machines, and are running ubuntu 12.04, you can run the following commands as root or using sudo to install the necessary packages. Note these are actually a super-set of the packages, some of these are just useful to have. For other versions of linux, similar packages should exist.
sudo apt-get -y install emacs vim-gtk cvs subversion git-core gitk units octave imagemagick ssh smartmontools nmap netcat curl wireshark traceroute libav-tools mplayer vlc sysstat valgrind autopoint xchat mesa-utils pkg-config curl autoconf automake autotools-dev libglib2.0-dev manpages-dev manpages-posix-dev libgl1-mesa-dev gtk-doc-tools libgtk2.0-dev python-dev libusb-dev libusb-1.0-0-dev libfuse-dev libi2c-dev libdc1394-22-dev libdc1394-utils libgsl0-dev gsl-doc-info gsl-doc-pdf ant openjdk-6-jdk
Make sure openjdk-6 is selected by default. You can check with the following commands:
sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config jar
You will also need to install LCM. You can download version lcm-1.1.1 or higher from http://code.google.com/p/lcm, or alternatively, you can pull the latest source using git. You will then to build and install from source following LCM's install directions. Be sure to run ldconfig after having built LCM so that the linker can find it.
cd ~/
git clone https://code.google.com/p/lcm/
cd lcm && ./bootstrap.sh && ./configure && make && sudo make install
sudo ldconfig
You will also need to add udev rules to your computer if you don't want to have to use sudo to run the rexarm_driver. Copy the eecs467 udev rules file from misc to /etc/udev/rules.d/ on your personal computer. You will need to sudo to do this!
sudo cp ~/eecs467/misc/99-eecs467.rules /etc/udev/rules.d/.
Then, unplug your USB devices and plug them back in so the rules take effect. You should now be able to run rexarm_driver without sudo.
To setup vx, you will need to set some environment variables. We recommend adding the following 3 lines to the end of your ~/.bashrc file (this is a hidden file in your home directory, which can be made visible with Ctrl-H on Ubuntu)
export VX_SHADER_PATH=~/eecs467/src/vx/shaders
export VX_FONT_PATH=~/eecs467/src/vx/fonts
export CLASSPATH=$CLASSPATH:~/eecs467/java/lcmtypes.jar
You will need to reopen the terminal for the changes to take effect.
Upon a clean checkout of eecs467, as a one time thing, you need to build vx's fonts (you will need a working internet connection for this so that the Makefile can pull a fonts tarball from the web):
cd ~/eecs467/src/vx
make fonts
You are now all set to build the eecs467 source using `make` or `make clean`:
cd ~/eecs467
make clean && make