Archive for December, 2007

31st Dec 2007

Installing CeGCC on Ubuntu

On the CeGCC sourceforge download page, they give linux binaries, but in rpm format (not the .deb’s that Ubuntu uses), so to make this work, we need to install the rmps with alien:

sudo alien -i cegcc-cegcc-0.51.0-1.i586.rpm mandriva-cegcc-mingw32ce-0.51.0-1.i586.rpm

Once those are installed, we still aren’t finished, because the package installs to /opt/ so the binaries (arm-wince-cegcc-gcc etc.) aren’t available to us without using long complicated prefixes. So we just need to symlink the the binaries to our /usr/bin/.

sudo ln -s /opt/mingw32ce/bin/* /usr/bin/
sudo ln -s /opt/cegcc/bin/* /usr/bin/

(thanks to Pablo Rogina for the tip on symlinking)
After that, you’re all set!

Posted in axim, c, pocketpc, windows mobile | 3 Comments »

28th Dec 2007

Cross-Compiling for Windows Mobile on Ubuntu

There are a few compilers I’ve found that will do this:

  • the (only for windows) Pelles C compiler through WINE
  • the PocketPC-GCC ubuntu package
  • the CeGCC cross-compiler for pocketpc

Pelles C

Pelles C is a great IDE, not only for windows mobile, but also for windows smart phone and regular old windows. My only objection to it is that it takes really, really long to compile even the simplest programs. Now, this might seem a small failing to some, but having to wait up to a minute for hello world to compile drives me nuts, especially since the others compile soo much faster.
Links:

PocketPC-GCC

This package is great for general C, and (though I haven’t tried this) might be excellent for porting linux apps to the PocketPC. Unfortunately, It doesn’t come with the windows headers/libs (these can probably be added, but I’m lazy, and CeGCC comes with them pre-loaded). In a few days I will probably experiment with getting Win32 programming to work with this compiler, so check back to see if I’m successful ;).
To install this, just do “sudo apt-get install pocketpc-gcc”. You might want to install pocketpc-g++ and pocketpc-sdk as well. I haven’t found any docs/tutorials/etc. for this package, witch is part of the reason I’m hesitant to use it.

Update: On closer inspection, I’ve found that this compiler results in massively bigger files: For the standard “helloworld.c”, the resulting exe was 338kb! in contrast to the 10kb exe compiled by CeGCC ;). Thats it, I’m definitely sticking w/ cegcc.

CeGCC

This is my champion for the moment, and the one I’m leaning win32 c on. It comes with the windows and pocketpc specific headers (though no directx or opengl). This will be the one that I will be using in my upcoming tutorials.
Links:

My CeGCC Tutorials:

Posted in axim, c, how-to, pocketpc, ubuntu, windows mobile | No Comments »

27th Dec 2007

Dell Axim

A few weeks ago, I got a Dell Axim x51v, running Windows Mobile 5 (ouch), and this has consumed most of my tinkering time since (which is the reason, along with school, that I hav’nt posted anything in a while). So I plan to do a series of posts on Dell Axims, Windows Mobile, Programs, and Axim+Ubuntu in the near future.

Posted in axim, c, ubuntu | No Comments »