fyi jogl build errors on macosx snow leopard

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

fyi jogl build errors on macosx snow leopard

chris oliver
OSXmisc.m:435: error: cannot find protocol declaration for ‘JAWT_SurfaceLayers’

gcc seems to be:
i686-apple-darwin10-gcc-4.2.1

I added this hack to work around it:
   [JNFRunLoop performOnMainThreadWaiting:YES withBlock:^(){
        /*id <JAWT_SurfaceLayers> surfaceLayers = (id <JAWT_SurfaceLayers>)dsi->platfor\
mInfo;                                                                                  
        DBG_PRINT("CALayer::attachJAWTSurfaceLayer: %p -> %p\n", surfaceLayers.layer, l\
ayer);                                                                                  
        surfaceLayers.layer = [layer autorelease];*/
    }];

The build completed and jogl seems to work as expected.

I also see this later in the build:

java.generate.copy2temp:
 
  [gluegen] ANTLR Parsing Error: line 393:601378: unexpected token: RECT token name:ID
  [gluegen] line 393:601378: unexpected token: RECT

but the build continues.
Reply | Threaded
Open this post in threaded view
|

Re: fyi jogl build errors on macosx snow leopard

Sven Gothel
Administrator
On Tuesday, January 17, 2012 11:59:03 PM chris oliver [via jogamp] wrote:
>
> OSXmisc.m:435: error: cannot find protocol declaration for
> ‘JAWT_SurfaceLayers’
>
> gcc seems to be:
> i686-apple-darwin10-gcc-4.2.1

Which is funny, since I have build latest JOGL
on my OS X 10.6.8 machine with installed
   - XCode 3.2.5
   - i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664)

I did this while bisecting for bug 548 / bug 533 and just now.

>
> I added this hack to work around it:
>    [JNFRunLoop performOnMainThreadWaiting:YES withBlock:^(){
>         /*id <JAWT_SurfaceLayers> surfaceLayers = (id
> <JAWT_SurfaceLayers>)dsi->platfor\
> mInfo;                                                                                  

The uncommented 'feature' is new to 10.6.8, hence I assume you have not
updated your machine to the latest version.

Please update your software.

Minimum requirements to build JOGL on OS X is now 10.6.8.

Minimum runtime requirement should be 10.5.*

>
> I also see this later in the build:
>
> java.generate.copy2temp:
>  
>   [gluegen] ANTLR Parsing Error: line 393:601378: unexpected token: RECT
> token name:ID
>   [gluegen] line 393:601378: unexpected token: RECT
>
> but the build continues.

Yup, can't remember right now why it exists and why it's ok to being skipped,
but it has no impact.

~Sven