编译ffmpeg的relocation R_X86_64_32 against错误

/usr/bin/ld: /usr/local/lib/mysql/libz.a(compress.o): relocation R_X86_64_32 against `.rodata.str1.1′ can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/mysql/libz.a: could not read symbols: Bad value
...
解决方法,重新编译安装zlib库
 cd zlib-1.2.8/

cd zlib-1.2.8/
./configure
gedit Makefile

编辑MakeFile文件 在CFLAGS=...  一行最后增加  -fPIC

保存退出
make
sudo make install
然后再回去编译ffmpeg,通过

你可能感兴趣的:(编译ffmpeg的relocation R_X86_64_32 against错误)