Undefined symbols for architecture arm64:
"_Decoder_Interface_init", referenced from:
DecodeAMRFileToWAVEFile(char const*, char const*) in amrFileCodec.o
"_Decoder_Interface_Decode", referenced from:
DecodeAMRFileToWAVEFile(char const*, char const*) in amrFileCodec.o
"_Decoder_Interface_Decode", referenced from:
DecodeAMRFileToWAVEFile(char const*, char const*) in amrFileCodec.o
"_Decoder_Interface_exit", referenced from:
DecodeAMRFileToWAVEFile(char const*, char const*) in amrFileCodec.o
根据分析是因为,sdk7.1识别出插入的测试机为5s(64位)。在音频转化的时候原本的amrFileCodec.mm出错。于是乎就是在用到不支持64位的开源程序的时候需要修改一下编译选项,经测试可以改成如下
选 中Targets—>Build Settings—>Architectures。双击Architectures,选择other,删除$(ARCH_STANDARD) (点’-’),然后增加armv7和armv7s(点‘+’)。clean一下再编译就行了。
时间: 2024-11-15 11:20:11