skyeye1.3.5安装遇到relocation R_X86_64_32 against `.rodata.str1.1' 问题
最近在研究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模式下,为什么会用访问没权限呢?