How to Compile Pocket PC PDA Application on Linux
|
|
Pocket PC is perhaps the most widely known PDA device available to general consumers, although it comes with Microsoft Windows CE, it still does not stop GNU/Linux users from syncing their Pocket PC device with Linux machines.

In this post, I'll concentrate on developing Pocket PC application on Linux machine by using CeGCC.
First of all you need to install CeGCC cross compiler on your system by either
- Compiling CeGCC from its source code, or
- Installing it from Binary Package (rpm, deb)
For this quick introduction, I'll concentrate on installing the compiler from Debian Package (deb). Other packages can be downloaded from CeGCC project page
Get the Deb package
- cegcc-cegcc_0.50-2_i386.deb (21MB)
- cegcc-mingw32ce_0.50-2_i386.deb (19MB)
Install both packages
Install both mingw32ce and cegcc using dpkg,
$ sudo dpkg -i cegcc-mingw32ce_0.50-2_i386.deb
$ sudo dpkg -i cegcc-cegcc_0.50-2_i386.deb
the package files will be installed on /opt.
Download Example Source Code
- hello.c - Display Hello world dialog
- randrect.cpp - Random Rectangle
Compiling the application
To compile the example applications, you need to change the directory to "/opt/cegcc/bin/", then execute
$ ./arm-wince-cegcc-gcc ~/hello.c -o ~/hello.exe
Copy hello.exe to your Pocket PC PDA, and execute it using File Explorer to see it running. Repeat the step for "Random Rectangle" example.
Conclusion
CeGCC is a great package for Pocket PC mobile application development as it produces binaries that are compatible with modern ARM processor and Windows Mobile operating system. CeGCC enables Pocket PC application development under a completely free and open source environment
Tags: pocketpc, pocket pc, linux, ubuntu, gcc, compiler, c#, pda, mobile, gadgets
Keep updated with this website! : Subscribe to your email
WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.














February 9th, 2010 at 9:03 pm
Khairil Yusof: Qemu revisited Mohammad Hafiz bin Ismail: How to Compile Pocket PC PDA Application on Linux Kuching OSC: Novell Malaysia + KuchingOSC Mohd Irwan Jamaluddin: Debian Testing (Lenny) Got 2.6.21 Kernel Lee Chin Sheng: HeXtra 1.0 Beta
July 11th, 2007 at 5:05 am
[...] Original post by mypapit and software by Elliott Back Bookmark to: [...]
July 12th, 2007 at 11:16 pm
cool mate..
now i can access linux on pocket pc
July 18th, 2007 at 3:15 pm
[...] How to Compile Pocket PC PDA Application on Linux [...]
July 20th, 2007 at 1:26 pm
hello.ilovemypapit.
August 28th, 2007 at 4:07 pm
[...] http://blog.mypapit.net/2007/07/how-to-compile-pocket-pc-pda-application-on-linux.html [...]
December 31st, 2008 at 6:59 pm
nice