help configure find ffmpeg

The place to discuss linux version of MakeMKV
Post Reply
clearlinux
Posts: 4
Joined: Sun Oct 17, 2021 2:10 pm

help configure find ffmpeg

Post by clearlinux »

I'm sorry, this probably "building software 101," but I think I have ffmpeg libraries in /usr/local/include, but I don't know how to tell configure to look for them there.

I tried setting the ffmpeg_LIBS variable, but it doesn't seem to help. Could A Smart Person please advise?

export|grep ffmpeg
declare -x ffmpeg_LIBS="/usr/local/include"

./configure
checking for ffmpeg... no
configure: error: No package 'libavcodec' found
No package 'libavutil' found.

/usr/local/include $ ls
libavcodec libavfilter libavutil libswscale
libavdevice libavformat libswresample
clearlinux
Posts: 4
Joined: Sun Oct 17, 2021 2:10 pm

Re: help configure find ffmpeg

Post by clearlinux »

by specifying the following:

declare -x ffmpeg_CFLAGS="-I/usr/local/include"
declare -x ffmpeg_LIBS="/usr/local/lib"

./configure can get to:

checking for ffmpeg... yes
checking whether LIBAVCODEC_VERSION_MAJOR is declared... yes
checking LIBAVCODEC_VERSION_MAJOR... failed
configure: error: in `/home/win/Downloads/makemkv-oss-1.16.4':
configure: error: LIBAVCODEC_VERSION_MAJOR is not known at compile time in libavcodec.h
See `config.log' for more details

which is referenced here: viewtopic.php?t=9625

I will update my progress if I proceed.
clearlinux
Posts: 4
Joined: Sun Oct 17, 2021 2:10 pm

Re: help configure find ffmpeg

Post by clearlinux »

I tried building against the latest "release" ffmpeg-4.4, basically following these directions: https://www.javahotchocolate.com/notes/makemkv.html

Here is config.log: https://paste.rs/yUM

error: LIBAVCODEC_VERSION_MAJOR is not known at compile time in libavcodec.h

I would appreciate any guidance on this matter.
clearlinux
Posts: 4
Joined: Sun Oct 17, 2021 2:10 pm

Re: help configure find ffmpeg

Post by clearlinux »

I solved my problem. The *only* environment variable I needed to set in order for configure to find ffmpeg was PKG_CONFIG_PATH to where ffmpeg was installed with the appropriate build options.

This is in the regular instructions under "OPTIONAL: Building with latest libavcodec"

Basically, I just needed to follow the regular instructions and they worked. :lol:

I got confused when I didn't set PKG_CONFIG_PATH initially, started poking around the configure file, found the ffmpeg variables, realized setting them got me a little farther down the configure script, and also, being on a non-Ubuntu OS and thinking like I would probably need to do *something* different.

Mods, if you feel the existence of this thread will hurt more than help, please feel free to remove it.
Post Reply