On 2016-02-04 10:35 AM, [email protected] wrote: > I try to do a cross compile on linux centos 64bit for windows 64 bit. I tried > as written here > "https://developer.mozilla.org/en-US/docs/Cross_Compile_Mozilla_for_Mingw32". > > but I get always this error and don`t know how to fix it. > > configure: error: You are targeting Windows version 0x06030000, but your SDK > only supports up to version # 1 "conftest.h"0000. Install and use an updated > SDK, or target a lower version using --with-windows-version. Alternatively, > try running the Windows SDK Configuration Tool and selecting a newer SDK. See > https://developer.mozilla.org/En/Windows_SDK_versions for more details on > fixing this.
Do you have the right mingw-w64-headers package installed? This is caused by a missing winsdkver.h header (see build/autoconf/winsdk.m4 where we try to capture the Windows SDK version.) Also, the last time I build using mingw32, I used a slightly modified mozconfig than the one on the MDN page but I don't remember why I had to modify it unfortunately (this was probably a year ago.) Here is the mozconfig for your reference: #Specify the cross compile export CROSS_COMPILE=1 ac_add_options --enable-application=browser ac_add_options --target=i686-w64-mingw32 ac_add_options --enable-default-toolkit=cairo-windows mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-mingw mk_add_options AUTOCLOBBER=1 ac_add_options --disable-debug ac_add_options --enable-optimize ac_add_options --disable-updater ac_add_options --disable-crashreporter ac_add_options --disable-maintenance-service ac_add_options --disable-webrtc ac_add_options --disable-webgl ac_add_options --disable-accessibility # uncomment if you don't have widl installed # Use parallel build. Adjust number of processes for your setup. #mk_add_options MOZ_MAKE_FLAGS=-j8 # Avoid runtime dependency on GCC DLLs. export LDFLAGS="-static-libgcc -static-libstdc++" _______________________________________________ dev-builds mailing list [email protected] https://lists.mozilla.org/listinfo/dev-builds

