• Status Closed
  • Percent Complete
  • Task Type Patches
  • Category Infrastructure → Build environment
  • Assigned To No-one
  • Operating System All players
  • Severity Low
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by Uchida - 2009-03-13
Last edited by speachy - 2021-05-12

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

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?

Closed by  speachy
2021-05-12 21:39
Reason for closing:  Out of Date
Additional comments about closing:   Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407

Very outdated patch. Needs to be revisited with current mingw and WSL in mind.

Sorry, please do not use rockboxdev_mingw.patch . Instead, please use mingw_build.patch.

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.


Is building on MinGW faster than building on Cygwin?

In my PC, MinGW builds firmware, codecs, plugins about 2.5 times as fast as Cygwin.

Cygwin: 32 min

  1. Generating dependencies 11 min
  2. Build firmware (+tools) 6 min
  3. Build codecs 4 min
  4. Build plugins 11 min

MinGW: 13 min

  1. Generating dependencies 3 min
  2. Build firmware (+tools) 3 min
  3. Build codecs 2 min
  4. 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

Patch updates.

- bug fix: "make veryclean" does not remove tools/*.exe.

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.)


Available keyboard shortcuts


Task Details

Task Editing