Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] linux build & segfault

Date2007-02-08 20:32
FromVictor Lazzarini
SubjectRe: [Cs-dev] linux build & segfault
buildTclcsound=0 and buildJavaWrapper=0

scons -h  for all build options

There is no need to modify scons, if your problem
has to do with different paths to headers and
libraries. All you need to do is to edit custom.py.

Certainly there is no need for changing source code
(#include statements). These should in general not
be messed with. If your headers are for instance
under /usr/include/tcl8.4, then adding that path
is the way to go instead of changing the #include
statements.

Victor

>
>
> Hi,
>
> I've just built the 5.04 csound in linux. I had some
> problems, but I see you've fixed them in cvs, except for
> this one:
>
> It might have to do with my setup, but I found that the
> build didn't link my tcl, lua and fltk libs properly. To
> fix this I modified SConstruct a bit, as shown in the
> patch file so that it linked the libraries in. I hardcoded
> it for tcl8.4, by the way. (I don't know enough scons to
> make it general). These weren't being linked in, so I was
> getting 'undefined symbols' when I tried to run csound.
>
> Also, I had to modify  to  everywhere
> , but there is probably a scons option to do this that I
> didn't find, or my system is weird, so I'm guessing that's
> my problem.
>
> Another minor point: Is there a way to only build one of
> the script  interfaces? I only needed the python one, and
> it would have been easier for me to ignore the tcl and lua
> ones.
>
> Anyway, it works now, and it's very cool! Great project!
>
> Allan
>
>
>
> ----------------------------------------------------------
> --------------- Using Tomcat but need to do more? Need to
> support web services, security? Get stuff done quickly
> with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on
> Apache Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> [Attachment: patch]

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-02-09 04:47
Fromahalda@cs.mcgill.ca
SubjectRe: [Cs-dev] linux build & segfault
AttachmentsnewSConstruct  None  None  
Ok, replying to multiple people:

On Thu, February 8, 2007 3:32 pm, Victor Lazzarini wrote:
>There is no need to modify scons, if your problem
>has to do with different paths to headers and
>libraries. All you need to do is to edit custom.py.

That sounds much more sane, thanks. It was temporarily quicker
for me to do a perl replace than figure it out. scons is new to me.


On Thu, February 8, 2007 2:41 pm, Michael Gogins wrote:
> Please send your entire SConstruct and custom.py files, not a patch. It's
> much easier for me to see changes in context that way.
>
> SCons can use pkgconfig, by the way.

SConstruct is attached. There are only 3 small changes: I added 'tcl8.4'
or 'fltk' to the libraries linked in two places, and changed '-lua' to
'-llua' at one point.

Allan