File: README.md

package info (click to toggle)
vtk9 9.5.2%2Bdfsg3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 205,916 kB
  • sloc: cpp: 2,336,565; ansic: 327,116; python: 111,200; yacc: 4,104; java: 3,977; sh: 3,032; xml: 2,771; perl: 2,189; lex: 1,787; makefile: 178; javascript: 165; objc: 153; tcl: 59
file content (57 lines) | stat: -rw-r--r-- 1,902 bytes parent folder | download
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Java instructions

## Building

In order to build the JOGL rendering classes, you will need to have JOGL
libraries installed on your system. For that you can use Maven to download
for you the proper JARs.

List of possible classifiers:

 - natives-android-aarch64
 - natives-android-armv6
 - natives-linux-amd64
 - natives-linux-armv6
 - natives-linux-armv6hf
 - natives-linux-i586
 - natives-macosx-universal
 - natives-solaris-amd64
 - natives-solaris-i586
 - natives-windows-amd64
 - natives-windows-i586


For that you can run the following command lines:

```
mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get \
  -DrepoUrl=http://download.java.net/maven/2/  \
  -Dartifact=org.jogamp.gluegen:gluegen-rt:2.3.2

mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get \
  -DrepoUrl=http://download.java.net/maven/2/  \
  -Dartifact=org.jogamp.gluegen:gluegen-rt:2.3.2:jar:CLASSIFIER

mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get \
  -DrepoUrl=http://download.java.net/maven/2/  \
  -Dartifact=org.jogamp.jogl:jogl-all:2.3.2

mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:get \
  -DrepoUrl=http://download.java.net/maven/2/  \
  -Dartifact=org.jogamp.jogl:jogl-all:2.3.2:jar:CLASSIFIER

cmake --build build --source vtk-source \
  -DVTK_WRAP_JAVA=ON \
  -DVTK_JAVA_JOGL_COMPONENT=ON \
  -DJOGL_VERSION="2.3.2" \
  -DJOGL_GLUE=$HOME/.m2/repository/org/jogamp/gluegen/gluegen-rt/2.3.2/gluegen-rt-2.3.2.jar \
  -DJOGL_LIB=$HOME/.m2/repository/org/jogamp/jogl/jogl-all/2.3.2/jogl-all-2.3.2.jar

# Substitute $INSTALLDIR
cmake --install build --prefix $INSTALLDIR
```

## Demonstration
```
java -cp $INSTALLDIR/vtk-XY.jar:/home/kitware/.m2/repository/org/jogamp/gluegen/gluegen-rt/2.3.2/gluegen-rt-2.3.2.jar:/home/kitware/.m2/repository/org/jogamp/jogl/jogl-all/2.3.2/jogl-all-2.3.2.jar -Djava.library.path=$INSTALLDIR/natives-Linux-64bit vtk.sample.Demo
```