[mythtv] Re: compiling mythtv frontend for cygwin

Mario L superm1 at gmail.com
Tue Sep 28 15:41:04 EDT 2004


Well, but still WINVER is defined to 0x400.  We need the newer
features, ex multimonitor support, to you do have to define WINVER
before windef.h gets included.


On Tue, 28 Sep 2004 15:06:45 -0400, Joel Anderson <bitjunkie at gmail.com> wrote:
> 
> 
> > I couldn't seem to find it declared anywhere.  Grep through your files
> > and see if you can figure out where it is actually defined.  Also - It
> > might be defined as a lower value, in order for the errors:
> >
> > > videoout_dx.cpp:594: error: `MONITOR_DEFAULTTONEAREST' undeclared (first use
> > >   this function)
> > > videoout_dx.cpp:594: error: (Each undeclared identifier is reported only once
> > >   for each function it appears in.)
> > > videoout_dx.cpp: In member function `virtual void
> > >   VideoOutputDX::PrepareFrame(VideoFrame*, FrameScanType)':
> > > videoout_dx.cpp:262: warning: unused parameter `FrameScanType t'
> > > make: *** [videoout_dx.o] Error 1
> >
> > to be solved, it must be defined to be >= 0x500 according to winuser.h
> >
> >
> >
> > > > //mythCVS/libs/libmythtv/videoout_dx.cpp
> > > > /* ADD */
> > > > #define WINVER 0x500
> >
> > > For me this is already defined, although I can't find where.
> 
> Yes I finally found it in /usr/include/w32api/windef.h:
> 
> #ifndef WINVER
> #define WINVER 0x0400
> /*
>  * If you need Win32 API features newer the Win95 and WinNT then you must
>  * define WINVER before including windows.h or any other method of including
>  * the windef.h header.
>  */
> #endif
> 
> So I just didn't have things in the right order in videoout_dx.cpp.  :)
> 
> --
> Joel
>


More information about the mythtv-dev mailing list