Page 1 of 1

build tweak for 1.9.8

Posted: Mon Dec 21, 2015 8:12 am
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

Re: build tweak for 1.9.8

Posted: Wed Dec 23, 2015 1:58 am
by fulwood
> CFLAGS="-D __STDC_FORMAT_MACROS" ./configure

I could compile with this.

Thanks,

Re: build tweak for 1.9.8

Posted: Wed Jan 06, 2016 4:56 pm
by tensoval
fulwood wrote:> CFLAGS="-D __STDC_FORMAT_MACROS" ./configure

I could compile with this.

Thanks,
wow- works like a charm. thankee

Re: build tweak for 1.9.8

Posted: Wed Jul 13, 2016 3:26 pm
by rentboy
Thank you!

Re: build tweak for 1.9.8

Posted: Fri Oct 14, 2016 2:30 am
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