How do I compile Ogg support on a Mac?
February 19, 2007 12:28 AM
Subscribe
How do I compile Ogg support under Mac OS X the hard way? There's way too much
I've just installed
Frets on Fire (an open source replacement for the Guitar Hero games) on my 20" Intel iMac. It only comes with three tracks. However, it can import tracks from the original Guitar Hero discs for the Playstation 2. The importer needs oggenc to turn the Playstation data into .ogg files that Frets can play.
Getting this up and running on Windows seems to be pretty straightforward - track down a copy of oggenc.exe and stick it in the installation directory. Frets assumes Linux has full OGG support available.
Things don't seem so clear-cut on the Mac. I grabbed a precompiled Mac binary of oggenc from vorbis-tools-1.1.1. It runs fine at the command prompt, but no matter where I put it, Frets can't find it. I'm guessing I need to set up a Linux-like ogg environment in Darwin so that it's all-pervasive.
I've downloaded the CVS for libogg, libvorbis, libao and vorbis_tools. Apparently I stick these in a folder, open a terminal, change into each subfolder, and type:
./configure
make
sudo make install
The 'configure' command told me it couldn't find a C compiler. I threw in my OS X CD and installed gcc3 and gcc4, along with whatever's in developertools.pkg for good measure. Now 'configure' tells me my C compiler can't make executables, so that's as far as I get.
checking for C compiler default output file name... configure: error: C compiler cannot create executables
Do I need to install some other developer-type tools from my install CD to make this work? I tried installing OggDrop to see if it'd make some changes behind the scenes - no dice.
posted by obiwanwasabi to computers & internet (8 comments total)
1 user marked this as a favorite
There may also be other dependencies involved in compiling the ogg codec.
Can you post the full
configuretranscript?Another thought is to find out where the OS X vorbis-tools-1.1.1 installer places the libraries (e.g.,
/usr/libetc.).If you know where the libraries are installed, and where they are placed in the filesystem under Linux, you might be able to set up soft symbolic links (
ln -s) from the OS X location to the Linux location, to fake out Frets on Fire.posted by Blazecock Pileon at 12:49 AM on February 19, 2007