From: Adrian McMenamin Subject: Re: Static build of alsa-lib? Date: Sat, 30 Aug 2003 22:51:57 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <200308302251.57888.adrian@mcmen.demon.co.uk> References: <200308302141.16626.adrian@mcmen.demon.co.uk> <3F51125D.5050001@superbug.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from sc-outsmtp1.homechoice.co.uk (sc-outsmtp1.homechoice.co.uk [81.1.65.35]) by alsa.alsa-project.org (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with SMTP id XAA25376 for ; Sat, 30 Aug 2003 23:51:51 +0200 In-Reply-To: <3F51125D.5050001@superbug.demon.co.uk> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: James Courtier-Dutton Cc: ALSA development List-Id: alsa-devel@alsa-project.org On Saturday 30 August 2003 22:08, James Courtier-Dutton wrote: > Adrian McMenamin wrote: > > 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 Bus= ybox > > - 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 th= en. > 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 bette= r,=20 but it sort of defeats the object! Actually, I have been able to compile and install static versions of the=20 alsa-libs, though I am finding it next to impossible to configure the=20 alsa-utils for cross compiling - if anybody knows how to do that, I would= =20 welcome advice: this is what I am getting now... [Adrian@landslide alsa-utils-0.9.6]$ CC=3Dsh-linux-gcc ./configure=20 --enable-shared=3Dno --enable-static=3Dyes --host=3Dsh-linux=20 --prefix=3D/home/Adrian/dc-down/initrd=20 --includedir=3D/home/Adrian/_alsa-lib-0.9.6.tar.bz2/alsa-lib-0.9.6/includ= e configure: WARNING: If you wanted to set the --build type, don't use --ho= st. 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 >=3D 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