build tweak for 1.9.8

The place to discuss linux version of MakeMKV
Post Reply
mmuser
Posts: 2
Joined: Mon Dec 21, 2015 8:00 am

build tweak for 1.9.8

Post by mmuser »

I have fully-patched Debian 7 (Wheezy) x86_64 system, as of the date of this post, followed the instructions about doing the dist-upgrade and fetching the latest libavcodec (and related). The gcc version is "gcc version 4.7.2 (Debian 4.7.2-5)", and the kernel is "3.2.0-4-amd64".

makemkv-oss 1.9.8 did not initially build. The problem is that "PRIu64" was not defined for use in libmakemkv/src/libmkv.cpp .

I found this comment in /usr/include/inttypes.h :

/* The ISO C99 standard specifies that these macros must only be
defined if explicitly requested. */
#if !defined __cplusplus || defined __STDC_FORMAT_MACROS

# if __WORDSIZE == 64
# define __PRI64_PREFIX "l"
# define __PRIPTR_PREFIX "l"
# else
# define __PRI64_PREFIX "ll"
# define __PRIPTR_PREFIX
# endif
...

I used the following "configure" command line and everything builds, and, so far, works:

CFLAGS="-D __STDC_FORMAT_MACROS" ./configure
fulwood
Posts: 3
Joined: Mon Dec 21, 2015 2:43 am

Re: build tweak for 1.9.8

Post by fulwood »

> CFLAGS="-D __STDC_FORMAT_MACROS" ./configure

I could compile with this.

Thanks,
tensoval
Posts: 3
Joined: Wed Jan 06, 2016 12:44 pm

Re: build tweak for 1.9.8

Post by tensoval »

fulwood wrote:> CFLAGS="-D __STDC_FORMAT_MACROS" ./configure

I could compile with this.

Thanks,
wow- works like a charm. thankee
rentboy
Posts: 1
Joined: Wed Jul 13, 2016 3:24 pm

Re: build tweak for 1.9.8

Post by rentboy »

Thank you!
richhlo1021
Posts: 17
Joined: Sat Jun 13, 2015 5:09 am

Re: build tweak for 1.9.8

Post by richhlo1021 »

mmuser wrote: I used the following "configure" command line and everything builds, and, so far, works:

CFLAGS="-D __STDC_FORMAT_MACROS" ./configure
Worked for me too upgrading from 1.9.10 to 1.10.2

Thank you
Post Reply