简体   繁体   English

尝试运行测试时,openears 出现无法解决的链接错误

[英]Unsolvable Linkage error with openears when trying to run tests

I have been using openears for a while now with no problems.我已经使用 openears 一段时间了,没有任何问题。 I imported the library into my project and the application compiles and runs.我将库导入到我的项目中,应用程序编译并运行。
The problem arose when I tried to create and run tests.当我尝试创建和运行测试时出现了问题。 The projects refuses to compile and issues the following linkage error:项目拒绝编译并发出以下链接错误:

Undefined symbols for architecture x86_64:体系结构 x86_64 的未定义符号:
"_delete_voice", referenced from: “_delete_voice”,引用自:
_unregister_cmu_us_slt in OpenEars(cmu_us_slt.o) OpenEars 中的_unregister_cmu_us_slt(cmu_us_slt.o)
"_flite_feat_set_string", referenced from: “_flite_feat_set_string”,引用自:
_register_cmu_us_slt in OpenEars(cmu_us_slt.o) OpenEars 中的_register_cmu_us_slt(cmu_us_slt.o)
"_cg_synth", referenced from: “_cg_synth”,引用自:
_register_cmu_us_slt in OpenEars(cmu_us_slt.o) OpenEars 中的_register_cmu_us_slt(cmu_us_slt.o)
"_uttfunc_val", referenced from: “_uttfunc_val”,引用自:
_register_cmu_us_slt in OpenEars(cmu_us_slt.o) OpenEars 中的_register_cmu_us_slt(cmu_us_slt.o)
"_flite_feat_set", referenced from: “_flite_feat_set”,引用自:
_register_cmu_us_slt in OpenEars(cmu_us_slt.o) OpenEars 中的_register_cmu_us_slt(cmu_us_slt.o)
"_OBJC_CLASS_$_OENotification", referenced from: “_OBJC_CLASS_$_OENotification”,引用自:
objc-class-ref in RapidEars(OEContinuousModel+RapidEars.o) RapidEars 中的 objc-class-ref(OEContinuousModel+RapidEars.o)
"_ps_nbest", referenced from: “_ps_nbest”,引用自:
l015 in RapidEars(OEContinuousModel+RapidEars.o) RapidEars 中的 l015(OEContinuousModel+RapidEars.o)
"_cg_db_val", referenced from: “_cg_db_val”,引用自:
_register_cmu_us_slt in OpenEars(cmu_us_slt.o) OpenEars 中的_register_cmu_us_slt(cmu_us_slt.o)
. .
. .
. .
"_OBJC_CLASS_$_OEPocketsphinxController", referenced from: “_OBJC_CLASS_$_OEPocketsphinxController”,引用自:
type metadata accessor for __ObjC.OEPocketsphinxController in OpenEarsClient.o在 OpenEarsClient.o 中为 __ObjC.OEPocketsphinxController 键入元数据访问器
l031 in RapidEars(OEPocketsphinxController+RapidEars.o) RapidEars 中的 l031(OEPocketsphinxController+RapidEars.o)
ld: symbol(s) not found for architecture x86_64 ld:找不到架构 x86_64 的符号
clang: error: linker command failed with exit code 1 (use -v to see invocation) clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

I have tried several approaches I found but still haven't found a solution.我已经尝试了几种我找到的方法,但仍然没有找到解决方案。 Any help will be greatly appreciated.任何帮助将不胜感激。

Ok, managed to figure it out.好的,设法弄清楚了。 Downloaded the latest Openears library and added it as before and it worked.下载了最新的 Openears 库并像以前一样添加它并且它起作用了。
Apparently, You have to upgrade for it to work on Xcode 8.显然,你必须升级它才能在 Xcode 8 上工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM