FFMpeg 版本错误
错误情况:
relocation error: /usr/local/lib/libavfilter.so.3: symbol sws_get_class, version LIBSWSCALE_2 not defined in file libswscale.so.2 with link time reference;
ldd 命理查看:
lin@lin-Rev-1-0:~/mynode/ffmpeg/ffmpeg-1.1.3$ ldd ./ffmpeg linux-gate.so.1 => (0x00fa9000) libavdevice.so.54 => /usr/local/lib/libavdevice.so.54 (0x00597000) libavfilter.so.3 => /usr/local/lib/libavfilter.so.3 (0x008af000) libavformat.so.54 => /usr/local/lib/libavformat.so.54 (0x003e2000) libavcodec.so.54 => /usr/local/lib/libavcodec.so.54 (0x00faa000) libpostproc.so.52 => /usr/lib/i686/cmov/libpostproc.so.52 (0x00d28000) libswresample.so.0 => /usr/local/lib/libswresample.so.0 (0x00110000) libswscale.so.2 => /usr/lib/i686/cmov/libswscale.so.2 (0x00127000) libavutil.so.52 => /usr/local/lib/libavutil.so.52 (0x00b87000) libx264.so.129 => /usr/local/lib/libx264.so.129 (0x0068a000) libavutil.so.51 => /usr/lib/i686/cmov/libavutil.so.51 (0x00f6f000)
查看链接库的信息:
lin@lin-Rev-1-0:/usr/lib/i686/cmov$ ll total 7808 drwxr-xr-x 2 root root 4096 2013-05-01 10:04 ./ drwxr-xr-x 4 root root 4096 2013-03-20 10:06 ../ lrwxrwxrwx 1 root root 20 2013-01-25 03:28 libavcodec.so.53 -> libavcodec.so.53.6.0 -rw-r--r-- 1 root root 6376288 2013-01-25 03:28 libavcodec.so.53.6.0 lrwxrwxrwx 1 root root 21 2013-01-25 03:28 libavformat.so.53 -> libavformat.so.53.3.0 -rw-r--r-- 1 root root 1069128 2013-01-25 03:28 libavformat.so.53.3.0 lrwxrwxrwx 1 root root 19 2013-01-25 03:28 libavutil.so.51 -> libavutil.so.51.7.0 -rw-r--r-- 1 root root 117212 2013-01-25 03:28 libavutil.so.51.7.0 lrwxrwxrwx 1 root root 21 2013-01-25 03:28 libpostproc.so.52 -> libpostproc.so.52.0.0 -rw-r--r-- 1 root root 157004 2013-01-25 03:28 libpostproc.so.52.0.0 lrwxrwxrwx 1 root root 19 2013-01-25 03:28 libswscale.so.2 -> libswscale.so.2.0.0 -rw-r--r-- 1 root root 255304 2013-01-25 03:28 libswscale.so.2.0.0
将libswscale.so.2链接文件以及源文件替换为新产生的文件即可;
欢迎评论交流