dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Cygwin and mingw-gcc

Cygwin and mingw-gcc

From: Magnus Holmgren <>
Date: Fri, 03 Jun 2011 16:02:53 +0200


I'm trying to make tools/configure support the new mingw cross-compiler on
Cygwin (the package mingw-gcc-core, currently based on gcc 4.5.2). After some
testing, I came up with this patch:

Index: ../tools/configure
--- ../tools/configure (revision 29926)
+++ ../tools/configure (working copy)
_at__at_ -234,6 +234,10 _at__at_
     LDOPTS="$LDOPTS -mconsole"
+ if [ -f "/usr/bin/i686-pc-mingw32-gcc.exe" ]; then
+ prefixtools i686-pc-mingw32-
+ gccchoice=4.5.2
+ fi

_at__at_ -323,7 +327,7 _at__at_
    char *varp = (char *)&var;

- printf("%d\n", var);
+ printf("%d", var);
    return 0;

Does this look reasonable? I haven't done much shell scripting, and I'm not very
familiar with the configure script... Haven't tested it for other targets just
yet, so I don't know if I broke something.

By the way, without that printf change, I get this message: ": integer
expression expected [: 1".

Received on 2011-06-03

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy