| .so is dynamic (shared object), .a is static (archive).
-Ldir says to the linker, look for .so's and .a's in dir. So /usr/lib was
scanned (as it almost always should be, along with /lib and /usr/local/lib).
You can proceed by putting the dir where libbabo.so is as an -L option in
custom.py. If libbabo.so isn't built yet when it's being linked with, then
that's a bug in SConstruct I need to know about.
Original Message:
-----------------
From: iainduncan@telus.net
Date: Mon, 10 May 2004 01:23:21 -0700
To: csound-dev@eartha.mills.edu
Subject: [CSOUND-DEV:4647] Re: Updated Csound 5 compile errors
Thanks for the tips everyone, I'm keep track of them all so we can do an
idiot's
guide to compiling by the end of this. ; )
Ok, libasound is located:
/usr/lib/libasound.so.2.0.0
/usr/lib/libasound.so.2
/usr/lib/libasound.so
/usr/lib/libasound.la
/usr/lib/libasound.so.1
My errors said:
gcc -static -o cscore util1/cscore/cscore_main.o -L. -L. -L. -L/usr/lib
-L/usr/local/lib -L/usr/local/lib -L/usr/X11R6/lib -lcsound -lsndfile -lfltk
-lpthread -lm -lXext -lX11 -lsupc++ -lportaudio -lasound -lfltk -lstdc++
-lpthread -lm -ldl
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.2/../../../../i386-pc-linux-gnu/bin/l
d:
cannot find -lasound
I assume the above means it looked in /usr/lib? However, I don't know how to
tell if this is dynamic or static, or whether it is in the right place. Do I
just look at the compiler output and see what dir is being searched?
Next, if I use makeDynamic=1:
gcc -o hetro anal/adsyn/het_main.o -L. -L. -L. -L/usr/lib -L/usr/local/lib
-lustub -lsndfile -lstdc++ -lpthread -lm -ldl
gcc " -shared" -o libbabo.so Opcodes/babo.os -L. -L. -L. -L/usr/lib
-L/usr/local/lib
gcc: -shared: No such file or directory
scons: *** [libbabo.so] Error 1
scons: building terminated because of errors.
I think I got further, but I have no clue what the above means.
As to how to install stuff, so far I've noticed that Gentoo's emerge method
puts
everything in the right places, but could this vary package by package? It
would
be nice to keep track of that element too, as I must say Gentoo was an
absolute
breeze to get alsa audio and midi working, as well as patched kernels.
Thanks
Iain
> Not sure if this is your problem or not, but on my Linux set-ups ALSA is
> only available as a dynamic library, so I always have to use
makeDynamic=1
> in scons. Try 'locate libasound' and see if you have the library, and if
> it is static or dynamic
> ==John ff
>
>
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ . |