aubio


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc compiler options on MAC OSX



Hi Ed and all,

sorry for the lag, back online now, after a few holidays...

On Mon, Sep 18, 2006 at 07:08:41PM +0100, Ed Kelly wrote:
> OK here's what I found.
> 
> The pkg_config problem was solved by installing pkg_config in /usr instead of /usr/local (./configure --prefix=/usr) and the PD object compiled successfully using 
>   gcc -bundle -undefined suppress -flat_namespace -o aubio.pd_darwin *.o

arg, i forgot you need to link against the aubio library. something like
the following should work:

gcc -bundle -undefined suppress -flat_namespace -laubio -L../src/.libs -o aubio.pd_darwin *.o

let me know if that works for you. i will soon update the fix in the
bazaar tree and release 0.3.2.

best, paul

> 
> but...
> 
> PD can't load the object. Despite doing a make install, and all the standalone aubio programs installed successfully, PD's output window gives the message:
> 
> link error 0  dyld: /Users/lccuser/Edkelly/Software/Pd-0.39-2.app/Contents/Resources/Scripts/../bin/pd undefined symbols:
> _aubio_beattracking_do
> _aubio_onsetdetection
> _aubio_peakpick_pimrt
> _aubio_peakpick_pimrt_wt
> 
> and so on. Then of course:
> aubio: can't load library
> 
> So it is not linked to the libaubio files? I am not sure how to resolve this...
> 
> Best,
> Ed
> 
> 
> Paul Brossier <piem@altern.org> wrote: Hi Ed,
> 
> Thanks for your report.
> 
> On Tue, Aug 15, 2006 at 03:11:53PM +0100, Ed Kelly wrote:
> > Hi Paul,
> > 
> > I'm having some problems building the aubio pd
> > externals on Mac OSX. I had to set PKG_CONFIG_PATH
> > environment variables for the sources for libsndfile,
> > libsamplerate and fftw3 manually, then the
> > libtoolkludge passes a couple of unrecognized options
> > to gcc and ld.
> 
> I think the pkg-config issue as a bug in pkg-config, or maybe a missing
> compilation flag to it. If package descriptions get installed by default
> in some location, then pkg-config should look for them in that location
> by default. There is not much we could do in aubio to solve it anyway.
> 
> > gcc -shared option is not supported in Apple's gcc
> > 3.3, and ld -export_dynamic does not work either. the
> > first is documented here:
> > http://developer.apple.com/documentation/DeveloperTools/gcc-3.3/gcc/Link-Options.html
> > but 
> > I cannot find documentation on the ld option
> > -export_dynamic.
> 
> Yes, the PD plugin lacks the correct command line to create the external
> on OS X. Reading other external Makefiles, it seems the following
> command should create aubio.pd_darwin correctly:
> 
>   gcc -bundle -undefined suppress -flat_namespace -o aubio.pd_darwin *.o
> 
> or:
> 
>   gcc -bundle -bundle_loader 
>  -flat_namespace -o aubio.pd_darwin *.o
> 
> See also http://lists.puredata.info/pipermail/pd-dev/2003-05/001238.html
> 
> I don't have access to a OS X at the moment. Let us know if this works for you!
> 
> Thanks, Paul
> 
> 
> -- 
> To unsubscribe, send mail to aubio-unsubscribe@piem.org.
> 
> 
> 
> 
> ->
> ->
> -->
> --->
> ----->
> -------->
> -------------> 
> ---------------------> 
> 
> "Genius is attention to detail" Louis Pasteur
>  		
> ---------------------------------
>  All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine


-- 
To unsubscribe, send mail to aubio-unsubscribe@piem.org.