[mythtv-users] Compile error in mythdvd

R. Geoffrey Newbury newbury at mandamus.org
Fri Nov 18 15:49:47 EST 2005


I'm trying to compile the mythdvd plugin.
If fails with an error:

******************
make[2]: Entering directory `/backup/mythtv/mythplugins/mythdvd/mythdvd'
g++ -c -pipe -march=c3-2 -Wall -W -Wall -Wno-switch -Os 
-fomit-frame-pointer -D_REENTRANT -DPIC -fPIC  -D_GNU_SOURCE 
-DPREFIX=\"/usr/local\" -DMMX -Di386 -D_FILE_OFFSET_BITS=64 
-DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED 
-I/usr/lib/qt-3.3/mkspecs/default -I. -I/usr/local/include 
-I/usr/kde/3.3/include -I/usr/local/include 
-I/usr/src/kernels/2.6.13.4/include -I/usr/X11R6/include 
-I/usr/lib/qt-3.3/include -o dvdripbox.o dvdripbox.cpp
In file included from /usr/include/dvdread/ifo_read.h:24,
                 from dvdinfo.h:16,
                 from dvdripbox.h:23,
                 from dvdripbox.cpp:20:
/usr/include/dvdread/ifo_types.h:35:2: error: #error "Must include 
<inttypes.h> or <stdint.h> before any libdvdread header."
make[2]: *** [dvdripbox.o] Error 1
make[2]: Leaving directory `/backup/mythtv/mythplugins/mythdvd/mythdvd'
make[1]: *** [sub-mythdvd] Error 2
make[1]: Leaving directory `/backup/mythtv/mythplugins/mythdvd'
make: *** [sub-mythdvd] Error 2
***********************

The chunk of the file referred to is as follows. I have added the 
<include> references to inttyps.h and stdint.h  but that DOES NOT WORK.
***added***
#include <inttypes.h>
#include </usr/include/stdint.h>
****original***
#include <dvdread/dvd_reader.h>

#if defined(__BEOS__)
#if !defined(_INTTYPES_H_) && !defined(_INTTYPES_H) && 
!defined(_STDINT_H_) && !defined(_STDINT_H)
#error "Must include <inttypes.h> or <stdint.h> before any libdvdread 
header."
#endif
#else
#if !defined(UINT8_MAX) || !defined(UINT16_MAX) || !defined(INT32_MAX)
#error "Must include <inttypes.h> or <stdint.h> before any libdvdread 
header."
#endif
#endif
****************
Line 35 of the file is the latter error line.... so it is the  'if 
!defined(UINT...' etc which fails.. but stdint.h has those definitions.
And putting #undef (_BEOS_) prior to the error checking group does 
nothing either (huh??)..

Help please.

Geoff




More information about the mythtv-users mailing list