MakeMKV fails to build

I utilize MakeMKV to assist in the playing of blurays on my Linux box. For some time now, the version from the AUR has failed to build on my computer. I was able to continue to get by with the flatpak, but I’m wondering if the AUR version would integrate more seamlessly with VLC and Kodi. Unfortunately, I can’t install it to test my theory.

Terminal output is as follows:

Warning: makemkv is only available from AUR
Preparing...
Cloning makemkv build files...
Running as unit: run-u396.service
fatal: not a git repository (or any parent up to mount point /var/cache/private)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Finished with result: exit-code
Main processes terminated with: code=exited/status=128
Service runtime: 8ms
CPU time consumed: 7ms
Running as unit: run-u397.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 34ms
CPU time consumed: 18ms
Running as unit: run-u398.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 1.164s
CPU time consumed: 136ms
Generating makemkv information...
Running as unit: run-u399.service
Finished with result: success
Main processes terminated with: code=exited/status=0
Service runtime: 5.736s
CPU time consumed: 6.510s
Checking makemkv dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  makemkv  1.17.5-1    AUR


Edit build files : [e] 
Apply transaction ? [e/y/N] y


Building makemkv...
Running as unit: run-u400.service
Press ^] three times within 1s to disconnect TTY.
==> Making package: makemkv 1.17.5-1 (Wed 27 Sep 2023 08:32:53 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading makemkv-bin-1.17.5.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15.6M    0 15.6M    0     0  10.1M      0 --:--:--  0:00:01 --:--:-- 10.1M
  -> Downloading makemkv-oss-1.17.5.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 6462k    0 6462k    0     0  10.5M      0 --:--:-- --:--:-- --:--:-- 10.5M
  -> Found makemkv.1
  -> Found makemkvcon.1
  -> Found mmdtsdec.1
==> Validating source files with sha256sums...
    makemkv-bin-1.17.5.tar.gz ... Passed
    makemkv-oss-1.17.5.tar.gz ... Passed
    makemkv.1 ... Passed
    makemkvcon.1 ... Passed
    mmdtsdec.1 ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting makemkv-bin-1.17.5.tar.gz with bsdtar
  -> Extracting makemkv-oss-1.17.5.tar.gz with bsdtar
==> Starting build()...
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
/usr/bin/grep: warning: stray \ before -
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for -objcopy... no
checking for objcopy... objcopy
checking for -ld... /usr/bin/ld -m elf_x86_64
checking for a BSD-compatible install... /usr/bin/install -c
checking whether g++ supports C++11 features by default... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for compress2 in -lz... yes
checking openssl/opensslconf.h usability... yes
checking openssl/opensslconf.h presence... yes
checking for openssl/opensslconf.h... yes
checking for AES_encrypt in -lcrypto... yes
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for XML_ParserCreate in -lexpat... yes
checking for pkg-config... no
checking for ffmpeg... no
configure: error: .
==> ERROR: A failure occurred in build().
    Aborting...
Finished with result: exit-code
Main processes terminated with: code=exited/status=4
Service runtime: 11.002s
CPU time consumed: 10.129s

I’ve tried pamac, pacman, yay, and the Add/Remove Software utility. Same result, every time.

Any ideas? Thank you in advance!

ffmpeg is a dependency, install it and try again.

You’re missing the prerequisites for using the AUR. See Arch User Repository - Manjaro

Yes, it is. :wink:

❯ pamac info makemkv | grep 'Depends On'
Depends On            : qt5-base ffmpeg
1 Like

Add the Chaotic repo so you can avoid the AUR.

It builds fine here. I agree with the other posters. Install ffmpeg and make sure base-devel package is installed. Then try again.

 Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "makemkv"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: makemkv 1.17.5-1 (Thu 28 Sep 2023 06:16:04 AM EDT)
==> Cleaning up...
1 Like

Oops…I probably should have mentioned that ffmpeg’s installation status was the first thing I checked. It’s there, don’t know why the terminal output is saying it isn’t.

When I get home I’ll take a crack at checking the AUR prereqs, although other software compiles just fine from it so I’m not sure how much of an effect that will have.

Because the build process uses pkg-config to find ffmpeg.

Just luck. I guess you have most other required tools installed and whatever other AUR packages you’re using don’t require pkg-config to build successfully. The base-devel package will install everything you need.

Off topic:- Makemkv was always a little flakey for my liking.

Have you considered using handbrake instead? – It’s readily available from the main Arch repo’s, without the need for the AUR.

sudo pacmac -S handbrake

Handbrake will do everything needed to convert and produce quality mkv files; though it’s not quite as ‘hands-free’ as you might be accustomed to using makemkv. It won’t crack dvd/bluray encryptions though. Cheers.

Well the good news is installing base-devel worked! Although I’m not sure how that package and all it’s dependencies got uninstalled from my system to begin with.
Bad news is installing the AUR version of MakeMKV didn’t solve my problem - while I’ve used Handbrake in the past, the goal here is to be able to watch my Rush concert blu-rays…but this is a topic for another section of the forum.
Thank you!

They didn’t - they are optional. It’s your job to read AUR wiki page, it’s all there.

Please note that commercial blu-ray discs are proteced by technologial measures preventing unauthorized duplication (including, but not limited to, “Cinavia” technology). MakeMKV doesn’t remove such measures, so MKV file produced from a commercial blu-ray disc will not play on a blu-ray player, even when converted back to M2TS format.

Best bet is to use duckduckgo for various instructions. I’ve never owned any blu rays so no idea and the legality is questionable. Good luck.