[Clam-devel] Re: CLAM installation on Mac OS X 10.5.2 - "vorbisfile vorbisenc pkg-config file"

Pau Arumí parumi at iua.upf.edu
Mon Mar 24 10:47:09 PDT 2008


On dl, 2008-03-24 at 13:18 -0400, Han, Yushen wrote:
> ( I am sorry that I replied to the digest instead of my own thread last time. )
> 
> Hi, Pau
> 
> Thank you very much for troubleshooting with me!
> 
> Actually I was able to build CLAM only.
> The componets SMSTools (which I need the most) and NetworkEditor gave
> similar error messages when I try to "scon configure".
> 
> -------------------------------------------------------------------------------
> yushen-hans-macbook:SMSTools yushen$ scons configure
> scons: Reading SConscript files ...
> 
> scons: *** Path for option prefix does not exist:
> File "/Users/yushen/Desktop/CLAM/trunk/SMSTools/SConstruct", line 23, in ?
> -------------------------------------------------------------------------------

Ok, let's generate some more Google based CLAM documentation :-) 

This is the usual option in build scripts to specify in which prefix
files will be installed (under bin/ lib/ include/ subdirs). See
NetworkEditor/INSTALL for examples. Or see scons --help

CLAM apps also need the clam_path option. So you need to do something
like:

$ scons prefix=/usr/local clam_prefix=/usr/local

clam_prefix tells where scons have to search the clam libs and header
files. So it must be consistent with the prefix option in CLAM build.
You can see this in clam/CLAM/options.cache.
I think that the CLAM prefix in OSX is /usr/local by default but I'm not
100% sure since I use a local dir in order to have multiple sandboxes
while developing.

Pau



> In this "SConstruct" file, line 23 is
> env = Environment(ENV=os.environ, tools=['default'], options=options)
> 
> Similarly,
> it complained about line 28 of SConstruct for NetworkEditor
> env = Environment(ENV=os.environ, tools=['default','qt'], options=options)
> 
> 
> Do you have any hint for correcting those configurations? Thank you!
> 
> Best regards,
> Han, Yushen
> 
> > Hi, Pau
> > Thank you for letting me know that the pkgconfig problem was a bug!
> 
> Actually this is a reason for doing a new release ASAP.
> 
> > I was getting the source from a tarball instead of SVN.
> > Now I switched to SVN and am able to build CLAM, Annotato,
> > NetworkEditor, and SMSTools.
> > "sudo scons install" finally gave:
> >
> > ...
> > Install file: "scons/libs/audioio/libclam_audioio.1.2.1.dylib" as
> > "/usr/local/lib/libclam_audioio.1.2.1.dylib"
> > Linking linker name /usr/local/lib/libclam_audioio.dylib to
> > /usr/local/lib/libclam_audioio.1.2.1.dylib
> > Install file: "scons/libs/audioio/clam_audioio.pc" as
> > "/usr/local/lib/pkgconfig/clam_audioio.pc"
> > generating /usr/local/lib/libclam_audioio.1.dylib with /sbin/ldconfig -n
> > scons: done building targets.
> 
> This log seems sane. You have the clam libs installed.
> 
> > So far no executable is built.
> 
> But you said that you were able to build the apps (Annotator, NE,
> SMSTools) ??
> For example, if build in NetworkEditor directory was successful you
> should be able to run it issuing ./NetworkEditor
> 
> Also you can do  scons package to obtain a bundled app (.app) and
> installable .dmg package.
> 
> > According to http://iua-share.upf.es/wikis/clam/index.php/SMSToolsDetails
> > it seems that I need to compile either SMSTools GUI or SMSConsole.
> > However, I could not find the file SMSTools.cxx anywhere
> > ( there was a file QtSMSTools.cxx but it did not seem to be the right file. )
> 
> The fltk version is deprecated and so SMSTools.cxx. QtSMSTools.css is
> the current source with the "main" function.
> But (qt) SMSTools depend on Qt3 not 4. And I got problems installing
> both versions of mac ports. So I desisted. (In the past we built
> SMSTools using non-ports version of Qt).
> So this might well be the problem you'll face to build SMSTools on
> MacOSX
> 
> Pau
> 
> 
> On Mon, Mar 24, 2008 at 1:54 AM, Han, Yushen <yushen.han at gmail.com> wrote:
> > Hi, everyone
> >
> >  I am new to clam and was trying to install CLAM onto my Mac (OS X
> >  10.5.2) this evening.
> >
> >  Following http://iua-share.upf.edu/wikis/clam/index.php/Devel/Mac_OSX_build
> >  , I installed dependencies required by CLAM with Macports successfully
> >  but could not build CLAM.
> >
> >  When I ran "scons configure", it stopped at
> >
> >  ############################################
> >  ### CLAM AUDIOIO DEPENDENCIES CHECKING   ###
> >  ############################################
> >  Checking for C header file sndfile.h... yes
> >  Checking for sf_open_fd() in C library sndfile... yes
> >  Checking that libsndfile sample program compiles...yes
> >  Checking that libsndfile sample program links...yes
> >  Checking that libsndfile sample program runs... yes
> >  Checking for vorbisfile vorbisenc pkg-config file... no
> >
> >   "scons" and "sudo scons install" stopped at the same place.
> >  I opened config.log file and it said
> >
> >  ......
> >  scons: Configure: Checking for vorbisfile vorbisenc pkg-config file...
> >  PKG_CONFIG_PATH='' --cflags --libs vorbisfile vorbisenc
> >  sh: --cflags: command not found
> >  scons: Configure: no
> >
> >  I think this is the problem but do not how to fix it. Could you please
> >  give me some suggestions? Thank you!
> >
> >  Also, "INSTALL" said that I needed to "disable LADSPA support when
> >  building for Mac. " Does this have anything to do with the failure of
> >  configure? How could I disable LADSPA?  Any of your information will
> >  be appreciated!
> >
> >  Best regards,
> >  Han, Yushen
> >
> 
> _______________________________________________
> Clam-devel mailing list
> Clam-devel at llistes.projectes.lafarga.org
> https://llistes.projectes.lafarga.org/cgi-bin/mailman/listinfo/clam-devel





More information about the clam-devel mailing list