[vtkusers] VTK with Java on Irix
Steve Joyce
Steve.Joyce at sercoassurance.com
Wed Oct 22 04:26:05 EDT 2003
Hi,
For anyone trying to run VTK wrapped with Java on Irix you need to set
the environment variable JAVA_OPENGL_NATIVE before running Java, i.e.
setenv JAVA_OPENGL_NATIVE (for a csh shell)
JAVA_OPENGL_NATIVE=1; export JAVA_OPENGL_NATIVE (for a sh or ksh
shell)
Failing to do this causes an exception in the native code, particularly
when using vtkPanel or vtkCanvas.
Thanks to Andrew Usher for this solution.
This is also mentioned in SGI's release notes for Java3D at
http://www.sgi.com/developers/devtools/languages/java3d121_01.html
The setup I'm using is Irix 6.5, Java SDK 1.4.1 (from SGI) and VTK
4.2.3.
I built VTK using SGI's MIPSpro 7.3.1.1m C++ compiler, including the
following settings:
BUILD_SHARED_LIBS=ON
BUILD_TESTING=OFF
CMAKE_BUILD_TYPE=None
CMAKE_CXX_COMPILER=CC
CMAKE_CXX_FLAGS=-O1 -n32 -mips3
CMAKE_C_FLAGS=-O1 -n32 -mips3
CMAKE_EXE_LINKER_FLAGS=-O1 -n32 -mips3
CMAKE_MODULE_LINKER_FLAGS=-O1 -n32 -mips3
CMAKE_SHARED_LINKER_FLAGS=-O1 -n32 -mips3
CMAKE_RANLIB=/sbin/echo
CMAKE_SKIP_RPATH=YES
CMAKE_HP_PTHREADS=OFF
CMAKE_USE_PTHREADS=ON
CMAKE_THREAD_LIBS-lpthread
CMAKE_USE_HYBRID=ON
VTK_WRAP_JAVA=ON
JAVA_ARCHIVE=/usr/java2/bin/jar
JAVA_AWT_INCLUDE_PATH=/usr/java2/include
JAVA_AWT_LIBRARY=/usr/java2/lib32/sgi/libjawt.so
JAVA_COMPILE=/usr/java2/bin/javac
JAVA_INCLUDE_PATH=/usr/java2/include
JAVA_INCLUDE_PATH2=/usr/java2/include/irix
JAVA_RUNTIME=/usr/java2/bin/java
Hope this is of some use.
Steve
****Disclaimer***********
This e-mail and any attachments may contain confidential and/or privileged material; it is for the intended addressee(s) only. If you are not a named addressee, you must not use, retain or disclose such information.
Serco cannot guarantee that the e-mail or any attachments are free from viruses.
The views expressed in this e-mail are those of the originator and do not necessarily represent the views of Serco.
Nothing in this e-mail shall bind Serco in any contract or obligation.
Serco Group plc. Registered in England and Wales. No: 2048608
Registered Office: Serco House, 16 Bartley Wood Business Park, Bartley Way, Hook, Hampshire, RG27 9UY, United Kingdom.
****End Disclaimer*******
<<<<GWIASIG 0.07>>>>
More information about the vtkusers
mailing list