Cross-Build for WinCE
- Details
- Category: Cross-Build
- Published: Friday, 17 May 2013 10:02
- Written by Sternas Stefanos
- Hits: 31583
Our target is to build a project for Windows Mobile 6.5 Professional.
At this demonstration we use as host Operating System, the Windows 7 64bit, with classic theme for better screenshots.
This procedure works with the same way for all Win32 or Win64 Layers Operating Systems.
1. Prepare Your PC
Download from Microsoft Web Site the WM6.5 Emulator (here )
Install the emulator
2. Prepare CodeTyphon Studio
Build Lazarus32 Element for arm-Wince
Only for 64bit Windows, switch first from CodeTyphon Center to lazarus32 IDE.
From CodeTyphon Center select "Cross-Build->FreePascal 32bits->FPC32 build cross element arm-wince"
wait to finish the CodeTyphon script...
After the end of script the "Cross element for arm-WinCE" is at Status Tab
3. Configure your Application
Open Lazarus32 IDE and make a new Project.
Set to project1 compiler options
Target OS: WinCE
Target CPU family: arm
Set LCLWidgetType to WinCE
build only and save project1 to a directory, for us to C:\LazarusTemp.
Start emulator..
Set to Emulator Shared folder the folder of Project1.exe.
Open the "File Explorer" application to emulator.
Now the emulator "Storage Card" looks direct to our project1.exe folder.
Build project1.exe from lazarus32 IDE and Run Project1.exe from emulator.
Yes, the circle is from CodeTyphon pl_Shape package !!!
Strip WinCE Project
Build size: 11Mbytes
with Strip : 1.8Mbytes
Strip and UPX WinCE Project
Build size: 11Mbytes
with Strip : 1.8Mbytes
with Strip and UPX: 630Kbytes.