Sign in Join
Wiki copytemporary

i386-wince

(WinCE only)

This page has been created to collect all information regarding i386-wince target.This page only describes usage of Win32 as a development Host. Although most of today's PDAs, Phones, Tablets use ARM CPUs - dealing with i386 version of CE might make sense as:

Prerequisites

Setup Lazarus/FPC for compiling i386-wince

1) Install Lazarus from above Link (just as for compiling Win32 apps)
We use PATH=C:\Prog\lazarus\931\ in the example {lazfolder}
2) Unzip the fpc sources to a convenient folder
We use C:\Prog\fpc\2.6.0src\ in this example
3) Create a batch file (mkCE.bat) with the following content:\

pascal
PATH=C:\Prog\lazarus\931\fpc\2.6.0\bin\i386-win32;C:\Prog\fpc\2.6.0src\fpcsrc\compiler
make clean all OS_TARGET=wince CPU_TARGET=i386 PP=ppc386.exe

Save this batchfile to C:\PROG\FPC\2.6.0src\fpcsrc. Start this batchfile by doubleclick. (It should run from the command line too, but in my setup, from the commandline there was an error message thrown (*** no libgdb.a found, supply NOGDB=1 to disable debugger support....) - but run from the Windows GUI this run just fine. The popping up console window will show compile progress for some time until it closes again. Then you will find a new file 'build-stamp.i386-wince' in the fpsrc folder. (In this case you can be happy that all worked OK)
4) Now there are lots of compiled subfolders in the fpc tree, that need to be copied over into (other positons) of the Lazarus folders.\

(I will provide a batchfile soon for this...)

Test Applications

If your system is a core WindowsCE and not a Windows Mobile device, you might run into an error message:
Cannot find {your app name } (or one of it's components). Make sure the path and filename are correct...
In this case, this might be most probable a missing aygshell.dll (See WinCE Programming Tips). aygshell.dll might be found in the web, but most/all of them will be for ARM or MIPS. So to get hold of one, you will have to install the Windows CE 5.0 Trial version and build a sample device.

<work in progress, will be updated...>

Simple graphical Hello

As WinCE by default has no console, it's easier to try a graphical hello tesprogram.(for the console app you would have to install a console program or enable it first by a registry hack) <Sourcecode> <Screenshot> <prebuilt application>

Useful 3rd Party Tools, Libraries, Links


From the Free Pascal wiki, page "i386-wince", as it stood on 2020-08-09 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.