G
G
gremlintv22019-03-14 21:02:35
Source
gremlintv2, 2019-03-14 21:02:35

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

I compiled libzimg like this:
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

Next, ffmpeg compiled as follows:
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

As I understand it, for some reason ffmpeg does not pull up when compiling the libzimg library. But I don't understand why.
Tried to build libzimg with and without prefixes.
Where can I read about compiling from source to understand why the library is not included?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question