0

我正在尝试在我的 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

如果我没记错的话,autoreconfMac OS 是没有的,对吧?

SoundTouch 显然至少需要,GCC 4.4但 Mac OS 只有GCC 4.3,所以我GCC 7从下载homebrew,但仅与命令一起使用它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)

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

4

1 回答 1

0

我将 SoundTouch 的基本文件复制到项目的“编译源”定义中。

现在它编译了。

在此处输入图像描述

于 2017-12-02T03:46:00.523 回答