Error installing ffmpeg on ubuntu: opus not found using pkg-config

error opus not found using pkg-config ffmpeg
error: vorbis not found using pkg-config
error: aom >= 1.0 0 not found using pkg-config
package gnutls was not found in the pkg-config search path
package 'openssl was not found in the pkg-config search path
package 'x11 was not found in the pkg-config search path
package 'libpcre was not found in the pkg-config search path
package zlib was not found in the pkg-config search path

When I try to install ffmpeg on my ubuntu 14.10 machine, I keep getting this:

ERROR: opus not found using pkg-config

at this step:

PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
  --prefix="$HOME/ffmpeg_build" \
  --extra-cflags="-I$HOME/ffmpeg_build/include" \
  --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
  --bindir="$HOME/bin" \
  --enable-gpl \
  --enable-libass \
  --enable-libfdk-aac \
  --enable-libfreetype \
  --enable-libmp3lame \
  --enable-libopus \
  --enable-libtheora \
  --enable-libvorbis \
  --enable-libvpx \
  --enable-libx264 \
  --enable-nonfree

I've followed all the previous installation steps and it went all successful. I'm really new to Ubuntu. Could anybody give me a hint?

This helped for me...

apt-get install libopus-dev

ERROR: opus not found even though opus.pc exists in lib/pkgconfig , ffmpeg installation: opus not found. Thread: I am getting error: Code: [View] not found. I have aslo installed libopus using http://ffmpeg.org/trac/ffmpeg/wiki/U.. PKG_CONFIG_PATH="/home/ffmpeg_build/lib/pkgconfig". I was trying to run ./cross_compile_ffmpeg.sh --high-bitdepth=y --gcc-cpu-count=6 --disable-nonfree=n --build-libmxf=y --compiler-flavors=win64 --git-get-latest=y --prefer-stable=n on a freshly installed Debian 9 and the script failed at configuring ffmpeg with: ERROR: opus not found using pkg-config.

I solved this on Fedora by install the opus-devel package.

ffmpeg installation: opus not found, to e.g. /home/ubuntu/ffmpeg_build/include/opus The pc file is indeed found, as the log file reports this: > pkg-config --exists --print-errors opus > check_func_headers It seems libopus is only available statically, and configure does not realize that, or the opus.pc file does not provide "-lm" in Libs.private. $ pkg-config --cflags opus It appears that it is not unusual to install opus into different locations (I did not check), if that is true, FFmpeg has to use pkg-config to find the correct location.

I added this to the ./configure line, and it seemed to fix it:

--pkg-config-flags="--static"

[FFmpeg-user] compilation error, UBUNTU_CODENAME=xenial configure -prefix=/build/builders/tm-ffmpeg/root --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-​hardcoded-tables ERROR: opus not found using pkg-config libx265 builds properly and all files are there, but the ffmpeg build quits with this message in red: ERROR: x265 not found using pkg-config Command run is: ./cross_compile_ffmpeg.sh --gcc-cpu-count=8 --disable-nonfree=n --sandbox-ok=y -

1- first start fresh again and delete what you have done: (copy and in terminal press right button of the mouse to paste )

rm -rf ~/ffmpeg_build ~/ffmpeg_sources ~/bin/{ffmpeg,ffprobe,ffplay,ffserver,vsyasm,x264,x265,yasm,ytasm}
sudo apt-get autoremove autoconf automake build-essential cmake libass-dev libfreetype6-dev \
  libmp3lame-dev libopus-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev \
  libvorbis-dev libvpx-dev libx264-dev libxcb1-dev libxcb-shm0-dev ibxcb-xfixes0-dev mercurial texinfo zlib1g-dev
sed -i '/ffmpeg_build/c\' ~/.manpath
hash -r

2- now update your server :

sudo apt-get update 

3- install build tools for your server to build ffmpeg :

sudo apt-get install build-essential

4- now follow the steps in this link

ffmpeg, Hi, I am getting error on ff-mpeg installing time. ERROR: opus not found using pkg-config. If you think configure made a mistake, make sure you  FFMEPG without x265 compiles without problems and compiling x265 standalone works without problems too. However when i --enable-libx265 in ffmpeg i get the following error: ERROR: x265 not found using pkg-config and this from the config.log:

This was the only code worked to me

PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

reference

ERROR: opus not found using pkg-config, Previous message (by thread): [FFmpeg-user] compilation error; Next message (​by attached config.log ERROR: opus not found using pkg-config so just install the --bindir=/home/ubuntu/bin --enable-gpl --enable-libass  3- install build tools for your server to build ffmpeg : sudo apt-get install build-essential 4- now follow the steps in this link

[FFmpeg-user] compilation error, Here's how to build and install FFmpeg from source with all the bells and We'll install it as a custom Debian package using checkinstall . libxcb1-dev libxcb-​shm0-dev \ libxcb-xfixes0-dev pkg-config texinfo libopenjp2-7-dev libopenmpt-​dev libopus-dev \ libpulse-dev nasm/yasm not found or too old. It gave the following error: "ERROR: libvmaf not found using pkg-config". Do you happen to have any idea what this could be? I was wondering if it could be an issue with how I have my CentOS machine set up, or if it is a problem with FFmpeg and the newly installed libvmaf.

How to compile and install FFmpeg on Debian/Ubuntu , In this tutorial we will show you how to install FFmpeg on Ubuntu The official Ubuntu repositories contain FFmpeg packages that can be installed with the apt package When converting audio and video files with ffmpeg , you do not have to The input file format is auto-detected, and the output format is  $ ./configure --enable-libmfx --enable-nonfree ERROR: libmfx not found If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.

How to Install and Use FFmpeg on Ubuntu 18.04, 3 not found. libmp3lame ffmpeg opus not found using pkg-config error: libx264 not found update ffmpeg install libmp3lame. If it doesn't work even after reinstalling libass, provide build logs using brew gist-logs ffmpeg. franzf mentioned this issue Dec 16, 2015 MPV GUI Font Spacing Non-Existant #2585

Comments
  • To improve the quality of your answer, please include an explanation of what you believe their problem to be and how your answer improves the situation.
  • +1 but actually your answer without Calvin's answer isn't efficient. so both answers should be merged into one.
  • +1 but actually your answer without John's answer isn't efficient. so both answers should be merged into one