gcc compiler options on MAC OSX
Ed Kelly
morph_2016 at yahoo.co.uk
Mon Sep 18 20:08:41 CEST 2006
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
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 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.aubio.org/pipermail/aubio-user/attachments/20060918/59f7b8a5/attachment.html>
More information about the aubio-user
mailing list