System Installation
On cs390cp@pc.cs.purdue.edu:icypc2011:
-
Download JOGL (Java for OpenGL) library:
An alternative (but overkill):
For Ladder Web Server Installation
Assumes Python 2.6 installed.
Download and install Django.
Use ssh-keygen to create key for access to sources on github (for write access).
Clone source from github (git@github.com:jtkorb/icypc-ladder.git).
Follow instructions in README file (copy settings-dist.py and update).
Create database tables with % ./manage.py syncdb
. Create admin account (e.g., cs390cp) with password choice.
Launch web server: ''% ./manage.py runserver 0.0.0.0:8000'.
For 3D Viewing of Trace Files
Download appropriate version of JOGL (Java for OpenGL) library.
Add the icypc.jar file and these four JOGL .jar files to the CLASSPATH, e.g., by setting these variables in ~/.bashrc:
typeset -x DIR=${HOME}/jogl-2.0-pre-20101104-macosx-universal/lib
typeset -x ICYPC=${HOME}/icypc/icypc.jar
typeset -x CLASSPATH=${ICYPC}:${DIR}/jogl.all.jar:${DIR}/nativewindow.all.jar:${DIR}/gluegen-rt.jar:${DIR}/newt.all.jar
Add
OS-specific environment variable that points to the JOGL directory (DIR above)
MacOS: typeset -x DYLD_LIBRARY_PATH=${DIR}
Linux/Solaris: typeset -x LD_LIBRARY_PATH=${DIR}
Windows: Include %DIR% in PATH.
Create a trace file and view it in 3D:
% java -jar ~/icypc/icypc.jar -player java java_example.Hunter -player java java_example.Planter -view trace x.txt
% java icpc.challenge.view.TracePlayer -view 3D -trace x.txt