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

Rockbox mail archive

Subject: Re: creating voice files

Re: creating voice files

From: Magnus Holmgren <>
Date: Sun, 19 Feb 2012 13:42:28 +0100

On 2012-02-19 11:02, claudio capriati wrote:

> Do you use cygwin to create voice files?
> Under cygwin i know to compile rockbox successfully, but when i try to
> compile voice file i receive error pasted below. Somebody can help me?
> What should i do Step by step?
> I think that the matter is in the gcc compiler, but i don't know to
> use mingw-targeted cross-compiler. Thanks
> $ make voice
> make[1]: Entering directory `/home/claus/rockbox/tools'
> make -C rbspeex
> make[2]: Entering directory `/home/claus/rockbox/tools/rbspeex'
> CC
> gcc: The -mno-cygwin flag has been removed; use a mingw-targeted
> cross-compiler.

You have a too new version of gcc, where the -mno-cygwin flag is no longer
supported. Installing the Cygwin package mingw-gcc-core should work, but it
requires some makefile changes as well.

I tried updating the rbspeex makefile, but it didn't work as expected. I changed
the Cygwin check in tools/rbspeex/Makefile to this:

ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
ifeq ($(shell which i686-pc-mingw32-gcc),/usr/bin/i686-pc-mingw32-gcc)
CC := /usr/bin/i686-pc-mingw32-gcc

But that didn't have the expected effect. It did compile, but it didn't use the
CC I had specified, but rather "/usr/bin/gcc" (not building a standalone
executable). The "ifeq" seems correct, because I can set CROSS there, and have
it used as expected (this doesn't help though, CC being set as it is...).

Perhaps someone more familiar with GNU make can help (both getting the CC change
to work, and detect mingw-gcc in a better way)?

Received on 2012-02-19

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