You are not logged in.
The mingw.org compiler does not support compiling x86_64 Windows binaries. mingw-w64 (http://mingw-w64.sourceforge.net/)
supports creating win64 binaries. I downloaded the Automated Build binary package for Linux-x86_64 host from http://sourceforge.net/projects/mingw-w64/files/ but I do not know how to compile from source.
Can anyone create a PKGBUILD for mingw-w64 for Arch64. Thanks in advance.
My new forum user/nick name is "the.ridikulus.rat" .
Offline
Is there anybody who uses a PKGBUILD locally in their system? Why no reply?
My new forum user/nick name is "the.ridikulus.rat" .
Offline
I've given it a try since I am in need for such a package too, but I haven't succeeded in building all parts of the package. Maybe I'll have some more time during next week, but I'm not going to make any promises.
Offline
I finally got it working using the scripts provided by http://code.google.com/p/mingw-w64-dgn/. I produced a PKGBUILD for it, if someone's interested. I'm not sure whether it works for x86, and the dependencies may be incorrect, though.
PKGBUILD:
pkgname=mingw-w64
pkgver=20101016
pkgrel=1
pkgdesc='Toolchain for building for Windows x64'
url='http://mingw-w64.sourceforge.net/'
arch=('x86_64')
license=('GPL')
depends=()
makedepends=('flex')
install=$pkgname.install
source=(
'http://ftp.gnu.org/gnu/binutils/binutils-2.20.tar.gz'
'ftp://ftp.fu-berlin.de/unix/languages/gcc/releases/gcc-4.5.1/gcc-4.5.1.tar.gz'
'http://downloads.sourceforge.net/project/mingw-w64/Toolchain%20sources/Automated%20Builds/mingw-w64-src_20101016.tar.bz2'
'ftp://ftp.gmplib.org/pub/gmp-5.0.1/gmp-5.0.1.tar.bz2'
'http://www.multiprecision.org/mpc/download/mpc-0.8.2.tar.gz'
'http://www.mpfr.org/mpfr-2.4.2/mpfr-2.4.2.tar.bz2'
)
md5sums=('e99487e0c4343d6fa68b7c464ff4a962'
'b38cd97dd2400685c114e6fe79b5e95b'
'1703e3d6d0bf70d280c8b738e794cc31'
'6bac6df75c192a13419dfd71d19240a7'
'e98267ebd5648a39f881d66797122fb6'
'89e59fe665e2b3ad44a6789f40b059a0')
_svntrunk='http://mingw-w64-dgn.googlecode.com/svn/trunk'
_svnmod='mingw-w64-dgn'
build()
{
svn co $_svntrunk $_svnmod || exit 1
msg 'SVN checkout done'
cd ${srcdir}/mingw-w64-dgn
mkdir -p source
ln -f -s ${srcdir}/binutils/src source/binutils
ln -f -s ${srcdir}/gcc/src source/gcc
ln -f -s ${srcdir}/mingw source/mingw-w64
ln -f -s ${srcdir}/gmp-5.0.1 source/
ln -f -s ${srcdir}/mpfr-2.4.2 source/
ln -f -s ${srcdir}/mpc-0.8.2 source/
sh ./rebuild_cross.sh
}
package()
{
mkdir -p ${pkgdir}/opt/mingw-w64
cp -r ${srcdir}/mingw-w64-dgn/cross/* ${pkgdir}/opt/mingw-w64/
}
mingw-w64.install:
post_install() {
/opt/mingw-w64/bin/x86_64-w64-mingw32-ranlib \
`find /opt/mingw-w64/ -iname '*.a'`
echo ">>> Add /opt/mingw-w64/bin to your PATH."
}
post_upgrade() {
post_install
}
Offline
I created a PKGBUILD based on the Automated builds at mingw-w64 sourceforge downloads site - mingw-w64-bin http://aur.archlinux.org/packages.php?ID=43761
My new forum user/nick name is "the.ridikulus.rat" .
Offline
In the off chance anyone's still interested, I'm trying to submit proper PKGBUILD files to the AUR, in the hope they will be useful and could perhaps replace (or in a first step, complement) the mingw.org cross-compiler in the [community] someday.
They will be (still in the process of refining the packages and PKGBUILDS right now, I'm almost there ):
mingw-w64-headers
mingw-w64-crt
mingw-w64-binutils
mingw-w64-gcc-base
mingw-w64-gcc
mingw-w64-winpthreads
and will contain everything needed for 32-bit and 64-bit Windows cross-compilation.
Offline
OK, I have uploaded first (hopefully usable) versions of my PKGBUILDS:
I'll post them in the order you'll need to build+install them:
mingw-w64-headers-nowinpthreads: https://aur.archlinux.org/packages.php?ID=53892
mingw-w64-binutils: https://aur.archlinux.org/packages.php?ID=53893
mingw-w64-gcc-base: https://aur.archlinux.org/packages.php?ID=53925
mingw-w64-headers: https://aur.archlinux.org/packages.php?ID=53892
mingw-w64-crt: https://aur.archlinux.org/packages.php?ID=53924
mingw-w64-winpthreads: https://aur.archlinux.org/packages.php?ID=53929
mingw-w64-gcc: https://aur.archlinux.org/packages.php?ID=53926
Yes, it's a bitch to build, but it should work in this order. The headers-nowinpthreads package is necessary because winpthreads overwrites two (per arch) dummy headers, which cause build failures if missing (#include <dummy.h> only works when dummy.h exists ).
Offline