Re: Building git master on OS X 10.8
Posted by
Sven Gothel on
URL: https://forum.jogamp.org/Building-git-master-on-OS-X-10-8-tp4025646p4026237.html
On 09/22/2012 05:08 AM, jrh [via jogamp] wrote:
> 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>".
Thank you. Maybe you can add your findings to bugzilla, so they don't get lost ?
Then .. we would need to put all this permanent w/o hurting other OSX
versions, then it would be ready for a git pull.
Thank you.
~Sven