On 23.04.2007, at 23:00, Pedro Alves wrote: > bernhard escreveu: >> Hi! I have a 'newbie' question... >> Is there a way to have gcc run native on a arm device? > > It has been done before: > http://pocketgcc.sourceforge.net/ > > I never saw their sources, but I guess it was based on Voxware's > toolchain. With some work, it should be possible to have native > cegcc->cegcc, or cegcc->mingw32ce compilers. Not really sure there > is real use for it though. > >> I was able to build a gcc toolchain (mingw32ce and cegcc) on my >> MacOSX to do cross-compiling, > > > Interesting, so you were able to build it. For the archives, could > you explain what was going wrong before, and how you solved it?
Of course! It was not really hard to get it going. The first problem i ran into was that on my OSX box the 'readlink -f .' would not do the obvious. I replaced it with `pwd`: --------8<-------- $ svn diff build-mingw32ce.sh Index: build-mingw32ce.sh =================================================================== --- build-mingw32ce.sh (Revision 916) +++ build-mingw32ce.sh (Arbeitskopie) @@ -3,9 +3,9 @@ if [ $# -lt 2 ] ; then echo "Using defaults:" -export BASE_DIRECTORY=`readlink -f .` +export BASE_DIRECTORY=`pwd` export BUILD_DIR=${BASE_DIRECTORY}/build-mingw32ce -export PREFIX=/opt/mingw32ce +export PREFIX=${BASE_DIRECTORY}/opt/mingw32ce if [ $# -lt 1 ] ; then BUILD_OPT="all" -------->8-------- I also decided to use another prefix dir, but that is not really important. I made this changes in "build-mingw32ce.sh" and in "build- cegcc.sh". --------8<-------- $ svn diff build-cegcc.sh Index: build-cegcc.sh =================================================================== --- build-cegcc.sh (Revision 916) +++ build-cegcc.sh (Arbeitskopie) @@ -2,9 +2,9 @@ if [ $# -lt 2 ] ; then echo "Using defaults:" - export BASE_DIRECTORY=`readlink -f .` + export BASE_DIRECTORY=`pwd` export BUILD_DIR=${BASE_DIRECTORY}/build-cegcc - export PREFIX=/opt/cegcc + export PREFIX=${BASE_DIRECTORY}/opt/cegcc if [ $# -lt 1 ] ; then BUILD_OPT="all" -------->8-------- After that changes i was able to start both build scripts without parameters. Unfortunately gdb does not build using "build-mingw32ce.sh": .../cegcc/src/gdb/gdb/exceptions.h:165: error: parse error before ‘va_list’ make[2]: *** [gdb.o] Error 1 make[1]: *** [all-gdb] Error 2 make: *** [all] Error 2 "build-cegcc.sh" runs *perfectly*well* without any complaints!!! > since i would like to have Python and >> PyGame running on my mobile device. But unfortunately Python needs >> to execute some c code during configuration, and that is not >> possible on the build system; Bootstrapping of Python is also >> quite host- dependent i am afraid. Maybe i would be off better if >> i had gcc running directly on my mobile device; > > Isn't Python ported to WinCE already? A quick google shows up: > http://sourceforge.net/projects/pythonce > > Should be easy to port it that mingw32ce. Should be mostly > a matter of changing the build system. > > But, since mingw32ce is based on gcc, it has a bigger chance > of being integrated into the official build systems, at > least when they use autoconf. I have no idea what python uses, > but doesn't it have any support for being cross-built? It has; But unfortunately it is somewhat tricky to cross build it, it needs 'python' for bootstrapping. I will try to find out how i can use an existing python interpreter to handle bootstrapping of an other python interpreter that is being built but never 'run'. >> Any ideas are welcome, i hope i can make PyGame run on an arm >> device without having to use M$ Visual Studio... PyGame is the thing i want to run; I got PythonCE running, but i can not import pygame with it... >> Btw thank you all for the wonderful basis - CeGCC is cool. > > Thanks, welcome on board! > >> PS.: PocketConsole seemt to be disfunctional on wince5.0? > > Have you already tried to set > HKEY_LOCAL_MACHINE\Drivers\Console\OutputTo to 0 ? That SOLVED the problems :-) And still I hope i can make pygame and gdb run... Georg Gogo. BERNHARD ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel