使用 Xcode 进行 SoundTouch 编译?

SoundTouch compilation with Xcode?

我正在尝试在我的 Xcode 项目中编译 SoundTouch 框架, 但老实说,我不知道自己在做什么。

有人有指示吗?

到目前为止我做了什么

运行 ./bootstrap 给我以下输出

autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I config/m4 --output=aclocal.m4t
Can't exec "aclocal": No such file or directory at /usr/local/Cellar/autoconf/2.69/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory

如果我没记错的话,MacOS是没有autoreconf的,对吧?

SoundTouch 显然需要至少 GCC 4.4 但 Mac OS 只有 GCC 4.3,所以我从 homebrew 下载了 GCC 7,但是仅将它与命令 gcc-7 ./bootstrap 一起使用会得到以下输出

gcc-7 bootstrap
ld: warning: ignoring file bootstrap, file was built for unsupported file format ( 0x23 0x20 0x24 0x49 0x64 0x3A 0x20 0x62 0x6F 0x6F 0x74 0x73 0x74 0x72 0x61 0x70 ) which is not the architecture being linked (x86_64): bootstrap
Undefined symbols for architecture x86_64:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status

如何才能成功编译 SoundTouch?

编辑:

我尝试将基本文件复制到一个文件夹,将其添加到我的项目并编译。

现在我得到这个错误:

Undefined symbols for architecture x86_64:
  "soundtouch::SoundTouch::SoundTouch()", referenced from:
      MyAudioProcessor::MyAudioProcessor() in libMy.a(PluginProcessor.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

为什么说有未定义的符号?

我将 SoundTouch 的基本文件复制到项目的 "Compile Sources" 定义中。

现在可以编译了。