Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: Re: Re: Re: problems building python interface for Mac Leopard

Date2008-02-27 09:05
Fromvictor
Subject[Csnd] Re: Re: Re: Re: Re: problems building python interface for Mac Leopard
Dynamic floats should build because it's the one I use on 10.4. I am
only not sure about OSXGUI, because I never build that one.

Victor
----- Original Message ----- 
From: "Hector Centeno" 
To: 
Sent: Wednesday, February 27, 2008 5:57 AM
Subject: [Csnd] Re: Re: Re: Re: problems building python interface for Mac 
Leopard


> This is what I got doing a few test builds under Leopard 10.5.2 using
> today's CVS checkout (starting with a fresh copy each test except the
> paths added to custom.py for the headers):
>
> 1. Virgin (no flags): builds fine.
>
> 2. Doubles: builds fine.
>
> 3. With interfaces and both singles or doubles. static or dynamic: error
>
> CONFIGURATION DECISION: Not building Csound Lua interface library.
> NameError: name 'csndPythonEnvironment' is not defined:
>  File "/Users/hector/Documents/build/csound5/SConstruct", line 1193:
>    csndPythonEnvironment.Append(LIBS = ['csound','_csnd'])
>
> 4. With doubles or singles, static or dynamic, OSC, python opcodes,
> STK, virtual keyboard, java wrapper: builds fine
>
> 5. Same as no. 4 plus OSXGUI: error
>
> cd /Users/hector/Documents/build/csound5/frontends/OSX
>    /Developer/usr/bin/gcc-4.0 -x c -arch i386 -pipe -Wno-trigraphs
> -fpascal-strings -fasm-blocks -Os -mdynamic-no-pic -fmessage-length=0
> -fvisibility=hidden
> "-I/Users/hector/Documents/build/csound5/frontends/OSX/build/Csound_5.build/Deployment/Csound
> 5.build/Csound 5.hmap"
> -F/Users/hector/Documents/build/csound5/frontends/OSX/build/Deployment
> -I/Users/hector/Documents/build/csound5/frontends/OSX/build/Deployment/include
> -I/Library/Frameworks/CsoundLib.Framework/Headers
> "-I/Users/hector/Documents/build/csound5/frontends/OSX/build/Csound_5.build/Deployment/Csound
> 5.build/DerivedSources" -include
> /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/Csound5_Prefix-dbzeffzimksfbmbtctwwuncnunvd/Csound5_Prefix.pch
> -c /Users/hector/Documents/build/csound5/frontends/OSX/main.c -o
> "/Users/hector/Documents/build/csound5/frontends/OSX/build/Csound_5.build/Deployment/Csound
> 5.build/Objects-normal/i386/main.o"
> cc1: error: 
> /Library/Caches/com.apple.Xcode.501/SharedPrecompiledHeaders/Csound5_Prefix-dbzeffzimksfbmbtctwwuncnunvd/Csound5_Prefix.pch:
> No such file or directory
> cc1: error: one or more PCH files were found, but they were invalid
> cc1: error: use -Winvalid-pch for more information
> /Users/hector/Documents/build/csound5/frontends/OSX/main.c: In
> function 'SetWorkingDirectory':
> /Users/hector/Documents/build/csound5/frontends/OSX/main.c:127:
> warning: passing argument 4 of 'GetControlData' makes integer from
> pointer without a cast
> /Users/hector/Documents/build/csound5/frontends/OSX/main.c: In
> function 'Compile':
> /Users/hector/Documents/build/csound5/frontends/OSX/main.c:181:
> warning: passing argument 4 of 'GetControlData' makes integer from
> pointer without a cast
> /Users/hector/Documents/build/csound5/frontends/OSX/main.c: In
> function 'MainWindowHandler':
> /Users/hector/Documents/build/csound5/frontends/OSX/main.c:301:
> warning: 'FrontWindow' is deprecated (declared at
> /System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/MacWindows.h:11398)
> ** BUILD FAILED **
> scons: *** [frontends/OSX/build/Csound 5.app/Contents/MacOS/Csound 5] 
> Error 1
> scons: building terminated because of errors.
>
>
>
> Cheers,
>
>
> Hector
>
>
>
>
>
> On Tue, Feb 26, 2008 at 1:52 PM, victor  wrote:
>> Well, I have to get that fixed. It seemed to build to me on 10.4. Do you
>>  recall
>>  where it failed?
>>
>>
>>  ----- Original Message -----
>>  From: "Julian Peterson" 
>>  To: 
>>
>>
>> Sent: Tuesday, February 26, 2008 6:45 PM
>>  Subject: [Csnd] Re: Re: problems building python interface for Mac 
>> Leopard
>>
>>
>>  > Hi Victor---
>>  >
>>  > I never did get the static lib to build, but did have success building
>>  > the dynamic lib on Leopard.  There weren't any Leopard specific 
>> issues,
>>  > that I recall.
>>  >
>>  > JP
>>  >
>>  >
>>  > On Feb 26, 2008, at 1:36 PM, victor wrote:
>>  >
>>  >> csndPythonEnvironment = commonEnvironment.Copy() ?
>>  >>
>>  >> I need to look at this, SConstruct should build regardless of
>>  >> it being 10.5 or not. I think it's the static lib build again, which
>>  >> I thought I'd fixed. Or is it doubles version? I need to get this
>>  >> right, trouble is finding time these days...
>>  >>
>>  >> ----- Original Message ----- From: "Hector Centeno" 
>> 
>>  >> To: 
>>  >> Sent: Tuesday, February 26, 2008 5:12 PM
>>  >> Subject: [Csnd] problems building python interface for Mac Leopard
>>  >>
>>  >>
>>  >>> Hi,
>>  >>>
>>  >>> Just in case someone has some time and information to help me with
>>  >>> this:
>>  >>>
>>  >>> Trying to build csound with interfaces in Mac OS X Leopard, gave me
>>  >>> errors at this point:
>>  >>>
>>  >>> csndPythonEnvironment.Append(LIBS = ['csound','_csnd'])
>>  >>>
>>  >>> First I changed the spelling of Append to lowercase and that changed
>>  >>> the error to name not defined for csndPythonEnvironment. I added 
>> some
>>  >>> hacks to make it work, without knowing if I'm doing the right thing 
>> (I
>>  >>> predefined it this way: csndPythonEnvironment = []), and got pass 
>> that
>>  >>> point but then it stopped at:
>>  >>>
>>  >>> csoundPythonInterface =
>>  >>> csndPythonEnvironment.SharedObject('interfaces/
>>  >>> python_interface.i',SWIGFLAGS
>>  >>> = [swigflags, '-python', '-outdir', '.'])
>>  >>>
>>  >>> Saying there is no SharedObject method, which I guess might be 
>> related
>>  >>> to my changes, or not?
>>  >>>
>>  >>>
>>  >>>
>>  >>> Cheers,
>>  >>>
>>  >>> Hector
>>  >>>
>>  >>>
>>  >>> Send bugs reports to this list.
>>  >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>  >>> "unsubscribe csound"
>>  >>
>>  >>
>>  >>
>>  >> Send bugs reports to this list.
>>  >> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>> "unsubscribe
>>  >> csound"
>>  >
>>  >
>>  >
>>  > Send bugs reports to this list.
>>  > To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>> "unsubscribe
>>  > csound"
>>
>>
>>
>>  Send bugs reports to this list.
>>  To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
>> csound"
>>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound"