Getting Lazarus to compile for WINCE lazarus / 35-Windows CE ---------------------------------------------------------------------- cjmsmit · 2010-12-01 08:39 I am new to Lazarus but am using Delphi for quiet a while. Now I need to write an application for WINCE. I have downloaded lazarus-0.9.28.2-fpc-2.2.4-win32.exe and installed it Then I downloaded lazarus-0.9.28.2-fpc-2.2.4-cross-arm-wince-win32.exe and installed it. When I start Lazarus I get a lot of errors arm-wince-strip.exe is using an invalid option -T   and the system.ppu was not found. With what combination of downloads I can get Lazarus to build WINCE apps? ---------------------------------------------------------------------- felipemdc · 2010-12-01 11:36 Which exact compiler options did you select for your project? You probably forgot to change either widgetset, operating system or architecture. It is: wince / wince / arm ---------------------------------------------------------------------- cjmsmit · 2010-12-01 13:34 I kept searching for the solution and found someone claimingit was very simple. Just install lazarus 0.9.26 and its cross-arm-wince. So i delete my previous lazarus and installed 0.9.26. Just starting this lazarus gave me some error messages. The first one told me to point to my fpc source directories, which I then did. Restarting lazarus gave me 'The system.ppu' was not found in the FPC directories. Make sure fpc is installed correctly and the fpc.cfg points to the right directory' Did I miss a step? Should fpc be installed separately? Or did all go wrong because when uninstalling my previous Lazarus, not all was removed and something keeps pointing to the older non-existiung diretories? ---------------------------------------------------------------------- felipemdc · 2010-12-01 13:51 Your reports of the issue are very confusing. Anyway, I would recommend that you uninstall everything and follow precisely the instructions here: http://wiki.freepascal.org/Windows_CE_Interface#Using_the_stable_add- on_installer_.28Recommended_Method.29 ---------------------------------------------------------------------- cjmsmit · 2010-12-01 15:32 Ok, did that. I got it compiling win32 programs now. After changing the compileroptions in the way mentioned in the link you gave me, the test of the compiler options results in Test C:\lazarus\fpc\2.2.2\bin\i386-win32\ppc386.exe  -MObjFPC -Sgi -O1 -TWinCE -Parm -gv -Xs -va -l -FuC:\lazarus\packager\units\arm-wince\ -FuC:\lazarus\lcl\units\arm-wince\ -FuC:\lazarus\lcl\units\arm- wince\wince\ -Fu. -dLCL -dLCLwince C:\Users\Kees\AppData\Local\Temp\testcompileroptions.pas Result ERROR: compiled FPC unit not found: system.ppu ERROR: compiled FPC unit not found: sysutils.ppu ERROR: compiled FPC unit not found: classes.ppu ERROR: compiled FPC unit not found: avl_tree.ppu ERROR: compiled FPC unit not found: zstream.ppu ---------------------------------------------------------------------- felipemdc · 2010-12-01 15:51 Try the installer from this page: http://www.hu.freepascal.org/lazarus/ Uninstall everything, then install: Lazarus + fpc 2.4.2   win32   Lazarus-0.9.29-28578-fpc-2.4.2-20101201-win32.exe Lazarus + fpc 2.4.2   win32 -> arm wince   Lazarus-0.9.29-28578-fpc-2.4.2-20101201-cross-arm-wince- win32.exe In this order ---------------------------------------------------------------------- cjmsmit · 2010-12-02 05:50 Thank you ever so much! That did it! Installed without a problem, following the instructions compiles for WINCE! Thank you again.