[Nut-upsdev] cross-compiling the windows_port branch (winevent.h)

Charles Lepple clepple at gmail.com
Fri Nov 19 04:13:14 UTC 2010


On Nov 18, 2010, at 9:08 AM, Frédéric Bohé wrote:

> On jeu., 2010-11-18 at 08:52 -0500, Charles Lepple wrote:
>> On Thu, Nov 4, 2010 at 5:24 AM, Frédéric Bohé  
>> <fredericbohe at eaton.com> wrote:
>>> It is generated from the winevent.mc file.
>>> This is what I do to work with windows event log (Registry edition  
>>> will
>>> be done by an installer in the future. Arnaud is working on  
>>> automatic
>>> winevent.h and winevent.dll generation):
>>>
>>> Run the following commands :
>>>
>>> windmc winevent.mc
>>> windres winevent.rc winevent.o
>>> dllwrap --output-lib=libwinevent.a --dllname=winevent.dll
>>> --driver-name=gcc winevent.o
>>
>> As a data point, I can't get this newer version of binutils to grok
>> that file, either:
>>
>> $ i386-win32-windmc winevent.mc
>> In winevent.mc at line 1: parser: syntax error.
>> In winevent.mc at line 1: fatal: syntax error.
>>
>> $ i386-win32-windmc --version
>> GNU windmc (GNU Binutils) 2.20.1.20100303
>
> FYI here I have :
>
> $ windmc.exe  --version
> GNU windmc (GNU Binutils) 2.20.51.20100613

It might have been a strange interaction with ccache. Seems to work now.


More information about the Nut-upsdev mailing list