libdvdread headers with streamdvd
sean <[email protected]> Wed, 03 Nov 2004 22:06:33 -0500
| Newsgroups | gmane.comp.video.ogle.devel |
|---|---|
| Message-ID | <[email protected]> |
I'm trying to build streamdvd. I get this error:
make
g++ -g -Wall -ldvdread -lm -o streamdvd -I. -Implex streamdvd.c requant.c mplex/*.c mplex/*.cpp
In file included from /usr/include/dvdread/ifo_read.h:23,
from streamdvd.c:22:
/usr/include/dvdread/ifo_types.h:26:2: #error "Must include <inttypes.h> or <stdint.h> before any libdvdread header."
So I patched and inserted an include for stdint.h in streamdvd.c:
#include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <getopt.h>
#include <dvdread/ifo_read.h>
#include <dvdread/ifo_types.h>
..............
Same error.
I went and got libdvdread from cvs. same error
glibc 2.3.3
Looked at ifo_types.h I found:
#if !defined(UINT8_MAX) || !defined(UINT16_MAX) || !defined(INT32_MAX)
#error "Must include <inttypes.h> or <stdint.h> before any libdvdread header."
#endif
which are all defined in stdint.h
# define UINT8_MAX (255)
# define UINT16_MAX (65535)
# define INT32_MAX (2147483647)
So what am I doing wrong?
sean