skyeye1.3.5安装遇到relocation R_X86_64_32 against `.rodata.str1.1' 问题

lingdongjiangzhi 2014-01-24 04:50:04
最近在研究Skyeye1.3.5,遇到如下问题:

问题1:

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.6/../../.././lib/libiberty.a(xmalloc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC

/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libiberty.a: could not read symbols: Bad value

collect2: ld returned 1 exit status

make[2]: *** [libemulator_libui.la] Error 1

make[2]: Leaving directory `/home/pengchao/Downloads/skyeye-1.3.5_rc1/android/objs/emulator_libui'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/pengchao/Downloads/skyeye-1.3.5_rc1'

make: *** [all] Error 2

在网上寻找,有人认为是shared dynamic lib的问题,尝试了几种方法:

方法1:./configure --enable-shared 或者 --enable-static

方法2:添加-fPIC编译选项

以上两种方法都没有用

问题2:

module/skyeye_module.c:321:1: fatal error: opening dependency file .deps/skyeye_module.Tpo: Permission denied

compilation terminated.

但是我是在sodu模式下,为什么会用访问没权限呢?
...全文
976 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
山东路遥遥 2014-02-04
  • 打赏
  • 举报
回复
在fedora20上安装Skyeye1.3.5出现上面的错误,一直没能解决。使用来自skyeye的mailist上的答案: 解决办法: sudo cp third-party/libiberty/pic/libiberty.a /usr/lib64/ 或者 sudo cp third-party/libiberty/pic/libiberty.a /usr/lib 也是不能解决。
山东路遥遥 2014-02-03
  • 打赏
  • 举报
回复
cp third-party/libiberty/pic/libiberty.a /usr/lib 还是不行。
lingdongjiangzhi 2014-01-24
  • 打赏
  • 举报
回复
来自skyeye的mailist上的答案: 解决办法: sudo cp third-party/libiberty/pic/libiberty.a /usr/lib64/ 或者 sudo cp third-party/libiberty/pic/libiberty.a /usr/lib 测试可用,不纠结了。 话说陈老师还是我本科班主任呢。

19,524

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 嵌入开发(WinCE)
社区管理员
  • 嵌入开发(WinCE)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧