Compiling JOAL on OSX 10.4.7 Intel

Running into some oddball problem trying to compile an OSX binary from the current CVS sources. Clean, just downloaded codebase, ANT 1.6.5, Antlr 2.7.6, OSX 10.4.7 on a MacBook Pro. It picks up the correct platform and that it should be universal binary. However, it generates the following set of errors on the native compile:

[blockquote]
[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] cc1obj: warning: command line option “-fno-rtti” is valid for C++/ObjC++ but not for ObjC
[cc] lipo: can’t figure out the architecture type of: /var/tmp//ccLZhlwi.out

BUILD FAILED
/Users/Justin/j3d.org/joal/make/build.xml:708: The following error occurred while executing this line:
/Users/Justin/j3d.org/joal/make/build.xml:576: The following error occurred while executing this line:
/Users/Justin/j3d.org/joal/make/build.xml:541: gcc failed with return code 1
[/blockquote]

It appears that something in GCC is not working out with the fat binary. The strange thing is that JOGL compiles fine, so there’s something that’s not quite right in JOAL (ie the common code of Gluegen is working correctly).

It looks like this breakage was caused by the inclusion of the EFX entry points, which header uses the non-standard __cdecl keyword. I’ve checked in a fix which lets the build succeed on my Mac Mini; haven’t tested it yet though.

Thanks. It all seems to work on the intel-based laptop I have here. A small amount of testing of the audio seems to suggest that it works with Apple’s AGL implementation (10.4.7 introduced the 1.1 support, which wasn’t in earlier versions).

Any idea how I can detect in web start if the Mac accessing my app is the Intel?
This relavent to this thread because I am setting up the Mac JOAL launch and everythign works now EXCEPT I get a library error due to the fact that the library my web start script says to get when the user machine is a Mac is the one and only Mac JOAL build I have which is for PPC.

Is that confusing? Hmm it does read well.
How about this.
JOAL + web start + Mac PPC = works for me.
JOAL + web start + Mac INTEL != works for me.

How to detect and fix? thanks! :wink:

I’m no Mac expert, but isn’t the main difference between the Intel and PPC processors just the endian-ness in which bytes are read?

Last I read, OpenAL (and thus JOAL) has no way to detect the byte-ordering of the underlying platform, although I’m sure you can figure it out using Java’s ByteOrder class.

Do you have a working Intel Mac JOAL build?
I didn’t see one up on in the dist directories, is this a build you made? And if so, is there anyway I can get a hold of it before Monday for WWDC?

Thanks in advance!

Shawn, just answered your question over on java3d list. I can send you my current build of CVS, including all of Ken’s native lib loader code. My current universal build is from just before those changes and I know that it works as I used it all through our Siggraph demos this week. The new native loader build will only take a few minutes for me to set up, but personally untested right now. (late friday evening here in Seatte and I don’t feel like testing. I’ve had a couple of beers already :stuck_out_tongue: ). I can build and send this evening or if you’d like something on Saturday morning. The rest of the weekend is filled up to Sunday evening. Let me know if this fits in with the current plans.

For the others - I’ll put another build up on the j3d.org pages with all the eclipse plugin handling running probably first thing Monday morning. I’d at least like to do a little testing. However, it will require OS X 10.4.7 as that’s the first release of OS X to support OpenAL 1.1, which is what the current JOAL build script requires.

Yes that sounds great. At this point I only need/could use the build. You can email me or send me a link to download from.
Thanks much!

Sent by email about 30min ago.