[Csnd] scons madness?
Date | 2011-06-06 18:30 |
From | Aaron Krister Johnson |
Subject | [Csnd] scons madness? |
Hi all, I'm preparing a csound5-git package for the Arch Linux AUR (Arch User Repository).... Testing the PKGBUILD gives me the following scons error: ##### scons: warning: The Options class is deprecated; use the Variables class instead. File "/home/akj/abs/csound5-git/src/csound5.git-build/SConstruct", line 75, in <module>
Using options from 'custom.py.' KeyError: 'customCPPPATH': File "/home/akj/abs/csound5-git/src/csound5.git-build/SConstruct", line 345: customCPPPATH = commonEnvironment['customCPPPATH']
File "/usr/lib/python2.7/site-packages/SCons/Environment.py", line 409: return self._dict[key] #### Has something changed with scons? Or is it a strange bug no-one has heard of? How do I work around this?
Any tips would be helpful...shouldn't be this hard to compile Csound, especially with scons which is supposed to be easy; I've done it many times before.
Thanks, Aaron Krister Johnsonhttp://www.akjmusic.com http://www.untwelve.org |
Date | 2011-06-06 18:37 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Csnd] scons madness? |
Do you habve a custom.py file? If not copy and edit custon-jpff.py or similar No idea about th eoptions class -- been that way for a while ==John ff > Hi all, > > I'm preparing a csound5-git package for the Arch Linux AUR (Arch User > Repository).... > > Testing the PKGBUILD gives me the following scons error: > > ##### > scons: warning: The Options class is deprecated; use the Variables class > instead. > > File "/home/akj/abs/csound5-git/src/csound5.git-build/SConstruct", line > 75, > in |
Date | 2011-06-06 20:16 |
From | Aaron Krister Johnson |
Subject | Re: [Csnd] scons madness? |
Okay, I copied "custom.py.mkg" to "custom.py"....kind of sloppy to not have a "custom.py" in the sources when the SConstruct script expects it, yes? All's well, but now I'm getting this:
In file included from Top/main.c:28:0: H/csound_orc.h:14:29: fatal error: csound_orcparse.h: No such file or directory compilation terminated. scons: *** [Top/main.o] Error 1
scons: building terminated because of errors. Why is this file missing? Help, please? AKJ On Mon, Jun 6, 2011 at 12:37 PM, <jpff@cs.bath.ac.uk> wrote: Do you habve a custom.py file? If not copy and edit custon-jpff.py or -- Aaron Krister Johnson http://www.akjmusic.com http://www.untwelve.org |
Date | 2011-06-06 20:37 |
From | Rory Walsh |
Subject | Re: [Csnd] scons madness? |
Hi Aaron. If users are building Csound for the first time they should edit the custom-OS.py file that comes with Csound. If you don't want to have to keep editing this file every time you checkout Csound put it outside the Csound build tree otherwise it will get overwritten each time you update your Csound source from git. Rory. On 6 June 2011 20:16, Aaron Krister Johnson |
Date | 2011-06-06 20:46 |
From | Victor Lazzarini |
Subject | Re: [Csnd] scons madness? |
you need bison/flex. Victor On 6 Jun 2011, at 20:16, Aaron Krister Johnson wrote:
Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2011-06-06 20:50 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Csnd] scons madness? |
> you need bison/flex. > > Victor Or build without the new parser Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-06-06 21:19 |
From | Aaron Krister Johnson |
Subject | Re: [Csnd] scons madness? |
I have both Bison&Flex installed. The problem seems to be elsewhere. AKJ
On Mon, Jun 6, 2011 at 2:46 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
-- Aaron Krister Johnson http://www.akjmusic.com http://www.untwelve.org |
Date | 2011-06-06 21:19 |
From | Aaron Krister Johnson |
Subject | Re: [Csnd] scons madness? |
And how do I do that? AKJ
On Mon, Jun 6, 2011 at 2:50 PM, <jpff@cs.bath.ac.uk> wrote:
-- Aaron Krister Johnson http://www.akjmusic.com http://www.untwelve.org |
Date | 2011-06-06 21:22 |
From | Aaron Krister Johnson |
Subject | Re: [Csnd] scons madness? |
oh, buildNewParser=0? But---I have Bison and Flex---why isn't it building? The error msg seems to indicate a missing source file. AKJ
On Mon, Jun 6, 2011 at 3:19 PM, Aaron Krister Johnson <aaron@akjmusic.com> wrote: And how do I do that? -- Aaron Krister Johnson http://www.akjmusic.com http://www.untwelve.org |
Date | 2011-06-06 21:22 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Csnd] scons madness? |
> And how do I do that? > > AKJ > buildNewParser=0 > On Mon, Jun 6, 2011 at 2:50 PM, |
Date | 2011-06-06 21:36 |
From | Aaron Krister Johnson |
Subject | Re: [Csnd] scons madness? |
And, I should mention, I already had "buildNewParser=0" Oddly (or maybe not), it now works with "buildNewParser=1" AKJ
On Mon, Jun 6, 2011 at 3:22 PM, Aaron Krister Johnson <aaron@akjmusic.com> wrote: oh, buildNewParser=0? -- Aaron Krister Johnson http://www.akjmusic.com http://www.untwelve.org |
Date | 2011-06-06 21:39 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Csnd] scons madness? |
Thanks;thjat needs looking at. > And, I should mention, I already had "buildNewParser=0" > > Oddly (or maybe not), it now works with "buildNewParser=1" > > AKJ > > On Mon, Jun 6, 2011 at 3:22 PM, Aaron Krister Johnson > |
Date | 2011-06-06 21:45 |
From | Steven Yi |
Subject | Re: [Csnd] scons madness? |
Yes, there's an include in Top/csound.c (I think that file) for csound_orc.h that needs to be wrapped in an #ifdef. I ran into this yesterday night when building on Ubuntu and didn't have flex/bison installed on that VM. I'll fire up the VM now and will commit that change. On Mon, Jun 6, 2011 at 4:39 PM, |
Date | 2011-06-06 21:56 |
From | Felipe Sateler |
Subject | Re: [Csnd] scons madness? |
On Mon, Jun 6, 2011 at 15:16, Aaron Krister Johnson |
Date | 2011-06-06 22:28 |
From | Rory Walsh |
Subject | Re: [Csnd] scons madness? |
I posted that issue to the list a while ago. http://csound.1045644.n5.nabble.com/problem-building-on-windows-td4397652.html#a4397665 I should have changed it myself. I have the same fix as Steven proposed, but I don't really know the protocol for committing changes? I have developer access but I didn't want to just plough ahead, apologies. Rory. On 6 June 2011 21:45, Steven Yi |
Date | 2011-06-06 22:59 |
From | Steven Yi |
Subject | Re: [Csnd] scons madness? |
Well, I committed the change. :) You should just commit any fixes you have, IMO. We'll all get them and will review them when to update. On Mon, Jun 6, 2011 at 5:28 PM, Rory Walsh |