Tôi đang biên soạn FFmpeg từ nguồn.
./configure --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-x11grab --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264
make
make install
ldd /usr/local/bin/ffmpeg
đã cho tôi này
linux-gate.so.1 => (0xb7717000)
libavdevice.so.53 => not found
libavfilter.so.2 => not found
libavformat.so.54 => not found
libavcodec.so.54 => not found
libpostproc.so.52 => not found
libswresample.so.0 => not found
libswscale.so.2 => not found
libavutil.so.51 => not found
libm.so.6 => /lib/i386-linux-gnu/tls/i686/nosegneg/libm.so.6 (0xb76e3000)
libpthread.so.0 => /lib/i386-linux-gnu/tls/i686/nosegneg/libpthread.so.0 (0xb76ca000)
libc.so.6 => /lib/i386-linux-gnu/tls/i686/nosegneg/libc.so.6 (0xb7569000)
/lib/ld-linux.so.2 (0xb7718000)
Thiết $LD_LIBRARY_PATH
để /usr/local/lib
sửa "không tìm thấy" lỗi, nhưng vì những lý do nêu here, tôi không muốn thiết lập $LD_LIBRARY_PATH
permanantly.
Tôi được lập lại với cùng một lệnh, lần này với $LD_RUN_PATH
được đặt thành /usr/local/lib
.
make
dường như đã bỏ qua $LD_RUN_PATH
khi biên soạn.
Có cách nào để sử dụng $LD_RUN_PATH
mà không thực hiện các thay đổi sâu rộng đối với Makefile không?
bạn có thể liên kết thành công bằng tay (tức là trên dòng lệnh, mà không sử dụng make)? – Beta
Tôi không biết. Làm thế nào tôi có thể kiểm tra điều đó? – htoip
Bạn có thể chỉ cho chúng tôi một phần của makefile thực thi 'ldd/usr/local/bin/ffmpeg' không? – Beta