关于 could not read symbols: File in wrong format 问题的解决方案
来源:互联网 发布:2017淘宝小号注册 编辑:程序博客网 时间:2024/05/16 09:29
最近有个项目需要用到第三方的lib,而在它们的官网上面下载了linux版本的so
于是根据它们提供的文档来调用so里面的函数,用ndk将so编译到我自己的jni lib
中去。但是编译是过了,链接时出问题了:
could not read symbols: File in wrong format
collect2: ld returned 1 exit status
后来找了下原因,linux平台下的so 是在x86的CPU架构下编译出来的,但是我们NDK编译
的是用于ARM平台下使用的so(当然也可以是x86的,不过这个需要ndk5以上版本)。
所以这个的解决办法是找到对应的ARM平台下的so 。
有两个办法:
1.直接找对方要,因为你是客户,但如过是小客户,也许不会理你。
2.从它们提供的APK示例程序中解压得到你想要的lib,这个是完全可以使用的。
- 关于 could not read symbols: File in wrong format 问题的解决方案
- could not read symbols: File in wrong format
- /libexpat.so: could not read symbols: File in wrong format
- could not read symbols: File in wrong format
- 解决vsftpd编译时的错误:could not read symbols: File in wrong format
- 【工控机开发】OpenCV compile error /lib/libopencv_highgui.so could not read symbols: File in wrong format
- could not read symbols: File in wrong format collect2: ld 返回 1 make: *** [all] 错误 1
- Apache 安装过程中出错/usr/lib/libexpat.so: could not read symbols: File in wrong format的解决办法
- lib_clapack.a(dlasyf.o): could not read symbols: File in wrong format---- 交叉编译opencv2.0遇到的错误解决
- could not read symbols: File format not recognized
- lib64SDL_intermediates/lib64SDL.a: could not read symbols: File format not recognized
- Relocations in generic ELF (EM: 40) ../h264-lib/build/obj/cavlc.o: could not read symbols: File in
- Could not read symbols解决方法
- Could not read symbols解决方法
- Could not read symbols解决方法
- Could not read symbols解决方法
- could not read symbols报警
- Could not read symbols解决方法
- CppUnit测试框架在VC2008中使用的注意事项
- 0 0
- exit()函数详解与Exit() 和 Return() 的区别
- Assistance Required(打表)
- 23种设计模式的通俗理解
- 关于 could not read symbols: File in wrong format 问题的解决方案
- 搜索比赛C题
- 从3DS MAX建模到Ogre实时动画的制作过程
- 单链表
- 删除oracle数据库用户的dba权限
- PostgreSQL查询优化:查询条件优化一(条件分类)
- SVN仓库迁移(将一个仓库从一台机器上上转移到另一台机器上)
- 调查显示近5成网民反对北京车展模特着装暴露
- From Developer to Technical Manager