relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared objec
2015-09-19 19:44
841 查看
libusb 1.0版本:libusb-1.0.19
当一个动态库liba.so链接libusb-1.0.a时,出现如下错误:
目前推测是因为指编译libusb时需要加上-fPIC参数。
经验证确实是此问题,
当一个动态库liba.so链接libusb-1.0.a时,出现如下错误:
[code]relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
目前推测是因为指编译libusb时需要加上-fPIC参数。
经验证确实是此问题,
[code]./autogen.sh --with-pic --disable-udev && make -j32
相关文章推荐
- 增益 Gain 分贝 dB
- Light oj 1138 - Trailing Zeroes (III)
- mexTrainDL - SPAms
- “warning C4251::CStringT<BaseType,StringTraits>需要有 dll 接口”解决办法
- Git Step By Step - Step 1: Start Over Again
- AI-路径导航(最短路径算法 and A算法)
- xcode7报错:does not contain bitcode
- nginx: [emerg] getpwnam(“www”) failed
- poj3250 Bad Hair Day
- 关于在虚拟设备上运行项目的时候遇到INSTALL_FAILED_NO_MATCHING_ABIS,提示卸载以前安装的版本
- Silverlight 2.5D RPG游戏技巧与特效处理:(十一)AI系统
- LintCode --number-of-airplanes-in-the-sky(数飞机)
- *LeetCode-Container With Most Water
- office outlook 2010/2013 问题 求助 help
- A. Raising Bacteria
- 错误Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1
- 纪念人工智能(AI)奠基60周年(续)
- Raising Bacteria (Codeforces Round #320 (Div. 2) [Bayan Thanks-Round] )
- LightOJ 1282 Leading and Trailing(截取前n位输出)