Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Cross-Platform Development => Topic started by: Goober5000 on April 04, 2010, 07:31:03 pm

Title: In need of OGG static libraries for OSX
Post by: Goober5000 on April 04, 2010, 07:31:03 pm
It turns out that the OGG bug which was fixed in Windows is also present on OSX.  Would someone be able to compile new OSX libraries for us to add to SVN?
Title: Re: In need of OGG static libraries for OSX
Post by: chief1983 on April 04, 2010, 07:36:49 pm
Well, for the next release we're hopefully going to just build it from source so that won't be necessary.
Title: Re: In need of OGG static libraries for OSX
Post by: Goober5000 on June 15, 2010, 10:28:14 pm
:bump:

Anyone able to help with this?  Looks like we don't have building-from-source ready quite yet.
Title: Re: In need of OGG static libraries for OSX
Post by: Echelon9 on June 16, 2010, 07:26:57 am
Which version of OGG do I need to compile to ensure the bug is fixed?
Title: Re: In need of OGG static libraries for OSX
Post by: chief1983 on June 16, 2010, 10:09:11 am
Dang it's been a while and I forgot.  I will try to get that question answered very shortly.  In any case, you could try the latest stable from each of ogg, vorbis, theora, and vorbisfile (in vorbis-tools?).
Title: Re: In need of OGG static libraries for OSX
Post by: Goober5000 on March 17, 2011, 10:41:16 am
:bump:

...?
Title: Re: In need of OGG static libraries for OSX
Post by: Pyro3d on April 26, 2011, 09:38:12 pm
Hi there,
So, I managed to generate some libraries/frameworks/whatever I *think* will work properly. They work on my system, but I don't have access to another system to test on. Building FS2_Open with the attached frameworks resulted in a binary (for me, at least) that plays mjn.mixael's movies. I don't know if it works for everyone, though.

[attachment deleted by ninja]
Title: Re: In need of OGG static libraries for OSX
Post by: chief1983 on April 26, 2011, 11:34:14 pm
Awesome, I'll try and test this on the nightly machine by tomorrow.
Title: Re: In need of OGG static libraries for OSX
Post by: Echelon9 on May 01, 2011, 02:12:25 am
Hi there,
So, I managed to generate some libraries/frameworks/whatever I *think* will work properly. They work on my system, but I don't have access to another system to test on. Building FS2_Open with the attached frameworks resulted in a binary (for me, at least) that plays mjn.mixael's movies. I don't know if it works for everyone, though.
Pyro3D do you have documented steps you used to build these? I tried on OS 10.6.7, with Xcode 3, and had all sorts of compiler compatability issues.
Title: Re: In need of OGG static libraries for OSX
Post by: Pyro3d on May 01, 2011, 03:27:19 am
Hi there,
So, I managed to generate some libraries/frameworks/whatever I *think* will work properly. They work on my system, but I don't have access to another system to test on. Building FS2_Open with the attached frameworks resulted in a binary (for me, at least) that plays mjn.mixael's movies. I don't know if it works for everyone, though.
Pyro3D do you have documented steps you used to build these? I tried on OS 10.6.7, with Xcode 3, and had all sorts of compiler compatability issues.

None strictly documented, no. Most of this was the result of experimentation with various solutions that I found online (which is one of the reasons I'm worried about it only working for me). I had planned on putting something up once I got a confirmation on whether or not it actually works, but I'll just write up what I did now:

While building OGG, Vorbis, and Theora, I changed the default build settings, namely compiling with GCC 4.0, and changing the "Installation Directory" flag from "/Library/Frameworks/" to "@executable_path/../Frameworks". (The problems generated by the latter, for me, at least, didn't show up in during Compile/Linking, only when I tried to start the binary.) In the builds I supplied, I also checked "Strip Linked Product", but on further experimentation it appears that's not necessary.

With Theora and Vorbis, I used the Ogg framework I had just compiled, basically dragging and dropping it in from the Finder, while making sure that it's getting added to the appropriate target (Vorbis or Theora). Also with Theora I noticed that it wasn't creating dual-architecture builds so I went ahead and added that.

This was all done on OSX 10.6.7 with Xcode 3 (3.2.6 to be precise), but I've mucked about with this install quite a bit (The other reason I'm worried), so I might be special.

Hope that's coherent enough. Also that I don't appear condescending...
Title: Re: In need of OGG static libraries for OSX
Post by: Echelon9 on May 01, 2011, 03:29:54 am
Thanks, this is really useful. Those errors you fixed were the ones I was having too, so I'll see if your approach works on a different system.
Title: Re: In need of OGG static libraries for OSX
Post by: Pyro3d on May 01, 2011, 03:51:44 am
Thanks, this is really useful. Those errors you fixed were the ones I was having too, so I'll see if your approach works on a different system.

No problem, let me know if it works.
Title: Re: In need of OGG static libraries for OSX
Post by: chief1983 on May 18, 2011, 07:33:41 pm
I tried these the other day and ran into an issue, but forgot what it was.  I haven't forgotten about them though.
Title: Re: In need of OGG static libraries for OSX
Post by: Pyro3d on May 29, 2011, 04:03:02 am
Just did a fresh install, and tested these with 10.6.0. They worked fine; I was able to run the binary, view mjn.mixael's movies from the tech room, etc.
Title: Re: In need of OGG static libraries for OSX
Post by: chief1983 on May 29, 2011, 10:18:23 am
Yeah I tried them a few days ago finally, they seemed to be working so far although I never actually hit an intro movie or anything.