Repo steps
Ubuntu 12.04
download this script:
apply this patch:
--- a/build-mingw64-toolchain.sh
+++ b/build-mingw64-toolchain.sh
@@ -134,12 +134,13 @@ GMP_URL=http://ftp.gnu.org/gnu/gmp/
MPFR_VERSION=3.1.1
MPC_VERSION=1.0.1
BINUTILS_VERSION=2.22
-GCC_VERSION=4.8.1
+GCC_VERSION=4.8.3
# Need at least revision 5166
# For reference, I've built a working NDK with 5445
# (latest as of Sun Feb 3 2013 is 5578)
-MINGW_W64_VERSION=svn@5861
+# 6638 is very close to 3.1.0
+MINGW_W64_VERSION=svn@6638
JOBS=$(( $NUM_CORES * 2 ))
@@ -583,13 +584,13 @@ build_mingw_headers ()
mkdir -p $BUILD_DIR/$PKGNAME &&
cd $BUILD_DIR/$PKGNAME &&
log "$PKGNAME: Configuring" &&
$MINGW_W64_SRC/mingw-w64-headers/configure --prefix=$PREFIX_FOR_TARGET --host=$TARGET_TAG \
--build=$HOST_TAG --with-widl=$WITH_WIDL --enable-sdk=all
fail_panic "Can't configure mingw-64-headers"
run make
log "$PKGNAME: Installing" &&
run make install -j$JOBS &&
Error:
mingw-w64-headers: Installing
/tmp/build-mingw64-toolchain-vharron/install-x86_64-linux-gnu/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-widl -DBOOL=WINBOOL -I/tmp/build-mingw64-toolchain-vharron/src/mingw-w64-svn-r6638/mingw-w64-headers/include -I/tmp/build-mingw64-toolchain-vharron/src/mingw-w64-svn-r6638/mingw-w64-headers/direct-x/include -Icrt -I/tmp/build-mingw64-toolchain-vharron/src/mingw-w64-svn-r6638/mingw-w64-headers/crt -h -o include/windows.security.cryptography.h /tmp/build-mingw64-toolchain-vharron/src/mingw-w64-svn-r6638/mingw-w64-headers/include/windows.security.cryptography.idl
error: Could not generate a temp name from include/windows.security.cryptography.h.1a4f9d
make: *** [include/windows.security.cryptography.h] Error 2
Error: Can't configure mingw-64-headers
Please use the copy from git, mingw-w64 SVN is no longer active.
Moreover please report it to whoever wrote the build script instead.