I386-wince

This is an old revision of I386-wince, edited by Marcovaldo at . The current revision is 78525.

/* Setup Lazarus/FPC for compiling i386-wince */

This page has been created to collect all information regarding i386-wince target. 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}
  1. Unzip the fpc sources to a convenient folder
 We use C:\Prog\fpc\2.6.0src\ in this example     
  1. Create a batch file (mkCE.bat) with the following content:
 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)
  1. Now there are lots of compiled subfolders in the fpc tree, that need to be copied over into (other positons) of the Lazarus folders.

{lazfolder}\fpc\2.6.0\units\i386-wince\{packagename} where no units subfolder has been created during build, omit this folder

Test Applications

<to be extended>

Useful 3rd Party Tools, Libraries, Links

<to be extended>