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