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

When I try to install ffmpeg on my ubuntu 14.10 computer, I keep getting the following:

ERROR: opus not found using pkg-config

on 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 followed all the previous installation steps and everything went well. I am really new to Ubuntu. Can someone give me a hint?

+6
source share
5 answers

It helps me...

 apt-get install libopus-dev 
+6
source

I solved this on Fedora by installing the opus-devel .

+3
source

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

 --pkg-config-flags="--static" 
+2
source

1- first, run it again again and delete everything that you did: (copy and right-click to paste into the terminal)

 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 the build tools for your server to build ffmpeg:

 sudo apt-get install build-essential 

4- now follow the instructions in this link

0
source

This was the only code that worked for me

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

link

0
source

Source: https://habr.com/ru/post/983395/


All Articles