discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] gr-audio-oss - OSS API emulation on NetBSD


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] gr-audio-oss - OSS API emulation on NetBSD
Date: Wed, 3 Nov 2004 07:37:21 -0800
User-agent: Mutt/1.5.6i

On Wed, Nov 03, 2004 at 08:06:59PM +1030, Berndt Josef Wulf wrote:
> G'day,
> 
> From a quick read on the Internet I understand that the OSS API  ioctl calls 
> are supported by the Linux kernel. This is not the case on NetBSD which uses 
> the libossaudio library requiring passing linker option -lossaudio.
> 
> Would it be possible to have autoconfig check for the libossaudio library and 
> if so, add the -lossaudio linker option in module gr-audio-oss?
> 
> e.g.
> 
> AC_CHECK_LIBRARY(ossaudio,....


No problem.  Please determine the name of a function in the ossaudio
library.  The autoconf macro AC_CHECK_LIB looks for a particular
function in a library.

You can get the list of symbols in a static library with nm.  For
symbols in a shared library use nm --dynamic.  Pick a symbol with a
"T" in the second column, preferably one that looks like it's not just
an implementation detail subject to change.

Once you've determined a function, add this to configure.ac

dnl find this original code...
PKG_CHECK_MODULES(GNURADIO_CORE, gnuradio-core >= 2)
LIBS="$LIBS $GNURADIO_CORE_LIBS"

dnl The add your new code right after it
AC_CHECK_LIB(ossaudio,NAME_OF_FUNCTION_IN_LIBRARY)


Then ./bootstrap && ./configure --enable-maintainer-mode && make

If it works, send the the patch and I'll test on GNU/Linux to make
sure we haven't broken anything.

Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]