Xcode 7.1中架构armv7的未定义符号

前端之家收集整理的这篇文章主要介绍了Xcode 7.1中架构armv7的未定义符号前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在用Vuforia和一个名为Mobile Movie Textures的Unity插件制作游戏.当我尝试构建我的 Xcode项目时,一切顺利,直到它开始链接.我从同一个库中得到一堆错误,说它不能识别符号.

Undefined symbols for architecture armv7:
  "_oc_idct8x8_arm",referenced from:
      _oc_state_frag_recon_arm in libtheorawrapper.a(armstate.o)
      _oc_state_accel_init_arm in libtheorawrapper.a(armstate.o)
  "_oc_idct8x8_1_arm",referenced from:
      _oc_state_frag_recon_arm in libtheorawrapper.a(armstate.o)
  "_oc_frag_recon_intra_arm",referenced from:
      _oc_state_frag_recon_arm in libtheorawrapper.a(armstate.o)
      _oc_state_accel_init_arm in libtheorawrapper.a(armstate.o)
  "_oc_pack_read1_arm",referenced from:
      _th_decode_packetin in libtheorawrapper.a(decode.o)
      _oc_huff_tree_unpack in libtheorawrapper.a(huffdec.o)
      _oc_quant_params_unpack in libtheorawrapper.a(dequant.o)
  "_oc_frag_recon_inter2_arm",referenced from:
      _oc_state_frag_recon_arm in libtheorawrapper.a(armstate.o)
      _oc_state_accel_init_arm in libtheorawrapper.a(armstate.o)
  "_oc_frag_copy_list_arm",referenced from:
      _oc_state_accel_init_arm in libtheorawrapper.a(armstate.o)
  "_oc_frag_recon_inter_arm",referenced from:
      _oc_state_frag_recon_arm in libtheorawrapper.a(armstate.o)
      _oc_state_accel_init_arm in libtheorawrapper.a(armstate.o)
  "_oc_loop_filter_frag_rows_arm",referenced from:
      _oc_state_accel_init_arm in libtheorawrapper.a(armstate.o)
  "_oc_huff_token_decode_arm",referenced from:
      _th_decode_packetin in libtheorawrapper.a(decode.o)
      _oc_sb_run_unpack in libtheorawrapper.a(decode.o)
  "_oc_pack_read_arm",referenced from:
      _th_decode_packetin in libtheorawrapper.a(decode.o)
      _oc_sb_run_unpack in libtheorawrapper.a(decode.o)
      _th_decode_headerin in libtheorawrapper.a(decinfo.o)
      _oc_unpack_length in libtheorawrapper.a(decinfo.o)
      _oc_huff_tree_unpack in libtheorawrapper.a(huffdec.o)
      _oc_quant_params_unpack in libtheorawrapper.a(dequant.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command Failed with exit code 1 (use -v to see invocation)

我可以让装备与armv7拱不兼容,但它们占荷兰市场的55%.

我不知道如何解决这个问题,你们中有谁能想出来吗?

解决方法

当前版本的插件中的库libtheorawrapper.a已损坏,并且不包含所有必需的符号.

如果要使用该插件,则必须重新编译该库.
要做到这一点,你需要结帐this repository
.

然后编辑此文件
MMTPlugin /编译/的XCode / theorawrapper.xcodeproj / project.pbxproj
第134和144行的替换

/Users/dan/Documents/MobileMovieTexture/

用你克隆回购路径的路径(例如):

/Users/MyUser/Code/git/MobileMovieTexture

然后,您可以使用XCode打开该项目并重新编译库.

生成文件将放在:

MMTUnity/Assets/Plugins/iOS/libtheorawrapper.a

你应该将该文件复制到unity插件文件夹:

Assets/Plugins/iOS/libtheorawrapper.a

猜你在找的Xcode相关文章