OpenCV 'relocation R_X86_64_32 against' 编译错误

在安装OpenCV 3.4.1时,发生错误:

1
relocation R_X86_64_32 against `.bss' can not be used when...

最终找到是FFMPEG的问题,按下重新编译FFMPEG:

1
2
3
4
make clean
./configure --enable-nonfree --enable-pic --enable-shared
make
sudo make install

然后重新编译OpenCV,问题解决。