我正试图在我的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如果我没记错的话,Mac没有autoreconf,对吗?
SoundTouch显然至少需要GCC 4.4,但Mac只有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)为什么要说有未定义的符号?
发布于 2017-12-02 03:46:00
我将SoundTouch的基本文件复制到项目的“编译源代码”定义中。
现在它编译了。

https://stackoverflow.com/questions/47587628
复制相似问题