blob: 7d457c0cb5f48622cdfa74d2c01f3d657dc38f7f (
plain)
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
|
#get jogamp and robovm
wget http://download.robovm.org/nightlies/robovm-1.6.1-SNAPSHOT-20150820_014200-647.tar.gz
wget http://jogamp.org/deployment/archive/master/gluegen_885-joal_611-jogl_1424-jocl_1073/fat/jogamp-fat.jar
#unpack
tar zxvf robovm-1.6.1-SNAPSHOT-20150820_014200-647.tar.gz
#compile using robovm
./robovm-1.6.1-SNAPSHOT/bin/robovm -verbose -dynamic-jni -forcelinkclasses jogamp.**:com.jogamp.** -cp jogamp-fat.jar com.jogamp.newt.opengl.GLWindow
#run
cd com.jogamp.newt.opengl.GLWindow
#robovm currently fail to find natives inside jars, unpack them
unzip lib/jogamp-fat.jar natives/*/*
time ./com.jogamp.newt.opengl.GLWindow
# Runtime options
# All robovm runtimeoptions starts with
# -rvm:
#
# To set jogamp specific java properties use
# -rvm:Djogamp.debug
# -rvm:Djogl.debug
#
# for more rvm flag examples see
# https://github.com/robovm/robovm/wiki/Hacking-on-RoboVM#controlling-a-robovm-executable
time ./com.jogamp.newt.opengl.GLWindow -rvm:Djogl.debug
|