| On Mon, 10 May 2004, iain duncan wrote:
> Okay, tried out locating libbabo.so and it just plain doesn't exist on my
> machine.
of course it does not! The error is in the line to create it
> Next, if I use makeDynamic=1:
which is necessary on Linux
> 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.
>
The problem is that the line should be
gcc -shared -o libbabo.so Opcodes/babo.os -L. -L. -L. -L/usr/lib
-L/usr/local/lib
note the lack of " which mean that you have an argument beginning with a
space which is being treated as a file name to link or compile, and you do
not have a file -shared
What I see is
xenakis:~/Sourceforge/csound5> mv libbabo.so xxx.so
xenakis:~/Sourceforge/csound5> scons makeDynamic=1
scons: Reading SConscript files ...
C S O U N D 5
SCons build file for Csound 5:
API library, plugin opcodes, utilities, and front ends.
By Michael Gogins
For custom options, run 'scons -h'.
For default options, run 'scons -H'.
If headers or libraries are not found, edit 'custom.py'.
For Linux, run in the standard shell
with standard Python and just run 'scons'.
For MinGW, run in the MSys shell
and use www.python.org WIN32 Python to run scons.
For Cygwin, run in the Cygwin shell
and use Cygwin Python to run 'scons'.
System platform is 'linux2'.
Build platform is 'linux'.
SCons tools on this platform: ['default', 'gnulink', 'gcc', 'g++', 'g77',
'gas', 'ar', 'CVS', 'dvipdf', 'dvips', 'gs', 'latex', 'lex', 'm4',
'pdflatex', 'pdftex', 'RCS', 'swig', 'tar', 'tex', 'yacc', 'zip']
Using single-precision floating point for audio samples.
Checking for C header file sndfile.h... yes
Checking for C header file portaudio.h... yes
Checking for C++ header file FL/Fl.H... yes
Checking for C++ header file boost/any.hpp... no
Checking for C header file io.h... no
Checking for C header file fcntl.h... yes
Checking for C header file unistd.h... yes
Checking for C header file malloc.h... yes
Checking for C header file sgtty.h... yes
Checking for C header file os.h... no
Checking for C header file sys/ioctl.h... yes
Checking for C header file sys/time.h... yes
Checking for C header file sys/types.h... yes
Checking for C header file term/ios.h... no
Checking for C header file termios.h... yes
Checking for C header file string.h... yes
Checking for C header file strings.h... yes
Checking for C header file dirent.h... yes
Checking for C function itoa()... no
Building with PortAudio.
Building with FLTK for graphs and widgets.
Checking for C header file fluidsynth.h... no
Calling TAGS
Calling makedb
scons: done reading SConscript files.
scons: Building targets ...
gcc -shared -o libbabo.so Opcodes/babo.os -L. -L. -L. -L/usr/lib
-L/usr/local/lib
Note that there is no " -shared"
I did an cvs update late last night do this is with latest versions
For example, what does your custom.py say?
What version of scons?
==John ff |