首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用Xcode编译SoundTouch?

用Xcode编译SoundTouch?
EN

Stack Overflow用户
提问于 2017-12-01 06:14:13
回答 1查看 166关注 0票数 0

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

有人有什么指示吗?

我到目前为止做了什么,

运行./bootstrap将给出以下输出

代码语言:javascript
复制
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一起使用它给出了以下输出

代码语言:javascript
复制
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?

编辑:

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

现在我得到了这个错误:

代码语言:javascript
复制
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)

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-12-02 03:46:00

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

现在它编译了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47587628

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档