Re: Building git master on OS X 10.8

Posted by jrh on
URL: https://forum.jogamp.org/Building-git-master-on-OS-X-10-8-tp4025646p4026236.html

OK, I just got JOGL to build (whether or not it works is TBD) on a retina MBP, OS X 10.8.1, Oracle JDK 1.7.0_07. I had to make these changes to gluegen-cpptasks-base.xml:

macos32 := false (because the JDK's libawt.dylib isn't universal)
java.home.dir := ${java.home}/..
java.includes.dir.platform := ${java.includes.dir}/darwin
java.lib.dir.platform := ${java.home.dir}/jre/lib

What I said about X11 turned out not to be quite right. The actual solution to that and the Boolean thing was to make sure to include <JavaVM/jawt_md.h> instead of <jawt_md.h>. So in JAWT_DrawingSurfaceInfo.c, replace "#include <jawt_md.h>" with

#ifdef __APPLE__
#include <JavaVM/jawt_md.h>
#else
#include <jawt_md.h>
#endif

and in OSXmisc.m (which is only compiled on Mac anyway) just replace it unconditionally with "#include <JavaVM/jawt_md.h>".