[vorbis] libao on OS X
Timothy J. Wood
tjw at omnigroup.com
Tue Nov 6 03:59:02 PST 2001
Boy, it's too bad no one committed the code I submitted about a year
ago for OS X that (a) worked and (b) didn't require that libdl be used
for every libao module.
On Tuesday, November 6, 2001, at 01:43 AM, Rik Hemsley wrote:
>> but the dynamic plugin system is broken.
>> 1) on OS X, dll's en in .dylib, not .so, as is hardwired in. this
>> should
>> be an easy fix.
No, if you want to load with libdl, they must be bundles, not dylibs.
You can call them whatever you want, but calling them .dylibs would be
misleading since they can't be and still be loaded with libdl.
>> 2) dlopen chokes on opening the .dylib files...so the plugin is never
>> loaded. i know not enought of dlopen on OS X to be of much help here,
>> beyond tracing it to that call
Create bundles with:
cc -flat_namespace -bundle -undefined suppress
(-flat_namespace is new in 10.1 -- it isn't needed if you are on
10.0. You'll want configure.in to pick the right settings)
Also, grab the normal OS X libdl compatibility package from
SourceForge:
http://download.sourceforge.net/fink/dlcompat-20010831.tar.gz
-tim
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Vorbis
mailing list