Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

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

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

Details

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 cross_compilers.zip is a patch file necessary to make cross compilers using by rockboxdev.sh.

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?

   rockboxdev_mingw.patch (1.5 KiB)
 b/tools/rockboxdev.sh |   31 +++++++++++++++++++++++++++++--
 1 file changed, 29 insertions(+), 2 deletions(-)

   cross_compilers.patch.zip (15.9 KiB)
This task depends upon

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

   mingw_build.patch (3 KiB)
 b/apps/codecs/libfaad/codebook/hcb.h |   24 ++++++++++++------------
 b/tools/ovl_offset.pl                |    2 +-
 b/tools/rockboxdev.sh                |   31 +++++++++++++++++++++++++++++--
 3 files changed, 42 insertions(+), 15 deletions(-)

Comment by Yoshihisa Uchida (Uchida) - Friday, 13 March 2009, 15:38 GMT+2
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/rockboxdev.sh, the following error messages might be output.
"make.exe: *** couldn't commit memory for cygwin heap, Win32 error 0"

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

Comment by Boris Gjenero (dreamlayers) - Sunday, 15 March 2009, 00:22 GMT+2
Is building on MinGW faster than building on Cygwin?
Comment by Yoshihisa Uchida (Uchida) - Sunday, 15 March 2009, 04:33 GMT+2
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, 06:39 GMT+2
Patch updates.

changes:
- bug fix: "make veryclean" does not remove tools/*.exe.
   mingw_build_2.patch (3.4 KiB)
 b/apps/codecs/libfaad/codebook/hcb.h |   24 ++++++++++++------------
 b/tools/ovl_offset.pl                |    2 +-
 b/tools/rockboxdev.sh                |   31 +++++++++++++++++++++++++++++--
 b/tools/root.make                    |    5 ++++-
 4 files changed, 46 insertions(+), 16 deletions(-)

Comment by Yoshihisa Uchida (Uchida) - Wednesday, 15 July 2009, 13:34 GMT+2
sync r21877
   mingw_build_3.patch (3 KiB)
 b/apps/codecs/libfaad/codebook/hcb.h |   24 ++++++++++++------------
 b/tools/ovl_offset.pl                |    2 +-
 b/tools/rockboxdev.sh                |   31 +++++++++++++++++++++++++++++--
 3 files changed, 42 insertions(+), 15 deletions(-)

   cross_compilers.patch-2.zip (16 KiB)
Comment by Boris Gjenero (dreamlayers) - Thursday, 28 January 2010, 03:42 GMT+2
Which Perl do you use? ActivePerl 5.10.1.1006 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/Util.pm. If I get it from ActivePerl, Scalar-List-Utils-1.14 or Scalar-List-Utils-1.22 (at http://cpansearch.perl.org/src/GBARR/ ) , the make.dep output contains a lot of repeats of the same file.)

Loading...