| right, so it's just a matter of making a
dependency in SConstruct.
I'll have a check.
Victor
>
> Victor Lazzarini wrote:
> > Perhaps it's being built before csoundlib. Can you
> > check, after getting the error message, if there is
> > a libcsound.so in your top-level sources directory?
> >
> > Victor
> >
> >
> There isn't in fact. There's only the symbolic link:
>
> libcsound.so -> libcsound.so.5.1
>
> But libcsound.so.5.1 isn't built at this stage.
>
> -c.
>
> >> 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-s
> >> lackware-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
> >>>
> >>>
> >>
> >> [Attachment: SConstruct.tar.gz]
> >>
>
> --
> Send bugs reports to this list.
> To unsubscribe, send email to
> csound-unsubscribe@lists.bath.ac.uk |