FS#10021 - Patch to build Rockbox firmware by using MinGW.

Attached to Project: Rockbox
Opened by Yoshihisa Uchida (Uchida) - Friday, 13 March 2009, 14:11 GMT
Task Type Patches
Category Build environment
Status Unconfirmed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


The Rockbox firmware and cross compilers build by using MinGW.

It is necessary to use MSYS's make (MinGW's make (mingw32-make) does not used.).

The is a patch file necessary to make cross compilers using by

I confirmed the Rockbox firmware, codecs and plugins was built by using the compiler on MinGW.
But I can not confirm whether the Rockbox executes excluding iPod video.

Could you confirm operation to various players?

This task depends upon

Comment by Yoshihisa Uchida (Uchida) - Friday, 13 March 2009, 14:14 GMT
Sorry, please do not use rockboxdev_mingw.patch . Instead, please use mingw_build.patch.

Comment by Yoshihisa Uchida (Uchida) - Friday, 13 March 2009, 14:38 GMT
Please apply the patch of  FS#10020  before applying the mingw_build.patch.

And more, If you use Windows Vista, when cross compilers build using tools/, the following error messages might be output.
"make.exe: *** couldn't commit memory for cygwin heap, Win32 error 0"

At this time, please tools/ is executed again, and restart processing (select "continue").
This error is a problem of MinGW not but my patch.

Comment by Boris Gjenero (dreamlayers) - Saturday, 14 March 2009, 23:22 GMT
Is building on MinGW faster than building on Cygwin?
Comment by Yoshihisa Uchida (Uchida) - Sunday, 15 March 2009, 03:33 GMT
In my PC, MinGW builds firmware, codecs, plugins about 2.5 times as fast as Cygwin.

Cygwin: 32 min
- Generating dependencies 11 min
- Build firmware (+tools) 6 min
- Build codecs 4 min
- Build plugins 11 min

MinGW: 13 min
- Generating dependencies 3 min
- Build firmware (+tools) 3 min
- Build codecs 2 min
- Build plugins 5 min

-- My build environments ---

OS: Windows Vista SP1
CPU: Intel Core2 Duo 2.5GHz
Cygwin: 1.5.25
MinGW: 5.1.4
MSYS: 1.0.11

source: r20325 + mingw_build.patch
target: iPod video 64MB
Comment by Yoshihisa Uchida (Uchida) - Sunday, 15 March 2009, 05:39 GMT
Patch updates.

- bug fix: "make veryclean" does not remove tools/*.exe.
Comment by Yoshihisa Uchida (Uchida) - Wednesday, 15 July 2009, 11:34 GMT
sync r21877
Comment by Boris Gjenero (dreamlayers) - Thursday, 28 January 2010, 02:42 GMT
Which Perl do you use? ActivePerl can't handle a long command line needed for dependencies in r24352, and it generates paths with drive letters instead the corresponding MSYS directories. MSYS Perl seems broken. (It lacks List/ If I get it from ActivePerl, Scalar-List-Utils-1.14 or Scalar-List-Utils-1.22 (at ) , the make.dep output contains a lot of repeats of the same file.)