Problem when cross compiling Gecko (ILocation not declared)

Erik van Pienbroek erik at vanpienbroek.nl
Tue Apr 28 21:06:41 UTC 2015


Zhenbo Li schreef op di 28-04-2015 om 22:44 [+0800]:
> Hello, everyone
> I'm trying to use mingw-w64 to cross compile gecko (hg version), and,
> I faced a problem:
> 
> 1:59.33 In file included from
> /home/lizhenbo/src/mozilla-central
> -upstream/dom/geolocation/nsGeolocation.cpp:53:0:
>  1:59.33 /home/lizhenbo/src/mozilla-central
> -upstream/dom/system/windows/WindowsLocationProvider.h:43:12:
> error: 'ILocation' was not declared in this scope
>  1:59.33    nsRefPtr<ILocation> mLocation;
>  1:59.33             ^
>  1:59.33 /home/lizhenbo/src/mozilla-central
> -upstream/dom/system/windows/WindowsLocationProvider.h:43:21:
> error: template argument 1 is invalid
>  1:59.33    nsRefPtr<ILocation> mLocation;
>  1:59.33
> 
> $ cat /usr/i686-w64-mingw32/sys-root/mingw/include/locationapi.h|grep
> -w ILocation
> And nothing is found
> 
> There is a patch by Jacek[0], has it been merged to trunk? What 
> should
> I do to cross compile gecko?

Hi,

Apparently the required change is already available in upstream mingw
-w64 master: http://sourceforge.net/p/mingw-w64/mingw
-w64/ci/7268caece9b4cb33ff698306e51140b11d7656b0/
However, this change hasn't been backported to the v4.x branch yet.
I'll ask upstream mingw-w64 developers if they can backport the commit
in question to the v4.x branch after which I can prepare an updated
mingw-headers package for Fedora.

Regards,

Erik



More information about the mingw mailing list