View Single Post
  #3   Spotlight this post!  
Unread 09-02-2016, 20:58
codedr codedr is offline
Registered User
FRC #0537
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Wisconsin
Posts: 71
codedr will become famous soon enoughcodedr will become famous soon enough
Re: Compiling GRIP for the Jetson TK1

To run grip, create a common location for the install.
I chose ~/lib.
Run the following commands (once).
Code:
ln /home/ubuntu/.gradle/caches/modules-2/files-2.1/org.controlsfx/controlsfx/8.40.10/fe12544570095b334d45c61e8c9a26f30ffc1675/controlsfx-8.40.10.jar controlsfx-8.40.10.jar
ln /home/ubuntu/src/ntcore/arm/build/binaries/ntcoreSharedLibrary/libntcore.so libntcore.so
ln /home/ubuntu/src/ntcore/arm/build/libs/ntcore-arm.jar ntcore-arm.jar
curl -o net.schmizz.sshj-0.8.1.jar http://search.maven.org/remotecontent?filepath=org/apache/stratos/net.schmizz.sshj/0.8.1/net.schmizz.sshj-0.8.1.jar
Then create a shell script, run-grip
Code:
CP="-cp $HOME/lib/core-1.1.1-37-g39f1158-all.jar"
CP="$CP:$HOME/lib/ui-1.1.1.jar"
CP="$CP:$HOME/lib/controlsfx-8.40.10.jar"
CP="$CP:$HOME/lib/net.schmizz.sshj-0.8.1.jar"

java -XX:-OmitStackTraceInFastThrow -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -ea \
        $CP -Djava.library.path=$HOME/lib  edu.wpi.grip.ui.Main
Make it executable
Code:
chmod +x run-grip
Then call run-grip to do your testing.