F. de Coligny, 26.7.2016 (Java 1.8) F. de Coligny, S. Griffon, 29.8.2014
On Mac OS X, upgrading Java to version 1.7 caused problems with the JOGL (Java OpenGL) library version 2.0, used y the sketch AMAP library we use for 3D rendering in Capsis and AMAPstudio. This is a memo about the changes we had to do to make it work correctly on all target systems (Win 32/64, Lin 32/64 and Mac OS X).
1. We first uninstalled JOGL 2.0 from Capsis and AMAPstudio ext/ directory:
Note: under Windows, the lib names are something.dll, under linux and mac, they are libsomething.so
2. We then installed JOGL 2.2 in Capsis and AMAPstudio:
We had to fix few bugs in the source codes but the overall JOGL structure is the same and we could recompile our apps with 'ant clean compile'.
3. We finally rebuilt and copied 'jeeb-util.jar' and 'jeeb-sketch.jar' to the Capsis ext/ directory.
Note: we changed ext/ant/bin/ant to prevent a change of JAVA_HOME (may find java 1.6), commented 3 lines near line 86, see below:
# if [ -z "$JAVA_HOME" ] ; then # JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home # fi