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

Han, Yushen yushen.han at gmail.com
Mon Mar 24 10:18:59 PDT 2008


( 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 ?
-------------------------------------------------------------------------------

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
>




More information about the clam-devel mailing list