[Clam-devel] Re: Mac PPC build / SCons problems (was Clam-devel Digest, Vol 21, Issue 55)

David García Garzón dgarcia at iua.upf.edu
Thu Aug 14 12:21:54 PDT 2008


being a kludge to be solved substitute lines 170-174 on the scons:

fftwlib = "fftw3"
fftwlibpath = [os.path.join(env['prefix'],'lib')]
sndfilelib = 'sndfile'
programs += [ env.Program(target='OnsetExtractor', source = onsetSources, 
LIBS=[fftwlib,sndfilelib], LIBPATH=fftwlibpath) ]

with:

env.ParseConfig('pkg-config --cflags --libs fftw3 sndfile')
programs += [ env.Program(target='OnsetExtractor', source = onsetSources )]

maybe the names of the modules are not fftw3 or sndfile. so if it fails just 
search the proper names in the lib/pkgconfig/ directory. You have them since 
they are dependencies of the libraries.



On Dijous 14 Agost 2008, bennett kolasinski wrote:
> OK, I updated SCons to 1.0 (I didn't have to use macports after all-- SCons
> is quite easy to install after all! score 1 for python!) and NE as well as
> Annotator/vmqt built fine.  I'm still having problems building Annotator,
> though.  Issuing 'scons' for Annotator gives this error:
>
>     scons: *** Path for option prefix does not exist:
>
> ...and then when you set 'prefix', you get the same error but for
> clam_prefix.  So I invoked scons with clam_prefix and prefix both set to
> /usr/local, and I got the following warnings with every file that was
> compiling:
>
> <command line>:1:1: warning: "RESOURCES_BASE" redefined
> <command line>:1:1: warning: this is the location of the previous
> definition
>
> ...and then the build failed when trying to link the OnsetExtractor:
> ld: library not found for -lfftw3
>
> but I have fftw-3 and fftw-3-single installed.  little more help please?
>
> so we're *close* to the PPC mac build.. I hope I hope...
>
> B
>
>
> On Wed, Aug 13, 2008 at 10:27 PM, David García Garzón
>
> <dgarcia at iua.upf.edu>wrote:
> > Yes, they also released yesterday. Scons 1.0 just adds documentation to
> > 0.85
> > which is the one required to compile. So 1.0 will be just fine. We should
> > add
> > a restriction on the version so that you get a version missmatch error
> > instead a missing method error.
> >
> > Don't worry for the delay. Mac users are very patient, aren't they? ;-)
> >
> > David.
> >
> > On Dijous 14 Agost 2008, bennett kolasinski wrote:
> > > Hm... still having the build errors after having macports rebuild all
> > > the packages on my system over the course of the day.  Here's the
> > > version of SCons I'm using:
> > >
> > > SCons by Steven Knight et al.:
> > > script: v0.97.D001, 2007/05/17 11:35:19, by knight on roxbury
> > > engine: v0.97.D001, 2007/05/17 11:35:19, by knight on roxbury
> > > Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007 The SCons
> >
> > Foundation
> >
> > > I see there is a 1.0 version of SCons on the scons website... I'll work
> >
> > on
> >
> > > getting that running and give building the GUI CLAM apps on my pokey G4
> > > then... sorry for the delay!
> > >
> > > B
> > >
> > > > ---------- Forwarded message ----------
> > > > From: David García Garzón <dgarcia at iua.upf.edu>
> > > > To: clam-devel at llistes.projectes.lafarga.org
> > > > Date: Wed, 13 Aug 2008 14:41:43 +0200
> > > > Subject: Re: {Disarmed} [Clam-devel] Re: Clam-devel Digest, Vol 21,
> >
> > Issue
> >
> > > > 53
> > > > You need to use a newer version of SCons.
> > > >
> > > > On Dimecres 13 Agost 2008, bennett kolasinski wrote:
> > > > > ah... thanks, Natanael.  Now CLAM's having trouble figuring out
> > > > > where
> > > >
> > > > QTDIR
> > > >
> > > > > is.  I installed QT4 to macports' default install location on
> >
> > Leopard-
> >
> > > > > /opt/local - and I see a number of qt-related libraries in
> > > >
> > > > /opt/local/lib--
> > > >
> > > > > but setting QTDIR to either of those isn't working; I get the
> > > > > following:
> > > > >
> > > > > AttributeError: SConsEnvironment instance has no attribute
> >
> > 'AddMethod':
> > > > >   File "/Volumes/devo/clam/trunk/Annotator/vmqt/SConstruct", line
> > > > > 40: env.Tool('qt4', toolpath=[clam_sconstoolspath])
> > > > >   File "/opt/local/lib/scons-0.97/SCons/Environment.py", line 1340:
> > > > >     tool(self)
> > > > >   File "/opt/local/lib/scons-0.97/SCons/Tool/__init__.py", line
> > > > > 157: apply(self.generate, ( env, ) + args, kw)
> > > > >   File "/usr/local/share/clam/sconstools/qt4.py", line 390:
> > > > >     env.AddMethod(enable_modules, "EnableQt4Modules")
> > > > >
> > > > >
> > > > > Any suggestions?  Hopefully this will be all I need to get the
> > > > > builds going!
> >
> > --
> > David García Garzón
> > (Work) dgarcia at iua dot upf anotherdot es
> > http://www.iua.upf.edu/~dgarcia <http://www.iua.upf.edu/%7Edgarcia>



-- 
David García Garzón
(Work) dgarcia at iua dot upf anotherdot es
http://www.iua.upf.edu/~dgarcia
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20080814/e62b5c2a/attachment-0001.sig>


More information about the clam-devel mailing list