Recent

Author Topic: Getting Lazarus to compile for WINCE  (Read 15313 times)

cjmsmit

  • Newbie
  • Posts: 4
Getting Lazarus to compile for WINCE
« on: December 01, 2010, 09:39:36 am »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Getting Lazarus to compile for WINCE
« Reply #1 on: December 01, 2010, 12:36:41 pm »
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

  • Newbie
  • Posts: 4
Re: Getting Lazarus to compile for WINCE
« Reply #2 on: December 01, 2010, 02:34:50 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Getting Lazarus to compile for WINCE
« Reply #3 on: December 01, 2010, 02:51:34 pm »
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

  • Newbie
  • Posts: 4
Re: Getting Lazarus to compile for WINCE
« Reply #4 on: December 01, 2010, 04:32:15 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Getting Lazarus to compile for WINCE
« Reply #5 on: December 01, 2010, 04:51:05 pm »
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

  • Newbie
  • Posts: 4
Re: Getting Lazarus to compile for WINCE
« Reply #6 on: December 02, 2010, 06:50:43 am »
Thank you ever so much! That did it! Installed without a problem, following the instructions compiles for WINCE!
Thank you again.

 

TinyPortal © 2005-2018