scons error (nasty one)
Date | 2007-08-16 10:55 |
From | Victor Lazzarini |
Subject | scons error (nasty one) |
Can anyone explain this scons error with latest CVS? On Windows, FLTK widgets will not build, I get this from scons scons: ***ParentOfRoot instance has no attribute 'must_be_a_Dir' which looks like a Python error message saying that that class (from scons, node/FS.py) does not have that particular attribute defined) After about two hours of scratching my head, I traced the problem to the building of the FLTK module, so if I do scons useFLTK=0 It builds. Has anyone changed SConstruct, particularly in terms of build options, directories etc that might have caused this? It seems to be happening on Windows only, although I have to check Linux more closely) Victor Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth |
Date | 2007-08-16 11:10 |
From | Victor Lazzarini |
Subject | Re: scons error (nasty one) |
Only on Windows. It is related to widgets.cpp, because when I remove it from the source list for that module (SConstruct, line 1237), it builds. That narrows it a bit more. Any suggestions? At 10:55 16/08/2007, you wrote: >Can anyone explain this scons error with latest CVS? >On Windows, FLTK widgets will not build, I get this from scons > >scons: ***ParentOfRoot instance has no attribute 'must_be_a_Dir' > >which looks like a Python error message saying that that class >(from scons, node/FS.py) does not have that particular attribute defined) > >After about two hours of scratching my head, I traced the problem >to the building of the FLTK module, so if I do > >scons useFLTK=0 > >It builds. > >Has anyone changed SConstruct, particularly in terms of build >options, directories etc that might have caused this? > >It seems to be happening on Windows only, although I have to >check Linux more closely) > >Victor >Victor Lazzarini >Music Technology Laboratory >Music Department >National University of Ireland, Maynooth > >-- >Send bugs reports to this list. >To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth |
Date | 2007-08-16 11:49 |
From | Victor Lazzarini |
Subject | identified (was Re: [Csnd] scons error (nasty one)) |
It seems this line confuses scons: InOut/widglobals.h, 61: #include "Opcodes/vst4cs/src/vsthost.h" Although not used in the compilation, scons seems to read the file and gets confused. If I change it to #include "vsthost.h" scons is OK with it. It looks like scons is unable to follow the relative path on Windows. Suggestions for a fix? Victor At 11:10 16/08/2007, you wrote: >Only on Windows. It is related to widgets.cpp, because when >I remove it from the source list for that module (SConstruct, line 1237), >it builds. > >That narrows it a bit more. Any suggestions? > >At 10:55 16/08/2007, you wrote: > >>Can anyone explain this scons error with latest CVS? >>On Windows, FLTK widgets will not build, I get this from scons >> >>scons: ***ParentOfRoot instance has no attribute 'must_be_a_Dir' >> >>which looks like a Python error message saying that that class >>(from scons, node/FS.py) does not have that particular attribute defined) >> >>After about two hours of scratching my head, I traced the problem >>to the building of the FLTK module, so if I do >> >>scons useFLTK=0 >> >>It builds. >> >>Has anyone changed SConstruct, particularly in terms of build >>options, directories etc that might have caused this? >> >>It seems to be happening on Windows only, although I have to >>check Linux more closely) >> >>Victor >>Victor Lazzarini >>Music Technology Laboratory >>Music Department >>National University of Ireland, Maynooth >> >>-- >>Send bugs reports to this list. >>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk > >Victor Lazzarini >Music Technology Laboratory >Music Department >National University of Ireland, Maynooth > >-- >Send bugs reports to this list. >To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth |
Date | 2007-08-16 11:54 |
From | Cesare Marilungo |
Subject | Re: scons error (nasty one) |
Victor Lazzarini wrote: > > Can anyone explain this scons error with latest CVS? > On Windows, FLTK widgets will not build, I get this from scons > > scons: ***ParentOfRoot instance has no attribute 'must_be_a_Dir' Recently, I was having this error on Gnu/Linux too, when I rebuilt csound from cvs on a fresh Slackware 12 installation. IIRC, I had to disable csound5gui and cseditor to make it build. And in fact my installation lacks csound5gui, the cseditor and everything that needs FLTK. - c. > > which looks like a Python error message saying that that class > (from scons, node/FS.py) does not have that particular attribute defined) > > After about two hours of scratching my head, I traced the problem > to the building of the FLTK module, so if I do > > scons useFLTK=0 > > It builds. > > Has anyone changed SConstruct, particularly in terms of build > options, directories etc that might have caused this? > > It seems to be happening on Windows only, although I have to > check Linux more closely) > > Victor > Victor Lazzarini > Music Technology Laboratory > Music Department > National University of Ireland, Maynooth > |
Date | 2007-08-16 12:29 |
From | Victor Lazzarini |
Subject | Re: scons error (nasty one) |
Well, now we know what the problem is, it will be fixed. It's a scons thing, it gets confused with pathnames of header files. You should be able to build with FLTK by removing the offending line in widglobals.h; I think it is not doing anything anyway because the token it depends on is not defined anywhere. Victor At 11:54 16/08/2007, you wrote: >Victor Lazzarini wrote: >> >>Can anyone explain this scons error with latest CVS? >>On Windows, FLTK widgets will not build, I get this from scons >> >>scons: ***ParentOfRoot instance has no attribute 'must_be_a_Dir' > >Recently, I was having this error on Gnu/Linux too, when I rebuilt csound >from cvs on a fresh Slackware 12 installation. > >IIRC, I had to disable csound5gui and cseditor to make it build. And in >fact my installation lacks csound5gui, the cseditor and everything that >needs FLTK. > >- c. > >> >>which looks like a Python error message saying that that class >>(from scons, node/FS.py) does not have that particular attribute defined) >> >>After about two hours of scratching my head, I traced the problem >>to the building of the FLTK module, so if I do >> >>scons useFLTK=0 >> >>It builds. >> >>Has anyone changed SConstruct, particularly in terms of build >>options, directories etc that might have caused this? >> >>It seems to be happening on Windows only, although I have to >>check Linux more closely) >> >>Victor >>Victor Lazzarini >>Music Technology Laboratory >>Music Department >>National University of Ireland, Maynooth > >-- >Send bugs reports to this list. >To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth |
Date | 2007-08-16 13:01 |
From | Cesare Marilungo |
Subject | Re: scons error (nasty one) |
Victor Lazzarini wrote: > Well, now we know what the problem is, it will be fixed. It's a scons > thing, it gets confused with pathnames of header files. You should be > able to build with FLTK by removing the offending line in widglobals.h; > I think it is not doing anything anyway because the token it depends > on is not defined anywhere. Forget what I've said; I've just realized that FLTK wasn't present on a fresh Slackware 12. I didn't notice it since scons didn't complain. Building with csound5gui still fails, though (with fltk 1.1.7, gcc4.1.2): frontends/fltk_gui/CsoundGUIConsole.o: In function `CsoundGUIConsole::updateDisplay(bool)': CsoundGUIConsole.cpp:(.text+0x141): undefined reference to `Fl::lock()' CsoundGUIConsole.cpp:(.text+0x1c1): undefined reference to `Fl::unlock()' frontends/fltk_gui/CsoundGUIConsole.o: In function `CsoundGUIConsole::consoleThreadFunc(void*)': CsoundGUIConsole.cpp:(.text+0x4da): undefined reference to `Fl::lock()' CsoundGUIConsole.cpp:(.text+0x512): undefined reference to `Fl::unlock()' frontends/fltk_gui/main.o: In function `main': main.cpp:(.text+0x9e): undefined reference to `Fl::lock()' collect2: ld returned 1 exit status scons: *** [csound5gui] Error 1 scons: building terminated because of errors. -c. > > Victor > > At 11:54 16/08/2007, you wrote: >> Victor Lazzarini wrote: >>> >>> Can anyone explain this scons error with latest CVS? >>> On Windows, FLTK widgets will not build, I get this from scons >>> >>> scons: ***ParentOfRoot instance has no attribute 'must_be_a_Dir' >> >> Recently, I was having this error on Gnu/Linux too, when I rebuilt >> csound from cvs on a fresh Slackware 12 installation. >> >> IIRC, I had to disable csound5gui and cseditor to make it build. And >> in fact my installation lacks csound5gui, the cseditor and everything >> that needs FLTK. >> >> - c. >> >>> >>> which looks like a Python error message saying that that class >>> (from scons, node/FS.py) does not have that particular attribute >>> defined) >>> >>> After about two hours of scratching my head, I traced the problem >>> to the building of the FLTK module, so if I do >>> >>> scons useFLTK=0 >>> >>> It builds. >>> >>> Has anyone changed SConstruct, particularly in terms of build >>> options, directories etc that might have caused this? >>> >>> It seems to be happening on Windows only, although I have to >>> check Linux more closely) >>> >>> Victor >>> Victor Lazzarini >>> Music Technology Laboratory >>> Music Department >>> National University of Ireland, Maynooth >> >> -- >> Send bugs reports to this list. >> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk > > Victor Lazzarini > Music Technology Laboratory > Music Department > National University of Ireland, Maynooth > |
Date | 2007-08-16 13:08 |
From | Cesare Marilungo |
Subject | Re: scons error (nasty one) |
And, by the way, FLTK opcodes don't work either. - c. Cesare Marilungo wrote: > Victor Lazzarini wrote: >> Well, now we know what the problem is, it will be fixed. It's a scons >> thing, it gets confused with pathnames of header files. You should be >> able to build with FLTK by removing the offending line in widglobals.h; >> I think it is not doing anything anyway because the token it depends >> on is not defined anywhere. > Forget what I've said; I've just realized that FLTK wasn't present on > a fresh Slackware 12. I didn't notice it since scons didn't complain. > > Building with csound5gui still fails, though (with fltk 1.1.7, gcc4.1.2): > > frontends/fltk_gui/CsoundGUIConsole.o: In function > `CsoundGUIConsole::updateDisplay(bool)': > CsoundGUIConsole.cpp:(.text+0x141): undefined reference to `Fl::lock()' > CsoundGUIConsole.cpp:(.text+0x1c1): undefined reference to `Fl::unlock()' > frontends/fltk_gui/CsoundGUIConsole.o: In function > `CsoundGUIConsole::consoleThreadFunc(void*)': > CsoundGUIConsole.cpp:(.text+0x4da): undefined reference to `Fl::lock()' > CsoundGUIConsole.cpp:(.text+0x512): undefined reference to `Fl::unlock()' > frontends/fltk_gui/main.o: In function `main': > main.cpp:(.text+0x9e): undefined reference to `Fl::lock()' > collect2: ld returned 1 exit status > scons: *** [csound5gui] Error 1 > scons: building terminated because of errors. > > -c. >> >> Victor >> >> At 11:54 16/08/2007, you wrote: >>> Victor Lazzarini wrote: >>>> >>>> Can anyone explain this scons error with latest CVS? >>>> On Windows, FLTK widgets will not build, I get this from scons >>>> >>>> scons: ***ParentOfRoot instance has no attribute 'must_be_a_Dir' >>> >>> Recently, I was having this error on Gnu/Linux too, when I rebuilt >>> csound from cvs on a fresh Slackware 12 installation. >>> >>> IIRC, I had to disable csound5gui and cseditor to make it build. And >>> in fact my installation lacks csound5gui, the cseditor and >>> everything that needs FLTK. >>> >>> - c. >>> >>>> >>>> which looks like a Python error message saying that that class >>>> (from scons, node/FS.py) does not have that particular attribute >>>> defined) >>>> >>>> After about two hours of scratching my head, I traced the problem >>>> to the building of the FLTK module, so if I do >>>> >>>> scons useFLTK=0 >>>> >>>> It builds. >>>> >>>> Has anyone changed SConstruct, particularly in terms of build >>>> options, directories etc that might have caused this? >>>> >>>> It seems to be happening on Windows only, although I have to >>>> check Linux more closely) >>>> >>>> Victor >>>> Victor Lazzarini >>>> Music Technology Laboratory >>>> Music Department >>>> National University of Ireland, Maynooth >>> >>> -- >>> Send bugs reports to this list. >>> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk >> >> Victor Lazzarini >> Music Technology Laboratory >> Music Department >> National University of Ireland, Maynooth >> > |
Date | 2007-08-16 13:27 |
From | Victor Lazzarini |
Subject | Re: scons error (nasty one) |
That's because you need to have FLTK with --enable-threads, for Fl::lock() to be present. At 13:01 16/08/2007, you wrote: >Victor Lazzarini wrote: >>Well, now we know what the problem is, it will be fixed. It's a scons >>thing, it gets confused with pathnames of header files. You should be >>able to build with FLTK by removing the offending line in widglobals.h; >>I think it is not doing anything anyway because the token it depends >>on is not defined anywhere. >Forget what I've said; I've just realized that FLTK wasn't present on a >fresh Slackware 12. I didn't notice it since scons didn't complain. > >Building with csound5gui still fails, though (with fltk 1.1.7, gcc4.1.2): > >frontends/fltk_gui/CsoundGUIConsole.o: In function >`CsoundGUIConsole::updateDisplay(bool)': >CsoundGUIConsole.cpp:(.text+0x141): undefined reference to `Fl::lock()' >CsoundGUIConsole.cpp:(.text+0x1c1): undefined reference to `Fl::unlock()' >frontends/fltk_gui/CsoundGUIConsole.o: In function >`CsoundGUIConsole::consoleThreadFunc(void*)': >CsoundGUIConsole.cpp:(.text+0x4da): undefined reference to `Fl::lock()' >CsoundGUIConsole.cpp:(.text+0x512): undefined reference to `Fl::unlock()' >frontends/fltk_gui/main.o: In function `main': >main.cpp:(.text+0x9e): undefined reference to `Fl::lock()' >collect2: ld returned 1 exit status >scons: *** [csound5gui] Error 1 >scons: building terminated because of errors. > >-c. >> >>Victor >> >>At 11:54 16/08/2007, you wrote: >>>Victor Lazzarini wrote: >>>> >>>>Can anyone explain this scons error with latest CVS? >>>>On Windows, FLTK widgets will not build, I get this from scons >>>> >>>>scons: ***ParentOfRoot instance has no attribute 'must_be_a_Dir' >>> >>>Recently, I was having this error on Gnu/Linux too, when I rebuilt >>>csound from cvs on a fresh Slackware 12 installation. >>> >>>IIRC, I had to disable csound5gui and cseditor to make it build. And in >>>fact my installation lacks csound5gui, the cseditor and everything that >>>needs FLTK. >>> >>>- c. >>> >>>> >>>>which looks like a Python error message saying that that class >>>>(from scons, node/FS.py) does not have that particular attribute defined) >>>> >>>>After about two hours of scratching my head, I traced the problem >>>>to the building of the FLTK module, so if I do >>>> >>>>scons useFLTK=0 >>>> >>>>It builds. >>>> >>>>Has anyone changed SConstruct, particularly in terms of build >>>>options, directories etc that might have caused this? >>>> >>>>It seems to be happening on Windows only, although I have to >>>>check Linux more closely) >>>> >>>>Victor >>>>Victor Lazzarini >>>>Music Technology Laboratory >>>>Music Department >>>>National University of Ireland, Maynooth >>> >>>-- >>>Send bugs reports to this list. >>>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk >> >>Victor Lazzarini >>Music Technology Laboratory >>Music Department >>National University of Ireland, Maynooth > >-- >Send bugs reports to this list. >To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth |
Date | 2007-08-16 14:13 |
From | Cesare Marilungo |
Subject | Re: scons error (nasty one) |
Victor Lazzarini wrote: > That's because you need to have FLTK with --enable-threads, > for Fl::lock() to be present. Right. Compilation went ok after rebuilding FLTK with threads support, I just forgot this step. Sorry for the noise. Anyway, maybe I've discovered another problem: If I build with buildUtilities=1 scons the linker complains that it can't find -lcsound. So I had to build with buildUtilities=0, run install.py, ldconfig and then add the option to scons and rebuild again. - c. > > At 13:01 16/08/2007, you wrote: >> Victor Lazzarini wrote: >>> Well, now we know what the problem is, it will be fixed. It's a scons >>> thing, it gets confused with pathnames of header files. You should be >>> able to build with FLTK by removing the offending line in widglobals.h; >>> I think it is not doing anything anyway because the token it depends >>> on is not defined anywhere. >> Forget what I've said; I've just realized that FLTK wasn't present on >> a fresh Slackware 12. I didn't notice it since scons didn't complain. >> >> Building with csound5gui still fails, though (with fltk 1.1.7, >> gcc4.1.2): >> >> frontends/fltk_gui/CsoundGUIConsole.o: In function >> `CsoundGUIConsole::updateDisplay(bool)': >> CsoundGUIConsole.cpp:(.text+0x141): undefined reference to `Fl::lock()' >> CsoundGUIConsole.cpp:(.text+0x1c1): undefined reference to >> `Fl::unlock()' >> frontends/fltk_gui/CsoundGUIConsole.o: In function >> `CsoundGUIConsole::consoleThreadFunc(void*)': >> CsoundGUIConsole.cpp:(.text+0x4da): undefined reference to `Fl::lock()' >> CsoundGUIConsole.cpp:(.text+0x512): undefined reference to >> `Fl::unlock()' >> frontends/fltk_gui/main.o: In function `main': >> main.cpp:(.text+0x9e): undefined reference to `Fl::lock()' >> collect2: ld returned 1 exit status >> scons: *** [csound5gui] Error 1 >> scons: building terminated because of errors. >> >> -c. >>> >>> Victor >>> >>> At 11:54 16/08/2007, you wrote: >>>> Victor Lazzarini wrote: >>>>> >>>>> Can anyone explain this scons error with latest CVS? >>>>> On Windows, FLTK widgets will not build, I get this from scons >>>>> >>>>> scons: ***ParentOfRoot instance has no attribute 'must_be_a_Dir' >>>> >>>> Recently, I was having this error on Gnu/Linux too, when I rebuilt >>>> csound from cvs on a fresh Slackware 12 installation. >>>> >>>> IIRC, I had to disable csound5gui and cseditor to make it build. >>>> And in fact my installation lacks csound5gui, the cseditor and >>>> everything that needs FLTK. >>>> >>>> - c. >>>> >>>>> >>>>> which looks like a Python error message saying that that class >>>>> (from scons, node/FS.py) does not have that particular attribute >>>>> defined) >>>>> >>>>> After about two hours of scratching my head, I traced the problem >>>>> to the building of the FLTK module, so if I do >>>>> >>>>> scons useFLTK=0 >>>>> >>>>> It builds. >>>>> >>>>> Has anyone changed SConstruct, particularly in terms of build >>>>> options, directories etc that might have caused this? >>>>> >>>>> It seems to be happening on Windows only, although I have to >>>>> check Linux more closely) >>>>> >>>>> Victor >>>>> Victor Lazzarini >>>>> Music Technology Laboratory >>>>> Music Department >>>>> National University of Ireland, Maynooth >>>> >>>> -- >>>> Send bugs reports to this list. >>>> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk >>> >>> Victor Lazzarini >>> Music Technology Laboratory >>> Music Department >>> National University of Ireland, Maynooth >> >> -- >> Send bugs reports to this list. >> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk > > Victor Lazzarini > Music Technology Laboratory > Music Department > National University of Ireland, Maynooth > |
Date | 2007-08-16 14:50 |
From | Victor Lazzarini |
Subject | Re: scons error (nasty one) |
yes, that does not sound right. Although here I did not have that problem anywhere (Win, Linux, OSX). Are you using a static libcsound or dynamic? Victor At 14:13 16/08/2007, you wrote: >Victor Lazzarini wrote: >>That's because you need to have FLTK with --enable-threads, >>for Fl::lock() to be present. >Right. Compilation went ok after rebuilding FLTK with threads support, I >just forgot this step. Sorry for the noise. > >Anyway, maybe I've discovered another problem: > >If I build with buildUtilities=1 scons the linker complains that it can't >find -lcsound. So I had to build with buildUtilities=0, run install.py, >ldconfig and then add the option to scons and rebuild again. > >- c. >> >>At 13:01 16/08/2007, you wrote: >>>Victor Lazzarini wrote: >>>>Well, now we know what the problem is, it will be fixed. It's a scons >>>>thing, it gets confused with pathnames of header files. You should be >>>>able to build with FLTK by removing the offending line in widglobals.h; >>>>I think it is not doing anything anyway because the token it depends >>>>on is not defined anywhere. >>>Forget what I've said; I've just realized that FLTK wasn't present on a >>>fresh Slackware 12. I didn't notice it since scons didn't complain. >>> >>>Building with csound5gui still fails, though (with fltk 1.1.7, gcc4.1.2): >>> >>>frontends/fltk_gui/CsoundGUIConsole.o: In function >>>`CsoundGUIConsole::updateDisplay(bool)': >>>CsoundGUIConsole.cpp:(.text+0x141): undefined reference to `Fl::lock()' >>>CsoundGUIConsole.cpp:(.text+0x1c1): undefined reference to `Fl::unlock()' >>>frontends/fltk_gui/CsoundGUIConsole.o: In function >>>`CsoundGUIConsole::consoleThreadFunc(void*)': >>>CsoundGUIConsole.cpp:(.text+0x4da): undefined reference to `Fl::lock()' >>>CsoundGUIConsole.cpp:(.text+0x512): undefined reference to `Fl::unlock()' >>>frontends/fltk_gui/main.o: In function `main': >>>main.cpp:(.text+0x9e): undefined reference to `Fl::lock()' >>>collect2: ld returned 1 exit status >>>scons: *** [csound5gui] Error 1 >>>scons: building terminated because of errors. >>> >>>-c. >>>> >>>>Victor >>>> >>>>At 11:54 16/08/2007, you wrote: >>>>>Victor Lazzarini wrote: >>>>>> >>>>>>Can anyone explain this scons error with latest CVS? >>>>>>On Windows, FLTK widgets will not build, I get this from scons >>>>>> >>>>>>scons: ***ParentOfRoot instance has no attribute 'must_be_a_Dir' >>>>> >>>>>Recently, I was having this error on Gnu/Linux too, when I rebuilt >>>>>csound from cvs on a fresh Slackware 12 installation. >>>>> >>>>>IIRC, I had to disable csound5gui and cseditor to make it build. And >>>>>in fact my installation lacks csound5gui, the cseditor and everything >>>>>that needs FLTK. >>>>> >>>>>- c. >>>>> >>>>>> >>>>>>which looks like a Python error message saying that that class >>>>>>(from scons, node/FS.py) does not have that particular attribute defined) >>>>>> >>>>>>After about two hours of scratching my head, I traced the problem >>>>>>to the building of the FLTK module, so if I do >>>>>> >>>>>>scons useFLTK=0 >>>>>> >>>>>>It builds. >>>>>> >>>>>>Has anyone changed SConstruct, particularly in terms of build >>>>>>options, directories etc that might have caused this? >>>>>> >>>>>>It seems to be happening on Windows only, although I have to >>>>>>check Linux more closely) >>>>>> >>>>>>Victor >>>>>>Victor Lazzarini >>>>>>Music Technology Laboratory >>>>>>Music Department >>>>>>National University of Ireland, Maynooth >>>>> >>>>>-- >>>>>Send bugs reports to this list. >>>>>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk >>>> >>>>Victor Lazzarini >>>>Music Technology Laboratory >>>>Music Department >>>>National University of Ireland, Maynooth >>> >>>-- >>>Send bugs reports to this list. >>>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk >> >>Victor Lazzarini >>Music Technology Laboratory >>Music Department >>National University of Ireland, Maynooth > >-- >Send bugs reports to this list. >To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth |
Date | 2007-08-16 15:53 |
From | Andres Cabrera |
Subject | Re: identified (was Re: [Csnd] scons error (nasty one)) |
#ifdef WIN32 ? Andrés Victor Lazzarini escribió: > It seems this line confuses scons: > > InOut/widglobals.h, 61: > > #include "Opcodes/vst4cs/src/vsthost.h" > > Although not used in the compilation, scons seems to read > the file and gets confused. If I change it > to > > #include "vsthost.h" > > scons is OK with it. > > It looks like scons is unable to follow the relative > path on Windows. > > Suggestions for a fix? > > Victor > > > At 11:10 16/08/2007, you wrote: >> Only on Windows. It is related to widgets.cpp, because when >> I remove it from the source list for that module (SConstruct, line >> 1237), >> it builds. >> >> That narrows it a bit more. Any suggestions? >> >> At 10:55 16/08/2007, you wrote: >> >>> Can anyone explain this scons error with latest CVS? >>> On Windows, FLTK widgets will not build, I get this from scons >>> >>> scons: ***ParentOfRoot instance has no attribute 'must_be_a_Dir' >>> >>> which looks like a Python error message saying that that class >>> (from scons, node/FS.py) does not have that particular attribute >>> defined) >>> >>> After about two hours of scratching my head, I traced the problem >>> to the building of the FLTK module, so if I do >>> >>> scons useFLTK=0 >>> >>> It builds. >>> >>> Has anyone changed SConstruct, particularly in terms of build >>> options, directories etc that might have caused this? >>> >>> It seems to be happening on Windows only, although I have to >>> check Linux more closely) >>> >>> Victor >>> Victor Lazzarini >>> Music Technology Laboratory >>> Music Department >>> National University of Ireland, Maynooth >>> >>> -- >>> Send bugs reports to this list. >>> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk >> >> Victor Lazzarini >> Music Technology Laboratory >> Music Department >> National University of Ireland, Maynooth >> >> -- >> Send bugs reports to this list. >> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk > > Victor Lazzarini > Music Technology Laboratory > Music Department > National University of Ireland, Maynooth > |
Date | 2007-08-16 16:03 |
From | Victor Lazzarini |
Subject | Re: identified (was Re: [Csnd] scons error (nasty one)) |
yes, the first thing I tried. But it doesn't work, because when scons is parsing the header file it ignores any such directives. Victor At 15:53 16/08/2007, you wrote: >#ifdef WIN32 ? > >Andrés > >Victor Lazzarini escribió: >>It seems this line confuses scons: >> >>InOut/widglobals.h, 61: >> >>#include "Opcodes/vst4cs/src/vsthost.h" >> >>Although not used in the compilation, scons seems to read >>the file and gets confused. If I change it >>to >> >>#include "vsthost.h" >> >>scons is OK with it. >> >>It looks like scons is unable to follow the relative >>path on Windows. >> >>Suggestions for a fix? >> >>Victor >> >> >>At 11:10 16/08/2007, you wrote: >>>Only on Windows. It is related to widgets.cpp, because when >>>I remove it from the source list for that module (SConstruct, line 1237), >>>it builds. >>> >>>That narrows it a bit more. Any suggestions? >>> >>>At 10:55 16/08/2007, you wrote: >>> >>>>Can anyone explain this scons error with latest CVS? >>>>On Windows, FLTK widgets will not build, I get this from scons >>>> >>>>scons: ***ParentOfRoot instance has no attribute 'must_be_a_Dir' >>>> >>>>which looks like a Python error message saying that that class >>>>(from scons, node/FS.py) does not have that particular attribute defined) >>>> >>>>After about two hours of scratching my head, I traced the problem >>>>to the building of the FLTK module, so if I do >>>> >>>>scons useFLTK=0 >>>> >>>>It builds. >>>> >>>>Has anyone changed SConstruct, particularly in terms of build >>>>options, directories etc that might have caused this? >>>> >>>>It seems to be happening on Windows only, although I have to >>>>check Linux more closely) >>>> >>>>Victor >>>>Victor Lazzarini >>>>Music Technology Laboratory >>>>Music Department >>>>National University of Ireland, Maynooth >>>> >>>>-- >>>>Send bugs reports to this list. >>>>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk >>> >>>Victor Lazzarini >>>Music Technology Laboratory >>>Music Department >>>National University of Ireland, Maynooth >>> >>>-- >>>Send bugs reports to this list. >>>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk >> >>Victor Lazzarini >>Music Technology Laboratory >>Music Department >>National University of Ireland, Maynooth >-- >Send bugs reports to this list. >To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth |
Date | 2007-08-16 18:53 |
From | Cesare Marilungo |
Subject | Re: scons error (nasty one) |
Victor Lazzarini wrote: > yes, that does not sound right. Although here I did not have > that problem anywhere (Win, Linux, OSX). Are you using a > static libcsound or dynamic? Dynamic. - c. > > Victor > > At 14:13 16/08/2007, you wrote: >> Victor Lazzarini wrote: >>> That's because you need to have FLTK with --enable-threads, >>> for Fl::lock() to be present. >> Right. Compilation went ok after rebuilding FLTK with threads >> support, I just forgot this step. Sorry for the noise. >> >> Anyway, maybe I've discovered another problem: >> >> If I build with buildUtilities=1 scons the linker complains that it >> can't find -lcsound. So I had to build with buildUtilities=0, run >> install.py, ldconfig and then add the option to scons and rebuild again. >> >> - c. >>> >>> At 13:01 16/08/2007, you wrote: >>>> Victor Lazzarini wrote: >>>>> Well, now we know what the problem is, it will be fixed. It's a scons >>>>> thing, it gets confused with pathnames of header files. You should be >>>>> able to build with FLTK by removing the offending line in >>>>> widglobals.h; >>>>> I think it is not doing anything anyway because the token it depends >>>>> on is not defined anywhere. >>>> Forget what I've said; I've just realized that FLTK wasn't present >>>> on a fresh Slackware 12. I didn't notice it since scons didn't >>>> complain. >>>> >>>> Building with csound5gui still fails, though (with fltk 1.1.7, >>>> gcc4.1.2): >>>> >>>> frontends/fltk_gui/CsoundGUIConsole.o: In function >>>> `CsoundGUIConsole::updateDisplay(bool)': >>>> CsoundGUIConsole.cpp:(.text+0x141): undefined reference to >>>> `Fl::lock()' >>>> CsoundGUIConsole.cpp:(.text+0x1c1): undefined reference to >>>> `Fl::unlock()' >>>> frontends/fltk_gui/CsoundGUIConsole.o: In function >>>> `CsoundGUIConsole::consoleThreadFunc(void*)': >>>> CsoundGUIConsole.cpp:(.text+0x4da): undefined reference to >>>> `Fl::lock()' >>>> CsoundGUIConsole.cpp:(.text+0x512): undefined reference to >>>> `Fl::unlock()' >>>> frontends/fltk_gui/main.o: In function `main': >>>> main.cpp:(.text+0x9e): undefined reference to `Fl::lock()' >>>> collect2: ld returned 1 exit status >>>> scons: *** [csound5gui] Error 1 >>>> scons: building terminated because of errors. >>>> >>>> -c. >>>>> >>>>> Victor >>>>> >>>>> At 11:54 16/08/2007, you wrote: >>>>>> Victor Lazzarini wrote: >>>>>>> >>>>>>> Can anyone explain this scons error with latest CVS? >>>>>>> On Windows, FLTK widgets will not build, I get this from scons >>>>>>> >>>>>>> scons: ***ParentOfRoot instance has no attribute 'must_be_a_Dir' >>>>>> >>>>>> Recently, I was having this error on Gnu/Linux too, when I >>>>>> rebuilt csound from cvs on a fresh Slackware 12 installation. >>>>>> >>>>>> IIRC, I had to disable csound5gui and cseditor to make it build. >>>>>> And in fact my installation lacks csound5gui, the cseditor and >>>>>> everything that needs FLTK. >>>>>> >>>>>> - c. >>>>>> >>>>>>> >>>>>>> which looks like a Python error message saying that that class >>>>>>> (from scons, node/FS.py) does not have that particular attribute >>>>>>> defined) >>>>>>> >>>>>>> After about two hours of scratching my head, I traced the problem >>>>>>> to the building of the FLTK module, so if I do >>>>>>> >>>>>>> scons useFLTK=0 >>>>>>> >>>>>>> It builds. >>>>>>> >>>>>>> Has anyone changed SConstruct, particularly in terms of build >>>>>>> options, directories etc that might have caused this? >>>>>>> >>>>>>> It seems to be happening on Windows only, although I have to >>>>>>> check Linux more closely) >>>>>>> >>>>>>> Victor >>>>>>> Victor Lazzarini >>>>>>> Music Technology Laboratory >>>>>>> Music Department >>>>>>> National University of Ireland, Maynooth >>>>>> >>>>>> -- >>>>>> Send bugs reports to this list. >>>>>> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk >>>>> >>>>> Victor Lazzarini >>>>> Music Technology Laboratory >>>>> Music Department >>>>> National University of Ireland, Maynooth >>>> >>>> -- >>>> Send bugs reports to this list. >>>> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk >>> >>> Victor Lazzarini >>> Music Technology Laboratory >>> Music Department >>> National University of Ireland, Maynooth >> >> -- >> Send bugs reports to this list. >> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk > > Victor Lazzarini > Music Technology Laboratory > Music Department > National University of Ireland, Maynooth > |
Date | 2007-08-17 10:10 |
From | Victor Lazzarini |
Subject | Re: scons error (nasty one) |
It's very strange because I just built Csound from CVS using dynamicCsoundLibrary=1 and the linker found -lcsound OK (there was a -L. in the command line) (FC6 on a PPC). Can you copy here the scons error message you had ? Victor At 18:53 16/08/2007, you wrote: >Victor Lazzarini wrote: >>yes, that does not sound right. Although here I did not have >>that problem anywhere (Win, Linux, OSX). Are you using a >>static libcsound or dynamic? >Dynamic. > >- c. >> >>Victor >> >>At 14:13 16/08/2007, you wrote: >>>Victor Lazzarini wrote: >>>>That's because you need to have FLTK with --enable-threads, >>>>for Fl::lock() to be present. >>>Right. Compilation went ok after rebuilding FLTK with threads support, I >>>just forgot this step. Sorry for the noise. >>> >>>Anyway, maybe I've discovered another problem: >>> >>>If I build with buildUtilities=1 scons the linker complains that it >>>can't find -lcsound. So I had to build with buildUtilities=0, run >>>install.py, ldconfig and then add the option to scons and rebuild again. >>> >>>- c. >>>> >>>>At 13:01 16/08/2007, you wrote: >>>>>Victor Lazzarini wrote: >>>>>>Well, now we know what the problem is, it will be fixed. It's a scons >>>>>>thing, it gets confused with pathnames of header files. You should be >>>>>>able to build with FLTK by removing the offending line in widglobals.h; >>>>>>I think it is not doing anything anyway because the token it depends >>>>>>on is not defined anywhere. >>>>>Forget what I've said; I've just realized that FLTK wasn't present on >>>>>a fresh Slackware 12. I didn't notice it since scons didn't complain. >>>>> >>>>>Building with csound5gui still fails, though (with fltk 1.1.7, gcc4.1.2): >>>>> >>>>>frontends/fltk_gui/CsoundGUIConsole.o: In function >>>>>`CsoundGUIConsole::updateDisplay(bool)': >>>>>CsoundGUIConsole.cpp:(.text+0x141): undefined reference to `Fl::lock()' >>>>>CsoundGUIConsole.cpp:(.text+0x1c1): undefined reference to `Fl::unlock()' >>>>>frontends/fltk_gui/CsoundGUIConsole.o: In function >>>>>`CsoundGUIConsole::consoleThreadFunc(void*)': >>>>>CsoundGUIConsole.cpp:(.text+0x4da): undefined reference to `Fl::lock()' >>>>>CsoundGUIConsole.cpp:(.text+0x512): undefined reference to `Fl::unlock()' >>>>>frontends/fltk_gui/main.o: In function `main': >>>>>main.cpp:(.text+0x9e): undefined reference to `Fl::lock()' >>>>>collect2: ld returned 1 exit status >>>>>scons: *** [csound5gui] Error 1 >>>>>scons: building terminated because of errors. >>>>> >>>>>-c. >>>>>> >>>>>>Victor >>>>>> >>>>>>At 11:54 16/08/2007, you wrote: >>>>>>>Victor Lazzarini wrote: >>>>>>>> >>>>>>>>Can anyone explain this scons error with latest CVS? >>>>>>>>On Windows, FLTK widgets will not build, I get this from scons >>>>>>>> >>>>>>>>scons: ***ParentOfRoot instance has no attribute 'must_be_a_Dir' >>>>>>> >>>>>>>Recently, I was having this error on Gnu/Linux too, when I rebuilt >>>>>>>csound from cvs on a fresh Slackware 12 installation. >>>>>>> >>>>>>>IIRC, I had to disable csound5gui and cseditor to make it build. And >>>>>>>in fact my installation lacks csound5gui, the cseditor and >>>>>>>everything that needs FLTK. >>>>>>> >>>>>>>- c. >>>>>>> >>>>>>>> >>>>>>>>which looks like a Python error message saying that that class >>>>>>>>(from scons, node/FS.py) does not have that particular attribute >>>>>>>>defined) >>>>>>>> >>>>>>>>After about two hours of scratching my head, I traced the problem >>>>>>>>to the building of the FLTK module, so if I do >>>>>>>> >>>>>>>>scons useFLTK=0 >>>>>>>> >>>>>>>>It builds. >>>>>>>> >>>>>>>>Has anyone changed SConstruct, particularly in terms of build >>>>>>>>options, directories etc that might have caused this? >>>>>>>> >>>>>>>>It seems to be happening on Windows only, although I have to >>>>>>>>check Linux more closely) >>>>>>>> >>>>>>>>Victor >>>>>>>>Victor Lazzarini >>>>>>>>Music Technology Laboratory >>>>>>>>Music Department >>>>>>>>National University of Ireland, Maynooth >>>>>>> >>>>>>>-- >>>>>>>Send bugs reports to this list. >>>>>>>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk >>>>>> >>>>>>Victor Lazzarini >>>>>>Music Technology Laboratory >>>>>>Music Department >>>>>>National University of Ireland, Maynooth >>>>> >>>>>-- >>>>>Send bugs reports to this list. >>>>>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk >>>> >>>>Victor Lazzarini >>>>Music Technology Laboratory >>>>Music Department >>>>National University of Ireland, Maynooth >>> >>>-- >>>Send bugs reports to this list. >>>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk >> >>Victor Lazzarini >>Music Technology Laboratory >>Music Department >>National University of Ireland, Maynooth > >-- >Send bugs reports to this list. >To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth |
Date | 2007-08-17 17:24 |
From | Cesare Marilungo |
Subject | Re: scons error (nasty one) |
Attachments | SConstruct.tar.gz |
Victor Lazzarini wrote: > It's very strange because I just built Csound from CVS using > dynamicCsoundLibrary=1 > and the linker found -lcsound OK (there was a -L. in the command line) > (FC6 on a PPC). > Can you copy here the scons error message you had ? If I do: uninstall-csound and then: scons -c scons install build fails with: gcc -o atsa -Wl,-Bdynamic util/atsa_main.o -L. -L. -L/usr/local/lib -L. -L. -lcsound -lsndfile -ldl -lpthread -lm /usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld: cannot find -lcsound collect2: ld returned 1 exit status scons: *** [atsa] Error 1 scons: building terminated because of errors. Since the error is with atsa, I set: buildUtilities=0 It builds. Then I revert buildUtilities=1. Builds. I am attaching my SConstruct file. -c. > > Victor > > At 18:53 16/08/2007, you wrote: >> Victor Lazzarini wrote: >>> yes, that does not sound right. Although here I did not have >>> that problem anywhere (Win, Linux, OSX). Are you using a >>> static libcsound or dynamic? >> Dynamic. >> >> - c. >>> >>> Victor >>> >>> At 14:13 16/08/2007, you wrote: >>>> Victor Lazzarini wrote: >>>>> That's because you need to have FLTK with --enable-threads, >>>>> for Fl::lock() to be present. >>>> Right. Compilation went ok after rebuilding FLTK with threads >>>> support, I just forgot this step. Sorry for the noise. >>>> >>>> Anyway, maybe I've discovered another problem: >>>> >>>> If I build with buildUtilities=1 scons the linker complains that it >>>> can't find -lcsound. So I had to build with buildUtilities=0, run >>>> install.py, ldconfig and then add the option to scons and rebuild >>>> again. >>>> >>>> - c. >>>>> >>>>> At 13:01 16/08/2007, you wrote: >>>>>> Victor Lazzarini wrote: >>>>>>> Well, now we know what the problem is, it will be fixed. It's a >>>>>>> scons >>>>>>> thing, it gets confused with pathnames of header files. You >>>>>>> should be >>>>>>> able to build with FLTK by removing the offending line in >>>>>>> widglobals.h; >>>>>>> I think it is not doing anything anyway because the token it >>>>>>> depends >>>>>>> on is not defined anywhere. >>>>>> Forget what I've said; I've just realized that FLTK wasn't >>>>>> present on a fresh Slackware 12. I didn't notice it since scons >>>>>> didn't complain. >>>>>> >>>>>> Building with csound5gui still fails, though (with fltk 1.1.7, >>>>>> gcc4.1.2): >>>>>> >>>>>> frontends/fltk_gui/CsoundGUIConsole.o: In function >>>>>> `CsoundGUIConsole::updateDisplay(bool)': >>>>>> CsoundGUIConsole.cpp:(.text+0x141): undefined reference to >>>>>> `Fl::lock()' >>>>>> CsoundGUIConsole.cpp:(.text+0x1c1): undefined reference to >>>>>> `Fl::unlock()' >>>>>> frontends/fltk_gui/CsoundGUIConsole.o: In function >>>>>> `CsoundGUIConsole::consoleThreadFunc(void*)': >>>>>> CsoundGUIConsole.cpp:(.text+0x4da): undefined reference to >>>>>> `Fl::lock()' >>>>>> CsoundGUIConsole.cpp:(.text+0x512): undefined reference to >>>>>> `Fl::unlock()' >>>>>> frontends/fltk_gui/main.o: In function `main': >>>>>> main.cpp:(.text+0x9e): undefined reference to `Fl::lock()' >>>>>> collect2: ld returned 1 exit status >>>>>> scons: *** [csound5gui] Error 1 >>>>>> scons: building terminated because of errors. >>>>>> >>>>>> -c. >>>>>>> >>>>>>> Victor >>>>>>> >>>>>>> At 11:54 16/08/2007, you wrote: >>>>>>>> Victor Lazzarini wrote: >>>>>>>>> >>>>>>>>> Can anyone explain this scons error with latest CVS? >>>>>>>>> On Windows, FLTK widgets will not build, I get this from scons >>>>>>>>> >>>>>>>>> scons: ***ParentOfRoot instance has no attribute 'must_be_a_Dir' >>>>>>>> >>>>>>>> Recently, I was having this error on Gnu/Linux too, when I >>>>>>>> rebuilt csound from cvs on a fresh Slackware 12 installation. >>>>>>>> >>>>>>>> IIRC, I had to disable csound5gui and cseditor to make it >>>>>>>> build. And in fact my installation lacks csound5gui, the >>>>>>>> cseditor and everything that needs FLTK. >>>>>>>> >>>>>>>> - c. >>>>>>>> >>>>>>>>> >>>>>>>>> which looks like a Python error message saying that that class >>>>>>>>> (from scons, node/FS.py) does not have that particular >>>>>>>>> attribute defined) >>>>>>>>> >>>>>>>>> After about two hours of scratching my head, I traced the problem >>>>>>>>> to the building of the FLTK module, so if I do >>>>>>>>> >>>>>>>>> scons useFLTK=0 >>>>>>>>> >>>>>>>>> It builds. >>>>>>>>> >>>>>>>>> Has anyone changed SConstruct, particularly in terms of build >>>>>>>>> options, directories etc that might have caused this? >>>>>>>>> >>>>>>>>> It seems to be happening on Windows only, although I have to >>>>>>>>> check Linux more closely) >>>>>>>>> >>>>>>>>> Victor >>>>>>>>> Victor Lazzarini >>>>>>>>> Music Technology Laboratory >>>>>>>>> Music Department >>>>>>>>> National University of Ireland, Maynooth >>>>>>>> >>>>>>>> -- >>>>>>>> Send bugs reports to this list. >>>>>>>> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk >>>>>>> >>>>>>> Victor Lazzarini >>>>>>> Music Technology Laboratory >>>>>>> Music Department >>>>>>> National University of Ireland, Maynooth >>>>>> >>>>>> -- >>>>>> Send bugs reports to this list. >>>>>> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk >>>>> >>>>> Victor Lazzarini >>>>> Music Technology Laboratory >>>>> Music Department >>>>> National University of Ireland, Maynooth >>>> >>>> -- >>>> Send bugs reports to this list. >>>> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk >>> >>> Victor Lazzarini >>> Music Technology Laboratory >>> Music Department >>> National University of Ireland, Maynooth >> >> -- >> Send bugs reports to this list. >> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk > > Victor Lazzarini > Music Technology Laboratory > Music Department > National University of Ireland, Maynooth > |