0

我正在尝试编译自动天赋插件 (http://tombaran.info/autotalent.html) 以用作 Mac 上的 LADSPA Audacity 插件。我在 linux 上正确地遵循了指示,但我想知道如何为 Mac 构建一个版本,如果可能的话。

我下载了 0.2 源代码,然后运行“make”。但是我收到以下错误:

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 文件,但已生成 .o 文件。这是一个容易解决的问题吗?

谢谢!

4

1 回答 1

0

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
于 2012-05-27T11:59:24.727 回答