[問題] ubuntu編譯ffmpeg問題

看板LinuxDev作者 (幸福人生靠智慧)時間13年前 (2012/11/18 16:57), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串1/1
我在執行ffplay時,會出現以下error: ffmpeg: relocation error: /usr/local/lib/libswresample.so.0: symbol av_get_packed_sample_fmt, version LIBAVUTIL_51 not defined in file libavutil.so.51 with link time reference 想請問有人知道這要如何處理嗎? ubuntu版本為12.04 我下載了ffmpeg-1.0的版本,在ffmpeg-1.0下做configure,語法如下: .configure --prefix=/usr/local --disable-debug --enable-shared --enable-static --enable-gpl --enable-x11grab --enable-postproc --enable-version3 --enable-nonfree --enable-libfaac --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libpulse --enable-openssl --enable-libx264 --enable-swscale --enable-pthreads --enable-libgsm --enable-avfilter --enable-version3 之後執行make;make install 然後想要單獨對ffplay做gcc,語法如下: gcc -o ffplay ffplay.c cmdutils.c -I/home/iranwu/Downloads/ffmpeg-1.0 -lpostproc -lavdevice -lavfilter -lavcodec -lavformat -lswscale -lavutil -lswresample -lmp3lame -lx264 `sdl-config --cflags --libs` -lz -lbz2 -lavcodec -lrtmp -lSDL -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.45.56.43

11/18 17:35, , 1F
我沒用過這個,不過google一下看來是--enable-shared造成
11/18 17:35, 1F

11/18 17:35, , 2F
11/18 17:35, 2F

11/18 21:26, , 3F
sudo ldconfig?
11/18 21:26, 3F
文章代碼(AID): #1GgABgsW (LinuxDev)
文章代碼(AID): #1GgABgsW (LinuxDev)