[MPlayer-cygwin] Re: dvdnav and MingW

Frank Aurich fa859178 at inf.tu-dresden.de
Sun Nov 26 15:03:54 CET 2006


John Brown wrote:
> Frank  Aurich wrote:
> 
>> I've been noticing the rising amount of dvdnav-related commits to the 
>> repository, and I'd like to try it out. Unfortunately, I can't find 
>> any notes on what I need to make it work.
> 
> I was able to install compile and install libdvdnav using MingW/MSYS. I 
> was also able to enable libdvdnav support in MPlayer.  I do not think it 
> worked automatically. I believe that I had to edit the configure script 
> for libdvdnav and/or MPlayer. If you try to configure them, and you send 
> the error from the logs, I should be able to help you.
> 
>> Furthermore, does it work on MingW/Win32 as well?
> 
> Apparently, the official MPlayer svn cannot actually display DVD menus 
> right now. I have not tried to apply the DVDNAV patch, so I cannot say 
> whether it works on MingW/Win32 or not.

I've come around trying this by myself now. Configure worked fine, but 
make runs into a problem I can't figure out on my own:

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DDVDNAV_COMPILE -I../../src 
-I../../src/dvdread -O3 -Wall -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE64_SOURCE -idirafter ../../msvc/include -MT decoder.lo -MD 
-MP -MF .deps/decoder.Tpo -c decoder.c  -DDLL_EXPORT -DPIC -o 
.libs/decoder.o
In file included from ./decoder.h:29,
                  from ../../src/dvdnav_internal.h:71,
                  from decoder.c:36:
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/time.h:39: 
error: syntax error before '(' token
c:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sys/time.h:39: 
error: syntax error before "void"
make[3]: *** [decoder.lo] Error 1
make[3]: Leaving directory `/home/KyleK/libdvdnav/src/vm'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/KyleK/libdvdnav/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/KyleK/libdvdnav'
make: *** [all] Error 2


the sys/time.h looks fine, and is used by other projects (e.g. Mplayer) 
as well without problems.

Any idea what I can do to fix this?


Frank




More information about the MPlayer-cygwin mailing list