Skip to contentSkip to conversation

Static build of alsa-lib?

DISCUSSION Adrian McMenamin 2 participants 4 messages Aug 30, 2003

lore
Share & tools
lore
#0 lore raw

Thanks to James I now know a few more of things I need to do to build and test my sound driver on the Dreamcast.

But the system I am installing to is based on a static version of Busybox - there is no glibc (or indeed any other C RTL) available on it. Thus I need to build anything I install as static.

I can successfully build the alsa-lib with the cross compiling tools I have, but can see no easy way to get it to build static - can anybody tell me how?

Adrian

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#1 lore raw
Quoted 2 lines · Adrian McMenamin

Thanks to James I now know a few more of things I need to do to build and test my sound driver on the Dreamcast.

Apologies, I should have read the INSTALL file properly.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#2 lore raw
In reply to Adrian McMenamin
Quoted 9 lines · Adrian McMenamin

Thanks to James I now know a few more of things I need to do to build and test my sound driver on the Dreamcast.

But the system I am installing to is based on a static version of Busybox - there is no glibc (or indeed any other C RTL) available on it. Thus I need to build anything I install as static.

I can successfully build the alsa-lib with the cross compiling tools I have, but can see no easy way to get it to build static - can anybody tell me how?

Adrian

You could use the oss emulation instead. You won't need alsa-lib etc then.
just "modprobe snd-pcm-oss" and then depending on whether you run devfs or not, create /dev/dsp

Cheers
James

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#3 lore raw
Quoted 12 lines · James Courtier-Dutton
Quoted 11 lines · Adrian McMenamin

Thanks to James I now know a few more of things I need to do to build and test my sound driver on the Dreamcast.

But the system I am installing to is based on a static version of Busybox
- there is no glibc (or indeed any other C RTL) available on it. Thus I need to build anything I install as static.

I can successfully build the alsa-lib with the cross compiling tools I have, but can see no easy way to get it to build static - can anybody tell me how?

Quoted 6 lines
Quoted 1 line

Adrian

You could use the oss emulation instead. You won't need alsa-lib etc then. just "modprobe snd-pcm-oss" and then depending on whether you run devfs or not, create /dev/dsp

That certainly looks easier! cat testfile.txt > /dev/dsp works much better, but it sort of defeats the object!

Actually, I have been able to compile and install static versions of the alsa-libs, though I am finding it next to impossible to configure the alsa-utils for cross compiling - if anybody knows how to do that, I would welcome advice: this is what I am getting now...

[Adrian@landslide alsa-utils-0.9.6]$ CC=sh-linux-gcc ./configure --enable-shared=no --enable-static=yes --host=sh-linux --prefix=/home/Adrian/dc-down/initrd --includedir=/home/Adrian/_alsa-lib-0.9.6.tar.bz2/alsa-lib-0.9.6/include
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for sh-linux-gcc... sh-linux-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether sh-linux-gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of sh-linux-gcc... gcc3
checking for a BSD compatible install... /usr/bin/install -c checking whether ln -s works... yes
checking for ALSA CFLAGS...
checking for ALSA LDFLAGS... -lasound -lm -ldl -lpthread checking for libasound headers version >= 0.9.0... not present.
configure: error: Sufficiently new version of libasound not found.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf