relocation R_X86_64_32 against `.rodata' can not be used when making a shared object;
2013-12-27 15:55
1301 查看
relocation R_X86_64_32 against `.rodata' can not be used when making a shared object;
我在编译VLC时遇到这个问题:
relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
... could not read symbols: Bad value
编译器提示:recompile with -fPIC
两种方式:
(1)在makefile文件里的CFLAGS里加上 -fPIC选项,这样可以一劳永逸
(2)如果你的makefile很大,CFLAGS也不明确,那就在配置时手动加上,即:
$CFLAGS="-fPIC" ./configure ..............
如果这样还不行,你需要试一下sudo
即:
$sudo CFLAGS="-fPIC" ./configure ..............
我在编译VLC时遇到这个问题:
relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
... could not read symbols: Bad value
编译器提示:recompile with -fPIC
两种方式:
(1)在makefile文件里的CFLAGS里加上 -fPIC选项,这样可以一劳永逸
(2)如果你的makefile很大,CFLAGS也不明确,那就在配置时手动加上,即:
$CFLAGS="-fPIC" ./configure ..............
如果这样还不行,你需要试一下sudo
即:
$sudo CFLAGS="-fPIC" ./configure ..............
相关文章推荐
- 编译动态库出现问题relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object
- linux 生成动态库时提示relocation R_X86_64_32 against `.rodata' can not be used when making a shared object;
- 学习笔记:relocation R_X86_64_32 against `.rodata' can not be used when making a shared object;
- 编译程序遇到问题 relocation R_X86_64_32 against `.rodata' can not be used when making a shared object;
- relocation R_X86_64_32S against `_nc_globals' can not be used when making a shared object; recompile
- relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recom
- 关于/usr/local/lib/libz.a(zutil.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC解决办法
- libavcodec/mqc.o: relocation r_x86_64_32 against `.rodata' can not be used when making a shared obje
- CentOS-6.3 编译erlang-otp 17.0 报relocation R_X86_64_32 against `OPENSSL_ia32cap_P' can not be used when making a shared object; recompile with -fPIC错误
- relocation R_X86_64_32 against XXXXX can not be used when making a shared object;recompile with -fPI
- jsoncpp relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; ……
- relocation R_X86_64_32S against `a local symbol’ can not be used when making a shared object; recomp
- .libs/alloc.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared
- relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared objec
- LibXML Compile Error: relocation R_X86_64_32 against `a local symbol' can not be used when making a
- 交叉编译出现a local symbol' can not be used when making a shared object的解决方法
- can not be used when making a shared object; recompile with -fPIC
- 加入ffmpeg静态库的错误can not be used when making a shared object; recompile with -fPIC
- gcc报错 can not be used when making a shared object; recompile with -fPIC
- can not be used when making a shared object; recompile with -fPIC