Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Building CsoundLib.framework

Date2006-02-11 18:39
FromVictor Lazzarini
SubjectRe: [Cs-dev] Building CsoundLib.framework
Exactly, that's what I would suggest: use a static library.

The problem is that, while you can put the framework
anywhere
you like and point your linker to it, on OSX, the dylibs
have
a 'installation' name and that has the directory hardcoded.
The
linking will be OK, but the program will fail to run because
it
depends on a Library that is sitting at a specific location
and it
can't find it. So for a dynamic csound library to work, you
have to
specify where it is going to end up. I tried all sorts of
work-arounds
and that was the best I could come up with.

It is possible however to try to change SConstruct so that
the
installation name is given as an argument to scons and then
the library is copied there and your local binaries are
linked
against it and the whole framework is then copied to that
place. I'll try that at some point.

But may I suggest for the moment, to statically build
csoundlib,
as it might be confusing to have more than one framework
around the place, if you're not keen overwriting your old
one.

Victor

>
> On Saturday 11 February 2006 19:02, Anthony Kozar wrote:
>
> > Is there a way that SConstruct could be modified so that
> > you can build in a "sandbox" and test changes, etc.
> > without affecting your "good" copy of Csound?
>
> Assuming that the framework is intended only for use in
> releases that are to be distributed, you could just build
> without dynamicCsoundLibrary=0 for development and testing
> code changes.
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep
> through log files for problems?  Stop!  Download the new
> AJAX search engine that makes searching your log files as
> easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-02-11 19:01
FromAnthony Kozar
SubjectRe: [Cs-dev] Building CsoundLib.framework
Thanks very much to you and Istvan for the responses.

I think you are right and I should just go with the static linking for now.

Victor Lazzarini wrote on 2/11/06 1:39 PM:

> It is possible however to try to change SConstruct so that the
> installation name is given as an argument to scons and then
> the library is copied there and your local binaries are linked
> against it and the whole framework is then copied to that
> place. I'll try that at some point.

It is good to know that this could work, but I doubt right now that I will
be building on OS X often enough to really need to worry about it.

Thanks.

Anthony



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net