> I tinkered with compiling under OS X 10.1 a little while ago and hit the
> barrier of my understanding. Here are my tips:
>
> * Use libao from CVS. There are a number of fixes that I added, and
> even an
> output driver for the OS X CoreAudio framework contributed long ago
> that I've
> ported to the latest version of libao. Since I don't actually own an OS
> X box
> (using SourceForge Compile Farm), I don't know if the playback actually
> works.
>
Just checked it out.
> * Install the dlcompat library (as rillian suggested).
Done.
> * Compile and install.
Couldn't compile... :-/
I get the following error:
> audio_out.c:30: header file 'dlfcn.h' not found
Where does this file come from?
Below is the whole transcription of the messages I got:
----------
> [localhost:ecc/Sources/ao] root# ./autogen.sh
> I am going to run ./configure with no arguments - if you wish
> to pass any to it, please specify them on the ./autogen.sh command line.
> Generating configuration files for libao, please wait....
> aclocal
> libtoolize --automake
> automake --add-missing
> automake: configure.in: installing `./install-sh'
> automake: configure.in: installing `./mkinstalldirs'
> automake: configure.in: installing `./missing'
> automake: configure.in: installing `./depcomp'
> autoconf
> configure.in:114: warning: AC_TRY_RUN called without default to allow
> cross compiling
> configure.in:115: warning: AC_TRY_RUN called without default to allow
> cross compiling
> configure.in:116: warning: AC_TRY_RUN called without default to allow
> cross compiling
> creating cache ./config.cache
> checking for a BSD compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for mawk... no
> checking for gawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets ${MAKE}... yes
> checking host system type... powerpc-apple-darwin1.4
> checking for gcc... no
> checking for cc... cc
> checking whether the C compiler (cc ) works... yes
> checking whether the C compiler (cc ) is a cross-compiler... no
> checking whether we are using GNU C... yes
> checking whether cc accepts -g... yes
> checking for style of include used by make... GNU
> checking dependency style of cc... /Users/ecc/Sources/ao/conftest.dir
> gcc
> checking for Cygwin environment... no
> checking for mingw32 environment... no
> checking how to run the C preprocessor... cc -E -traditional-cpp
> checking build system type... powerpc-apple-darwin1.4
> checking for ld used by GCC... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... no
> checking for /usr/bin/ld option to reload object files... -r
> checking for BSD-compatible nm... /usr/bin/nm -p
> checking whether ln -s works... yes
> checking how to recognise dependant libraries... file_magic Mach-O
> dynamically linked shared library
> checking for object suffix... o
> checking for executable suffix... no
> checking command to parse /usr/bin/nm -p output... ok
> checking for dlfcn.h... no
> checking for ranlib... ranlib
> checking for strip... strip
> checking for objdir... .libs
> checking for cc option to produce PIC... -fno-common
> checking if cc PIC flag -fno-common works... yes
> checking if cc static flag -static works... no
> checking if cc supports -c -o file.o... /Users/ecc/Sources/ao/conftest
> yes
> checking if cc supports -c -o file.lo... yes
> checking if cc supports -fno-rtti -fno-exceptions... yes
> checking whether the linker (/usr/bin/ld) supports shared libraries...
> yes
> checking how to hardcode library paths into programs... unsupported
> checking whether stripping libraries is possible... no
> checking dynamic linker characteristics... darwin1.4 dyld
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... no
> checking for shl_load... no
> checking for shl_load in -ldld... no
> checking for dlopen... no
> checking for dlopen in -ldl... yes
> checking whether a program can dlopen itself... yes
> checking whether a statically linked program can dlopen itself... yes
> creating libtool
> checking for pthread_kill in -lpthread... no
> checking size of short... 2
> checking size of int... 4
> checking size of long... 4
> checking for esd-config... no
> checking for ESD - version >= 0.2.8... no
> *** The esd-config script installed by ESD could not be found
> *** If ESD was installed in PREFIX, make sure PREFIX/bin is in
> *** your path, or set the ESD_CONFIG environment variable to the
> *** full path to esd-config.
> checking for sys/soundcard.h... no
> checking for machine/soundcard.h... no
> checking for snd_pcm_channel_params in -lasound... no
> checking for sys/asoundlib.h... no
> checking for snd_pcm_open in -lasound... no
> checking for sys/asoundlib.h... (cached) no
> checking for sys/audioio.h... no
> checking for artsc-config... no
> updating cache ./config.cache
> creating ./config.status
> creating Makefile
> creating src/Makefile
> creating doc/Makefile
> creating include/Makefile
> creating include/ao/Makefile
> creating include/ao/os_types.h
> creating src/plugins/Makefile
> creating src/plugins/esd/Makefile
> creating src/plugins/oss/Makefile
> creating src/plugins/alsa/Makefile
> creating src/plugins/alsa09/Makefile
> creating src/plugins/sun/Makefile
> creating src/plugins/irix/Makefile
> creating src/plugins/arts/Makefile
> creating src/plugins/macosx/Makefile
> creating debian/Makefile
>
> [localhost:ecc/Sources/ao] root# make
> Making all in src
> Making all in plugins
> Making all in oss
> make[3]: Nothing to be done for `all'.
> Making all in esd
> make[3]: Nothing to be done for `all'.
> Making all in arts
> make[3]: Nothing to be done for `all'.
> Making all in alsa
> make[3]: Nothing to be done for `all'.
> Making all in alsa09
> make[3]: Nothing to be done for `all'.
> Making all in sun
> make[3]: Nothing to be done for `all'.
> Making all in irix
> make[3]: Nothing to be done for `all'.
> Making all in macosx
> source='ao_macosx.c' object='ao_macosx.lo' libtool=yes \
> depfile='.deps/ao_macosx.Plo'
tmpdepfile='.deps/ao_macosx.TPlo' \
> depmode=gcc /bin/sh ../../../depcomp \
> /bin/sh ../../../libtool --mode=compile cc -DPACKAGE=\"libao\"
> -DVERSION=\"0.8.1\" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4
-DSIZEOF_LONG=4
> -I. -I. -I../../.. -I../../../include -framework CoreAudio -O20
> -D__NO_MATH_INLINES -fsigned-char
> -I/System/Library/Frameworks/Carbon.framework/Versions/A/Headers -g -O2
> -c -o ao_macosx.lo `test -f ao_macosx.c || echo './'`ao_macosx.c
> cc -DPACKAGE=\"libao\" -DVERSION=\"0.8.1\"
-DSIZEOF_SHORT=2
> -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -I. -I. -I../../.. -I../../../include
> -framework CoreAudio -O20 -D__NO_MATH_INLINES -fsigned-char
> -I/System/Library/Frameworks/Carbon.framework/Versions/A/Headers -g -O2
> -c ao_macosx.c -Wp,-MD,.deps/ao_macosx.TPlo -fno-common -DPIC -o
> ao_macosx.lo
> cc: unrecognized option `-O20'
> ao_macosx.c:412: warning: On the last buffer, zero out the part of the
> buffer that does not have valid samples
> ao_macosx.c:415: warning: The bytes in the buffer are currently in
> little endian, but we need big endian. Supposedly these are going to
> be host endian at some point and the following line of code can go away.
> cc: -framework: linker input file unused since linking not done
> cc: CoreAudio: linker input file unused since linking not done
> /bin/sh ../../../libtool --mode=link cc -O20 -D__NO_MATH_INLINES
> -fsigned-char
> -I/System/Library/Frameworks/Carbon.framework/Versions/A/Headers -g
> -O2 -o libmacosx.la -rpath /usr/local/lib/ao/plugins-2
> -export-dynamic -avoid-version ao_macosx.lo
> mkdir .libs
> rm -fr .libs/libmacosx.la .libs/libmacosx.* .libs/libmacosx.*
> (cd . && ln -s ao_macosx.lo ao_macosx.o)
> ../../../libtool: parse error: condition expected: xno = [3183]
> cc -dynamiclib -flat_namespace -undefined suppress -o
> .libs/libmacosx.dylib ao_macosx.lo -lc -install_name
> /usr/local/lib/ao/plugins-2/libmacosx.dylib
> creating libmacosx.la
> (cd .libs && rm -f libmacosx.la && ln -s ../libmacosx.la
libmacosx.la)
> /Users/ecc/Sources/ao/src/plugins/macosx/.libs
> make[3]: Nothing to be done for `all-am'.
> source='audio_out.c' object='audio_out.lo' libtool=yes \
> depfile='.deps/audio_out.Plo'
tmpdepfile='.deps/audio_out.TPlo' \
> depmode=gcc /bin/sh ../depcomp \
> /bin/sh ../libtool --mode=compile cc -DPACKAGE=\"libao\"
> -DVERSION=\"0.8.1\" -DSIZEOF_SHORT=2 -DSIZEOF_INT=4
-DSIZEOF_LONG=4
> -I. -I. -I.. -I../include
> -DAO_PLUGIN_PATH=\"/usr/local/lib/ao/plugins-2\" -O20
> -D__NO_MATH_INLINES -fsigned-char
> -I/System/Library/Frameworks/Carbon.framework/Versions/A/Headers -g -O2
> -c -o audio_out.lo `test -f audio_out.c || echo './'`audio_out.c
> cc -DPACKAGE=\"libao\" -DVERSION=\"0.8.1\"
-DSIZEOF_SHORT=2
> -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -I. -I. -I.. -I../include
> -DAO_PLUGIN_PATH=\"/usr/local/lib/ao/plugins-2\" -O20
> -D__NO_MATH_INLINES -fsigned-char
> -I/System/Library/Frameworks/Carbon.framework/Versions/A/Headers -g -O2
> -c audio_out.c -Wp,-MD,.deps/audio_out.TPlo -fno-common -DPIC -o
> audio_out.lo
> cc: unrecognized option `-O20'
> audio_out.c:30: header file 'dlfcn.h' not found
> cpp-precomp: warning: errors during smart preprocessing, retrying in
> basic mode
> make[2]: *** [audio_out.lo] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
--- >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-dev-request@xiph.org'
containing only the word 'unsubscribe' in the body. No subject is
needed.
Unsubscribe messages sent to the list will be ignored/filtered.