[mythtv] [PATCH] Win32 frontend support
Ian Caulfield
imc25 at cam.ac.uk
Tue Jan 20 05:41:02 EST 2004
--On 20 January 2004 04.28 -0500 Isaac Richards <ijr at po.cwru.edu> wrote:
> On Monday 19 January 2004 03:11 pm, Ian Caulfield wrote:
>> This patch should allow mythfrontend to run under Windows using cygwin.
>
> Very cool. I've applied most of your patch to CVS.
>> The most significant change I've made is to move the definition of the
>> gContext variable into libmyth - this is necessary in order to allow
>> compilation under windows, and I don't think it should affect Linux
>> users. Please correct me if I'm wrong.
>
> You can't have it export that symbol to the libs? I'd like to keep
> things the way they are in this respect, unless really necessary..
Unfortunately I haven't found a way around it yet - when Windows builds a
DLL,
it needs to resolve all its inputs at linktime. I haven't found a way to
convince the linker that the gContext symbol will be available at runtime.
I'll see if I can figure it out - if anyone else knows much about Windows
DLL
imports, they're welcome to give advice.
>
> In addition to the gContext change, I left out the vsync parts of NVP.cpp
> -- I would really prefer that those were wrapped into vsync.cpp, so that
> there's no logic duplication in NVP.
I'll work on that. The code doesn't seem to work especially well anyway, so
I'll submit another patch once I've figured out how I need to do it.
Ian
More information about the mythtv-dev
mailing list