gcc -shared -o hack.so hack.c/usr/bin/ld: /tmp/ccUZREwA.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared ...
使用google protobuf时,出现错误 usr bin ld: usr local lib libprotobuf.a message lite.o : relocation R X S against ZTVN google protobuf MessageLiteE can not be used when making a shared object recompile with f ...
2015-12-29 20:13 0 8932 推荐指数:
gcc -shared -o hack.so hack.c/usr/bin/ld: /tmp/ccUZREwA.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared ...
具体报错信息如下: 经排查发现是opencv在编译的时候,用到了libswscale.a、libavcodec.a文件,这两个文件应该是可选的,如果电脑中有这两个文件,说明之前装过ffmpeg或者用ffmpeg相关库的软件,这是在装ffmpeg时安装的,报上述错误可能是 ...
-fPIC,最终改完结果如下: View Code ...
lpadas1@lpadas1:~$ ffmpeg ffmpeg version 4.2.git Copyright (c) 2000-2019 the FFmpeg developers built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1 ...
重新配置一下openssl 配置 ./config -fPIC 编译 make 安装 make install ...
具体报错截图如下: 解决方法: 题外话,我对makefill cmake也是一窍不通因此本人也是不想去积极的解决这个问题,但是当你求助无缘的时候你才会静心去思考。读到这句话的时候也许你已经发现了问题所在了 问题所在: zlib设置问题 解决方案: 1.最好重新安装 ...
编译程序遇到问题 relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; 发现编译的程序引用的一个库(.a文件)是直接用./configure 编译的, 64位机器不能直接 ...
编译程序遇到问题 relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; 发现编译的程序引用的一个库(.a文件)是直接用./configure 编译的, 64位机器不能直接 ...