原文:ubuntu 14.04 编译opencv-3.4.2 报错: /usr/bin/ld: /usr/local/lib/libavformat.a(allformats.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC

lpadas lpadas : ffmpeg ffmpeg version . .git Copyright c the FFmpeg developers built with gcc . Ubuntu . . ubuntu . . configuration: prefix usr local ffmpeg enable nonfree enable pic enable shared li ...

2019-12-21 12:22 0 1689 推荐指数:

查看详情

关于/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

具体报错截图如下: 解决方法: 题外话,我对makefill cmake也是一窍不通因此本人也是不想去积极的解决这个问题,但是当你求助无缘的时候你才会静心去思考。读到这句话的时候也许你已经发现了问题所在了 问题所在: zlib设置问题 解决方案: 1.最好重新安装 ...

Sat Aug 06 22:39:00 CST 2016 0 2013
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM