Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:4923] scons on mac

Date2004-07-12 20:47
Fromjpff@codemist.co.uk
Subject[CSOUND-DEV:4923] scons on mac
I need to add the parameters "-framework carbon" to the link stage om
OSX, but I do not see to be able to get scons to accept this.  If I do
hand lin king it works

Also for you Python phreaks, what is the difference between

if (commonEnvironment['useFLTK'] and fltkFound):
and
if (commonEnvironment['useFLTK']==1 and fltkFound==1):
and
if (commonEnvironment['useFLTK']==1 and fltkFound):

when commonEnvironment['useFLTK'] and fltkFound both print as 1 ??

I have convinced myself that I do not understand python.

Anyway the first question is much more important to me.  How do I add
"-framework carbon" to the link line?

==John ffitch

Date2004-07-13 05:43
Fromstevenyi
Subject[CSOUND-DEV:4935] Re: scons on mac
Hi all,

The reasons why some of the code has "== 1" and some does not is that I
have added "== 1" in the places where the if's weren't working properly,
which happens on python 2.2 and not on 2.3.  If using 2.3, you can not
use the "== 1" and the file runs fine.  If on 2.2, it seems that not
using "== 1" the conditional always evaluates true, so in the case of:

if(commonEnvironment['useFLTK'] and fltkFound):

regardless of what values I would pass in to the command line,
commonEnvironment['useFLTK'] would always evaluate true.  

I seem to remember when python 2.3 came out that there was mention of
boolean types being added to the language and maybe that's the reason of
the discrepency for the syntaxes.

steven



On Mon, 2004-07-12 at 12:47, jpff@codemist.co.uk wrote:
> I need to add the parameters "-framework carbon" to the link stage om
> OSX, but I do not see to be able to get scons to accept this.  If I do
> hand lin king it works
> 
> Also for you Python phreaks, what is the difference between
> 
> if (commonEnvironment['useFLTK'] and fltkFound):
> and
> if (commonEnvironment['useFLTK']==1 and fltkFound==1):
> and
> if (commonEnvironment['useFLTK']==1 and fltkFound):
> 
> when commonEnvironment['useFLTK'] and fltkFound both print as 1 ??
> 
> I have convinced myself that I do not understand python.
> 
> Anyway the first question is much more important to me.  How do I add
> "-framework carbon" to the link line?
> 
> ==John ffitch
> 
> 

Date2004-07-13 07:59
FromMisha Gorodnitzky
Subject[CSOUND-DEV:4938] Re: scons on mac
On 12 juil. 04, at 21:47, jpff@codemist.co.uk wrote:

> Anyway the first question is much more important to me.  How do I add
> "-framework carbon" to the link line?

Hopefully any scons-addicts will let us know if there's a better way to 
do this, but for the gcc/cc targets it appears you can specify 
LINKFLAGS when creating your Environment, so something like this:

env = Environment( LINKFLAGS = "-framework carbon" )

will do the trick.


--M

Date2004-07-13 10:06
From"Matt J. Ingalls"
Subject[CSOUND-DEV:4942] Re: scons on mac
why do you need to add carbon?





On Mon, 12 Jul 2004 jpff@codemist.co.uk wrote:

> I need to add the parameters "-framework carbon" to the link stage om
> OSX, but I do not see to be able to get scons to accept this.  If I do
> hand lin king it works
>
> Also for you Python phreaks, what is the difference between
>
> if (commonEnvironment['useFLTK'] and fltkFound):
> and
> if (commonEnvironment['useFLTK']==1 and fltkFound==1):
> and
> if (commonEnvironment['useFLTK']==1 and fltkFound):
>
> when commonEnvironment['useFLTK'] and fltkFound both print as 1 ??
>
> I have convinced myself that I do not understand python.
>
> Anyway the first question is much more important to me.  How do I add
> "-framework carbon" to the link line?
>
> ==John ffitch
>
>

Date2004-07-13 11:05
Fromjpff@codemist.co.uk
Subject[CSOUND-DEV:4945] Re: scons on mac
Because without it FLTK components have unresolved references to
toolbox stuff.  About to check again as the mac in now on.
==John ffitch

Date2004-07-13 13:10
Fromjpff@codemist.co.uk
Subject[CSOUND-DEV:4949] Re: scons on mac
>>>>> "Misha" == Misha Gorodnitzky  writes:

 Misha> On 12 juil. 04, at 21:47, jpff@codemist.co.uk wrote:
 >> Anyway the first question is much more important to me.  How do I add
 >> "-framework carbon" to the link line?

 Misha> Hopefully any scons-addicts will let us know if there's a better way to 
 Misha> do this, but for the gcc/cc targets it appears you can specify 
 Misha> LINKFLAGS when creating your Environment, so something like this:

 Misha> env = Environment( LINKFLAGS = "-framework carbon" )

 Misha> will do the trick.

But does not as far as I can see.  I have tried many variants of
this.  Current problem is that this comes as 
gcc "-framework Carbon" -dynamic -o cscore .....
which is (a) at the wrong end of the arguments and (b) included in quotes.

(later)
After some more messy about it now seems to build.  Now on to
portaudio problems and the libsndfile oddity

==John ffitch