[Vorbis] RE: Oggenc/oggdec on Mac OS X

Mikael Hillborg mikael at mhc.se
Tue Nov 15 14:38:16 PST 2005


Hi,

It works now. I managed to build oggdec with static linking. 
The trick was to supply the .a files in a certain order to
gcc. There seem to be some heavy dependencies there, which
are probably sorted out right in the makefile. If the .a libs
are given in another order, then the depencies aren't resolved
correctly and you'll end up with link errors.

Here's the command line:
gcc -o oggdec oggdec.o /usr/local/lib/libvorbisfile.a /usr/local/lib/libvorbis.a \
/usr/local/lib/libogg.a /usr/local/lib/libvorbisenc.a -lm

Perhaps someone can add a comment in the readme file just in case
someone else wants to build them as static libraries on MacOS X.

Thanks for the tips
Mike




More information about the Vorbis mailing list