Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:4658] Re: Updated Csound 5 compile errors

Date2004-05-11 05:04
From"iain duncan"
Subject[CSOUND-DEV:4658] Re: Updated Csound 5 compile errors
Okay, tried out locating libbabo.so and it just plain doesn't exist on my
machine.

Thanks for the tips everyone.
Iain

----- Original Message -----
From: 
To: "Csound Developers Discussion List" 
Sent: Monday, May 10, 2004 6:33 AM
Subject: [CSOUND-DEV:4653] Re: Updated Csound 5 compile errors


.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/ .

Date2004-05-11 05:35
FromJohn ffitch
Subject[CSOUND-DEV:4659] Re: Updated Csound 5 compile errors
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

Date2004-05-11 10:50
Fromglyn
Subject[CSOUND-DEV:4660] Re: Updated Csound 5 compile errors
John ffitch wrote:

>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?
>  
>
i had the same problem, but upgrading to scons 0.95 seems to have fixed 
it (and allowed everything to compile,  albeit without csoundvst!!)

note:  to successfully compile with portaudio and jack enabled i needed 
to add jack to custom.py, as per the following:

    customLIBS.append('jack')

so, to recapitulate, csound5 seems to compile with the following

- redhat 9.0
- gcc 3.2.2
- portaudio v.19
- scons 0.95
- python 2.2.2
- libsndfile 1.0.5
- alsa 0.98

- makeDynamic=1 (maybe this should be set to '1' by default if 
platform=='linux'?)
- buildCsoundVST=0
- adding 'jack' to custom.py (for portaudio/jack support-- currently 
doesn't work)

glyn

Date2004-05-11 11:09
From"Josep MComajuncosas"
Subject[CSOUND-DEV:4661] Re: Updated Csound 5 compile errors
I'd love to try this at home, but I'm just short of time. Could someone
write down a fool-proof, step by step instructions: what to get, what to
configure, what to fix, what to compile, in what order, what to do in
that case and in that eventuality...:)

Linux, Windows...

Josep M Comajuncosas


-----Mensaje original-----
De: owner-csound-dev@eartha.mills.edu
[mailto:owner-csound-dev@eartha.mills.edu] En nombre de glyn
Enviado el: martes, 11 de mayo de 2004 11:51
Para: Csound Developers Discussion List
Asunto: [CSOUND-DEV:4660] Re: Updated Csound 5 compile errors

John ffitch wrote:

>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?
>  
>
i had the same problem, but upgrading to scons 0.95 seems to have fixed 
it (and allowed everything to compile,  albeit without csoundvst!!)

note:  to successfully compile with portaudio and jack enabled i needed 
to add jack to custom.py, as per the following:

    customLIBS.append('jack')

so, to recapitulate, csound5 seems to compile with the following

- redhat 9.0
- gcc 3.2.2
- portaudio v.19
- scons 0.95
- python 2.2.2
- libsndfile 1.0.5
- alsa 0.98

- makeDynamic=1 (maybe this should be set to '1' by default if 
platform=='linux'?)
- buildCsoundVST=0
- adding 'jack' to custom.py (for portaudio/jack support-- currently 
doesn't work)

glyn

Date2004-05-11 16:13
Fromstevenyi
Subject[CSOUND-DEV:4668] Re: Updated Csound 5 compile errors
Hi Glyn and all,


On Tue, 2004-05-11 at 02:50, glyn wrote:

>     customLIBS.append('jack')

You can also use the useJack=1 commandline flag I put in a while ago. 
It does the same thing and was added for this exact reason of if
portaudio was compiled with jack.

steven

Date2004-05-11 20:06
Fromglyn
Subject[CSOUND-DEV:4677] Re: Updated Csound 5 compile errors
stevenyi wrote:

>Hi Glyn and all,
>
>
>On Tue, 2004-05-11 at 02:50, glyn wrote:
>
>  
>
>>    customLIBS.append('jack')
>>    
>>
>
>You can also use the useJack=1 commandline flag I put in a while ago. 
>It does the same thing and was added for this exact reason of if
>portaudio was compiled with jack.
>  
>
oh, riiiiiight.  nevermind.   :)

glyn