首页 / IOS / ios 64位下编译webrtc的libvpx库出现错误Bad cputype for object file.Currently only tested for CPU_TYPE_x86_64
ios 64位下编译webrtc的libvpx库出现错误Bad cputype for object file.Currently only tested for CPU_TYPE_x86_64
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了ios 64位下编译webrtc的libvpx库出现错误Bad cputype for object file.Currently only tested for CPU_TYPE_x86_64,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1982字,纯文字阅读大概需要3分钟。
内容图文
![ios 64位下编译webrtc的libvpx库出现错误Bad cputype for object file.Currently only tested for CPU_TYPE_x86_64](/upload/InfoBanner/zyjiaocheng/1277/781b9062cd8b4217a2b5c9e97e3bbfab.jpg)
diff --git a/libvpx.gyp b/libvpx.gyp
index 4f8cb2b..4eb6866 100644
--- a/libvpx.gyp
+++ b/libvpx.gyp
@@ -74,7 +74,7 @@
# support for neon and hide it behind Android cpu-features.
‘includes‘: [‘libvpx_srcs_arm_neon_cpu_detect_intrinsics.gypi‘, ],
}],
- [ ‘(target_arch != "arm" and target_arch != "armv7") and \
+ [ ‘(target_arch != "arm" and target_arch != "armv7" and target_arch != "armv64") and \
(target_arch != "mipsel" and target_arch != "mips64el")‘, {
‘targets‘: [
{
@@ -217,7 +217,7 @@
},
],
# ‘libvpx‘ target for ARM builds.
- [ ‘(target_arch=="arm" or target_arch=="armv7") ‘, {
+ [ ‘(target_arch=="arm" or target_arch=="armv7" or target_arch=="armv64") ‘, {
‘targets‘: [
{
# This libvpx target contains both encoder and decoder.
@@ -453,7 +453,7 @@
# intermediates-dir-for macro.
‘lib_intermediate_name‘ : ‘$(abspath $(call intermediates-dir-for,STATIC_LIBRARIES,libvpx_asm_offsets_vp8,,,$(gyp_var_prefix)))/libvpx_asm_offsets_vp8.a‘,
}],
- [‘(target_arch=="arm" or target_arch=="armv7")‘, {
+ [‘(target_arch=="arm" or target_arch=="armv7" or target_arch=="arm64")‘, {
‘output_format‘: ‘gas‘,
}, {
‘output_format‘: ‘rvds‘,
diff --git a/source/libvpx/build/make/obj_int_extract.c b/source/libvpx/build/make/obj_int_extract.c
index 2e50f38..7d4f0b8 100644
--- a/source/libvpx/build/make/obj_int_extract.c
+++ b/source/libvpx/build/make/obj_int_extract.c
@@ -97,8 +97,10 @@ int parse_macho(uint8_t *base_buf, size_t sz, output_fmt_t mode) {
bits = 64;
buf += sizeof(struct mach_header_64);
} else {
- log_msg("Bad cputype for object file. Currently only tested for CPU_TYPE_X86_64.\n");
- goto bail;
+ //log_msg("Bad cputype for object file. Currently only tested for CPU_TYPE_X86_64.\n");
+ //goto bail;
+ bits = 64;
+ buf += sizeof(struct mach_header_64);
}
} else {
log_msg("Bad magic number for object file. 0x%x or 0x%x expected, 0x%x found.\n",
原文:http://www.cnblogs.com/zentel/p/4987562.html
内容总结
以上是互联网集市为您收集整理的ios 64位下编译webrtc的libvpx库出现错误Bad cputype for object file.Currently only tested for CPU_TYPE_x86_64全部内容,希望文章能够帮你解决ios 64位下编译webrtc的libvpx库出现错误Bad cputype for object file.Currently only tested for CPU_TYPE_x86_64所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。