Lazarus Introduction
Lazarus is a similar to the Delphi IDE, its language is free Pascal, the development method is Rad, since 2.2.0 FPC (free Pascal Compile) began, support Wince-arm platform.
Lazarus Platform Setup Step one:
1. Download Lazarus for Win32, to http://sourceforge.net/projects/lazarus/download the latest version of the Lazarus for Win32, General Lazarus has bundled FPC together.
2. Download Lazarus for Cross-arm-wince-win32, this tool can compile wince code on Lazarus.
Lazarus Platform Setup step two:
Note: cannot be saved in a path with a Chinese character, I failed to compile the path containing the Chinese character
1. Install Lazarus for Win32
2. Install Lazarus for Cross-arm-wince-win32, this tool can compile wince code on Lazarus.
Establish Lazarus Project
1. Start Lazarus and click the form to add an application project: File > New ....
2. Do not worry after new items! Do not put any components at this time, please file the project first, click the directory options: File > Save All, and then select the directory you want to store the project files.
Set up before compiling
To compile arm-wince applications, you must first set compiler properties for the project, click the menu item: Project > Compiler Options ..., click Path paging, and adapt the LCL widget to wince; Click Code Paging, and the target platform changed to Arm-wince.
Note: When compiling your wince application, the IDE may return the following error message:
Compiling resource *.rc
Arm-wince-windres.exe:no Resources
*. PAS (57901) Error:error while linking
*. PAS (57901) Fatal:there were 1 errors compiling module, stopping
At this point, you need to edit the user variable path in the Windows environment variable and add the compiler path to the Win32 platform FPC. If you don't know which path to join, click the Lazarus menu item: Environment options, and then look at compiler path, where the data is, just the folder path. Don't change the path inside the Lazarus, leave Lazarus. With the right mouse button in the "My Computer" icon Click, select the "content" in the directory, and then click on the contents of the page in the advanced pagination, and then click on the environment variable this button can edit the path of the environment variable.
Condensed EXE after compilation
To find the Arm-wince-strip.exe in the Lazarus installation folder, drag the exe directly to the Arm-wince-strip.exe, it will be automatically streamlined EXE,10MB can be reduced to 1.25MB, and then the UPX reduced to 346kb.
Note: If there is a compile-time error about "Lazarusresources", you need to uninstall the Lazarus, remove the Lazarus installation folder, reload it again, and then reinstall the Lazarus platform to build step two.