[FFmpeg-devel] Install from Source on CentOS 7

Larry Apolonio ffmpeg at apolonio.com
Fri Dec 28 18:21:13 EET 2018


On 12/28/2018 3:09 AM, Moritz Barsnick wrote:
> On Thu, Dec 27, 2018 at 22:38:24 -0800, Larry Apolonio wrote:
>> ERROR: x265 not found using pkg-config
> [...]
>> pkg-config --exists --print-errors x265
>> Package x265 was not found in the pkg-config search path.
>> Perhaps you should add the directory containing `x265.pc'
>> to the PKG_CONFIG_PATH environment variable
> After x265's "sudo make install", is x265.pc located where your other
> pkgconfig files are located?
>
> Perhaps you need to
> export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
>
> in case pkgconfig is not searching that path by default.
> (Assuming "make install" installed to /usr/local.)
>
> Moritz
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

I checked /usr/local/lib/pkgconfig and the x265.pc packages is there as 
well as the others.

# ls -l /usr/local/lib/pkgconfig
total 52
-rw-r--r-- 1 root root 426 Dec 26 23:52 libavcodec.pc
-rw-r--r-- 1 root root 459 Dec 26 23:52 libavdevice.pc
-rw-r--r-- 1 root root 449 Dec 26 23:52 libavfilter.pc
-rw-r--r-- 1 root root 366 Dec 26 23:52 libavformat.pc
-rw-r--r-- 1 root root 285 Dec 26 23:52 libavutil.pc
-rw-r--r-- 1 root root 308 Dec 26 23:52 libpostproc.pc
-rw-r--r-- 1 root root 313 Dec 26 23:52 libswresample.pc
-rw-r--r-- 1 root root 306 Dec 26 23:52 libswscale.pc
-rw-r--r-- 1 root root 246 Dec 26 22:46 opencore-amrnb.pc
-rw-r--r-- 1 root root 255 Dec 26 22:46 opencore-amrwb.pc
-rw-r--r-- 1 root root 260 Dec 27 11:25 vo-amrwbenc.pc
-rw-r--r-- 1 root root 278 Dec 26 23:10 x264.pc
*-rw-r--r-- 1 root root 244 Dec 27 12:00 x265.pc*


I ran the following commands and they did not produce any error

$ pkg-config --exists --print-errors x265
$ pkg-config --exists --print-errors x264
$ pkg-config --exists --print-errors opencore-amrwb

and the PKG_CONFIG_PATH is set.

$ echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig/

LA



More information about the ffmpeg-devel mailing list