Problems while building JOGL on Mac OS 10.8

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems while building JOGL on Mac OS 10.8

andrei
Hi,
  When I am trying to build jogl on my Mac, I am getting following error (while running ant in gluegen/make):

...
gluegen.build.c.impl:
     [echo] Output lib name = gluegen-rt -> libgluegen-rt.jnilib
    [mkdir] Created dir: /Users/atchijov/Work/LeapingBytes/OpenSource/j3d/gluegen/build/obj
     [echo] Compiling src/native/unix/*.c src/native/common/*.c
     [echo] user.dir=/Users/atchijov/Work/LeapingBytes/OpenSource/j3d/gluegen/make
       [cc] 5 total files to be compiled.
       [cc] In file included from /Users/atchijov/Work/LeapingBytes/OpenSource/j3d/gluegen/src/native/common/JVMUtil.c:40:
       [cc] /usr/include/stdio.h:446:67: error: expected a platform name, e.g., 'macosx'
       [cc] int     dprintf(int, const char * __restrict, ...) __printflike(2, 3) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
       [cc]                                                                       ^
       [cc] /usr/include/Availability.h:153:50: note: expanded from macro '__OSX_AVAILABLE_STARTING'
       [cc]     #define __OSX_AVAILABLE_STARTING(_osx, _ios) __AVAILABILITY_INTERNAL##_osx
       [cc]                                                  ^
       [cc] <scratch space>:13:1: note: expanded from macro '__AVAILABILITY_INTERNAL'
       [cc] __AVAILABILITY_INTERNAL__MAC_10_7
       [cc] ^
       [cc] /usr/include/AvailabilityInternal.h:1095:100: note: expanded from macro '__AVAILABILITY_INTERNAL__MAC_10_7'
       [cc]             #define __AVAILABILITY_INTERNAL__MAC_10_7                  __attribute__((availability(macosx,introduced=10.7)))
       [cc]                                                                                                    ^
       [cc] <command line>:1:16: note: expanded from macro 'macosx'
       [cc] #define macosx 1
       ....

It repeats 3 more times.

You replies would be highly appreciated.

Cheers,
  Andrei
Reply | Threaded
Open this post in threaded view
|

Re: Problems while building JOGL on Mac OS 10.8

gouessej
Administrator
Hi

We probably did something wrong, here is a suggestion to fix that:
http://old.nabble.com/error%3A-expected-a-platform-name,-e.g.,-%27macosx%27-td34465757.html
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Problems while building JOGL on Mac OS 10.8

atchijov
Ok, I have made some progress. macosx was defined in gluegen-cpptasks-base.xml:1043. I have replaced it (and all occurrences in the code) with j3d_macosx and was able to build gluegen.

But still having problems with jogl. It looks like jogl generates some *_JNI.c files which are using macosx macro.

...
#elif defined(macosx)
...

Could you please point me to place in the jogl source tree where I can change macro name from macosx to j3d_macosx.

Cheers,
  Andrei

These are log files, in case you want to take a look

https://dl.dropboxusercontent.com/u/24418451/j3d/gluegen.buid.log
https://dl.dropboxusercontent.com/u/24418451/j3d/jogl.build.log
Reply | Threaded
Open this post in threaded view
|

Re: Problems while building JOGL on Mac OS 10.8

gouessej
Administrator
Please write a bug report about that, talk about your findings and what you have already made, add a link to this thread into it. Thank you for your contribution. Don't use "j3d" in JogAmp APIs. JOGL is not bound to a single scenegraph.
Julien Gouesse | Personal blog | Website