[MPlayer-users] libmpdvdkit compilation problems
Steven M. Schultz
sms at 2BSD.COM
Thu Apr 25 02:59:02 CEST 2002
Hi -
The libmpdvdkit looks very similar to the Videolan code - I
recognized much of it. One problem is that the extra directories
(where BSDI_dvdioctl/dvd.h is kept) was not brought along.
The problem I am running into is that while BSD/OS is a "BSD" system
the DVD interface was made to look like Linux (on purpose to make
porting easier).
I can't seem to find a way to have ./configure set
#define HAVE_LINUX_DVD_STRUCT 1
#undef DVD_STRUCT_IN_DVD_H
#undef HAVE_BSD_DVD_STRUCT
What I did was modify libmpdvdkit thus:
--- ioctl.c.dist Wed Apr 24 12:28:03 2002
+++ ioctl.c Wed Apr 24 17:41:11 2002
@@ -53,7 +53,9 @@
# include <dvd.h>
#endif
#ifdef DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H
-# include <BSDI_dvdioctl/dvd.h>
+# undef DVD_STRUCT_IN_DVD_H
+# define HAVE_LINUX_DVD_STRUCT
+# include <dvd.h>
#endif
#ifdef SYS_BEOS
# include <malloc.h>
And changed ./configure like this:
--- configure.dist Wed Apr 24 16:17:51 2002
+++ configure Wed Apr 24 17:32:18 2002
@@ -1585,13 +1585,13 @@
echores "$_dvd"
-echocheck "extras/BSDI_dvdioctl/dvd.h"
+echocheck "BSDI dvd.h"
cat > $TMPC << EOF
-#include <extras/BSDI_dvdioctl/dvd.h>
+#include <dvd.h>
int main(void) { return 0; }
EOF
_bsdi_dvd=no
-cc_check && _bsdi_dvd=yes
+cc_check && bsdos && _bsdi_dvd=yes
if test "$_bsdi_dvd" = yes ; then
_def_bsdi_dvd='#define DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H 1'
else
That gets the paths correct and compilation succeeds.
It's not _too_ ugly is it? ;)
Ideas, suggestions on how to do it better? If the above is not
too objectionable then that can we use that?
Thanks
Steven Schultz
sms at 2bsd.com
More information about the MPlayer-users
mailing list