The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Technical Issues => Topic started by: superbutcherx on September 28, 2010, 06:17:18 pm



Title: Compiling for OSX, libraries added only as headers in .app
Post by: superbutcherx on September 28, 2010, 06:17:18 pm
OK, our mod, the Project6014 is well in the point when we should have the .exes and .apps ready.

I ran into a problem trying to make a runnable OSX .app that would work on other peoples' computers.

The problem is that only SDL_image is added as complete framework inside the app. From the others, only a single header file is added, like SDL.h, Ogg.h and vorbisfile.h.

How can I make the rest appear inside the .app as complete frameworks too?


Title: Re: Compiling for OSX, libraries added only as headers in .app
Post by: superbutcherx on September 28, 2010, 09:41:22 pm
Got a little further...

I had SDL, vorbis and ogg folders in my usr/local/include. By removing them from there the builder now adds all the frameworks correctly to the bundled .app and everything else still seems to be working OK.

But running the .app still doesn't work on other computers and the reason is this:
It tries to look for the .ogg framework and .vorbis framework from the Mac library/frameworks even though they are right there inside the .app!

Arg! Frustrating!! What to do?


Title: Re: Compiling for OSX, libraries added only as headers in .app
Post by: ziper1221 on September 28, 2010, 11:33:04 pm

Arg! Frustrating!! What to do?

Give up on people using apple products.


Title: Re: Compiling for OSX, libraries added only as headers in .app
Post by: Gekko on September 29, 2010, 06:09:23 am
Most helpful Ziper. Unfortunately I have very little experience getting OS X projects compiling. However, I'd like to know if you were able to get the vanilla UQM to compile? There is currently no OS X compile of Shiver's Balance Mod and I could use some assistance.


Title: Re: Compiling for OSX, libraries added only as headers in .app
Post by: superbutcherx on September 30, 2010, 08:40:40 pm
I think I nailed it!  ;D

With some reservations though: The current .app works only on OSX 10.6. so it's time to upgrade to a little snowier leopard, 10.5. owners!
Or give me some days/weeks to figure out how to make the thing run on multiple OS versions.

I have compiled vanilla UQM with success on OSX, although it took various nasty tricks even to the SDL libraries themselves. I think I documented some of that crap here in the technical questions (the thread in which all planets in interplanetary look cyan).

I suspect I'm gonna be pretty busy with the p6014 demo stuff for some time to come, but I'll be happy to assist once things calm down a bit!


Title: Re: Compiling for OSX, libraries added only as headers in .app
Post by: Death 999 on October 03, 2010, 02:40:51 pm
I know that nic has an Xcode project for vanilla that I'm sure he'd give you. It might even be on his download page at submedia.net. That works, and it doesn't involve crude hacks.