JOGL build fails on OSX

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

JOGL build fails on OSX

ac
Using latest revision from jogl master, on OSX 10.6.8, I get this error:


c.build.nativewindow.windowlib.macosx:
     [echo] Output lib name = nativewindow_macosx
     [echo] c.compiler.use-jawt false
     [echo] nativewindow_macosx.useLibJAWT ${nativewindow_macosx.useLibJAWT}
     [echo] Compiling nativewindow_macosx
     [echo] java.lib.dir.platform: /System/Library/Frameworks/JavaVM.framework/Libraries
       [cc] 2 total files to be compiled.
       [cc] cc1obj: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for ObjC
       [cc] cc1obj: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for ObjC
       [cc] cc1obj: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for ObjC
       [cc] /Users/andres/Coding/OpenGL/JOGL/jogl/src/nativewindow/native/macosx/OSXmisc.m: In function ‘Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0’:
       [cc] /Users/andres/Coding/OpenGL/JOGL/jogl/src/nativewindow/native/macosx/OSXmisc.m:242: error: ‘NSWindowAnimationBehaviorNone’ undeclared (first use in this function)
       [cc] /Users/andres/Coding/OpenGL/JOGL/jogl/src/nativewindow/native/macosx/OSXmisc.m:242: error: (Each undeclared identifier is reported only once
       [cc] /Users/andres/Coding/OpenGL/JOGL/jogl/src/nativewindow/native/macosx/OSXmisc.m:242: error: for each function it appears in.)
       [cc] /Users/andres/Coding/OpenGL/JOGL/jogl/src/nativewindow/native/macosx/OSXmisc.m:242: warning: ‘NSWindow’ may not respond to ‘-setAnimationBehavior:’
       [cc] /Users/andres/Coding/OpenGL/JOGL/jogl/src/nativewindow/native/macosx/OSXmisc.m:242: warning: (Messages without a matching method signature
       [cc] /Users/andres/Coding/OpenGL/JOGL/jogl/src/nativewindow/native/macosx/OSXmisc.m:242: warning: will be assumed to return ‘id’ and accept
       [cc] /Users/andres/Coding/OpenGL/JOGL/jogl/src/nativewindow/native/macosx/OSXmisc.m:242: warning: ‘...’ as arguments.)
       [cc] cc1obj: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for ObjC
       [cc] /Users/andres/Coding/OpenGL/JOGL/jogl/src/nativewindow/native/macosx/OSXmisc.m: In function ‘Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0’:
       [cc] /Users/andres/Coding/OpenGL/JOGL/jogl/src/nativewindow/native/macosx/OSXmisc.m:242: error: ‘NSWindowAnimationBehaviorNone’ undeclared (first use in this function)
       [cc] /Users/andres/Coding/OpenGL/JOGL/jogl/src/nativewindow/native/macosx/OSXmisc.m:242: error: (Each undeclared identifier is reported only once
       [cc] /Users/andres/Coding/OpenGL/JOGL/jogl/src/nativewindow/native/macosx/OSXmisc.m:242: error: for each function it appears in.)
       [cc] /Users/andres/Coding/OpenGL/JOGL/jogl/src/nativewindow/native/macosx/OSXmisc.m:242: warning: ‘NSWindow’ may not respond to ‘-setAnimationBehavior:’
       [cc] /Users/andres/Coding/OpenGL/JOGL/jogl/src/nativewindow/native/macosx/OSXmisc.m:242: warning: (Messages without a matching method signature
       [cc] /Users/andres/Coding/OpenGL/JOGL/jogl/src/nativewindow/native/macosx/OSXmisc.m:242: warning: will be assumed to return ‘id’ and accept
       [cc] /Users/andres/Coding/OpenGL/JOGL/jogl/src/nativewindow/native/macosx/OSXmisc.m:242: warning: ‘...’ as arguments.)
       [cc] lipo: can't figure out the architecture type of: /var/folders/Qx/QxzSOfOLHz0jeeb3bP1+KE+++TI/-Tmp-//ccmJmDrS.out

BUILD FAILED
/Users/andres/Coding/OpenGL/JOGL/jogl/make/build.xml:71: The following error occurred while executing this line:
/Users/andres/Coding/OpenGL/JOGL/jogl/make/build-nativewindow.xml:786: The following error occurred while executing this line:
/Users/andres/Coding/OpenGL/JOGL/jogl/make/build-nativewindow.xml:685: gcc failed with return code 1
Reply | Threaded
Open this post in threaded view
|

Re: JOGL build fails on OSX

chiefkikio
This is the exact problem I just had. Please tell me if you found a solution!!
PB
Reply | Threaded
Open this post in threaded view
|

Re: JOGL build fails on OSX

PB
Hi,

I had the same issue. Seems like the NSWindow is not supported for system versions previous to 10.7 :
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html

Best Regards
PB
Reply | Threaded
Open this post in threaded view
|

Re: JOGL build fails on OSX

PB
Reply | Threaded
Open this post in threaded view
|

Re: JOGL build fails on OSX

Sven Gothel
Administrator
On 05/16/2013 05:19 PM, PB [via jogamp] wrote:
> Sorry for the typo, I was talking about the SetAnimationBehavior method.
>
> http://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html#//apple_ref/doc/c_ref/NSWindowAnimationBehavior
>

Right, we would need to exclude this for builds on pre 10.7 -
however, we require 10.7 to create an official build!

If you can construct a proper pre-processor directive
so it won't impact our build on 10.7, I will merge your patch.

~Sven



signature.asc (911 bytes) Download Attachment