Answer the question
In order to leave comments, you need to log in
Why doesn't ffmpeg see the libraries after compiling?
Hi
Faced an error after compiling:
ffmpeg: error while loading shared libraries: libzimg.so.2: cannot open shared object file: No such file or directory
echo "libzimg"
cd ~/ffmpeg_sources
git clone --depth 1 https://github.com/sekrit-twc/zimg.git
cd zimg
./autogen.sh
./configure --prefix="$HOME/ffmpeg_build" --disable-static --enable-shared
make -j 10
make install
echo "FFmpeg"
cd ~/ffmpeg_sources
curl -O -L https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig"
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
./configure \
--prefix="$HOME/ffmpeg_build" \
--pkg-config-flags="--static" \
--extra-cflags="-I$HOME/ffmpeg_build/include" \
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \
--extra-libs=-lpthread \
--extra-libs=-lm \
--bindir="$HOME/bin" \
--enable-gpl \
--enable-libfdk_aac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopus \
--enable-libvorbis \
--enable-libvpx \
--enable-libx264 \
--enable-libx265 \
--enable-nonfree \
--enable-libzmq \
--enable-openssl \
--enable-libzimg
make -j 10
make install
hash -r
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question