compiling auto-talent plug-in on OSX

383 Views Asked by At

I am trying to compile the auto-talent plug-in (http://tombaran.info/autotalent.html) to use as a LADSPA Audacity plug-in on Mac. I followed the directions correctly on linux but I was wondering how to build a version for Mac, if at all possible.

I downloaded the 0.2 source, and ran "make". however I get the following error:

gcc -I. -O3 -Wall -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -c -fPIC -DPIC autotalent.c mayer_fft.c
gcc -nostartfiles -shared -Wl,-Bsymbolic -lc -lm -lrt -o autotalent.so autotalent.o mayer_fft.o
ld: unknown option: -Bsymbolic
collect2: ld returned 1 exit status
make: *** [autotalent.so] Error 1

So no .so file is generated but the .o files have been made. Is this by any chance an easy fix?

Thanks!

1

There are 1 best solutions below

1
On

OSX has a different form of shared library to Linux. See Apple's Dynamic Library Programming Topics.

To create a shared library the command is like

gcc -dynamiclib  autotalent.c mayer_fft.c -current_version 1.0 -compatibility_version 1.0 -fvisibility=hidden -o lib autotalent.A.dylib