* * *

Author Topic: FPCUPdeluxe and arm/WinCE  (Read 1103 times)

LacaK

  • Hero Member
  • *****
  • Posts: 560
FPCUPdeluxe and arm/WinCE
« on: June 20, 2018, 09:13:50 am »
I can sucessfully prepare cross compiler for arm/Linux, but for arm/WinCE I get:

divide.inc(142,6) Error: Unknown identifier "FPC_DIV_DWORD"
divide.inc(162,6) Error: Unknown identifier "FPC_DIV_DWORD"
divide.inc(180,6) Error: Unknown identifier "FPC_DIV_LONGINT"
system.pp(1777) Fatal: There were 3 errors compiling module, stopping

I want to use stable FPC 3.0.4 and Lazarus 1.6.4 (because in Lazarus 1.8.4 is broken WinCE support, bug #32366)

DonAlfredo

  • Hero Member
  • *****
  • Posts: 910
Re: FPCUPdeluxe and arm/WinCE
« Reply #1 on: June 20, 2018, 11:56:51 am »
Should be solved by latest release: 1.6.1b

LacaK

  • Hero Member
  • *****
  • Posts: 560
Re: FPCUPdeluxe and arm/WinCE
« Reply #2 on: June 21, 2018, 10:45:28 am »
Thank you very much. Now FPCUPdeluxe completes without errors but later when I am doing to compile "one-form" project I get:

  • FPC 3.0.4 + Lazarus 1.6.4: wincewsmenus.pp(1139,0) Error: Error while compiling resources -> Compile with -vd for more details. Check for duplicates.
  • FPC 3.0.4 + Lazarus 1.9 (trunk): wincewsimglist.pp(94,17) Error: Identifier not found "TWinCEWSCustomImageList"

So I am not able to use WinCE at all. Also current stable version is broken: http://forum.lazarus.freepascal.org/index.php/topic,41604.0.html

LacaK

  • Hero Member
  • *****
  • Posts: 560
Re: FPCUPdeluxe and arm/WinCE
« Reply #3 on: June 21, 2018, 11:56:15 am »
Strange think is, that when I build cross compiler arm/WinCE for FPC 3.0.2 + Lazarus 1.6.4 (which was official release) then I also get:

Warning: windres: preprocessing failed.
wincewsmenus.pp(1139,0) Error: Error while compiling resources -> Compile with -vd for more details. Check for duplicates.

When I am compiling simple project for WinCE. So probably there is still something wrong with building FPC + Lazarus environment.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 910
Re: FPCUPdeluxe and arm/WinCE
« Reply #4 on: June 21, 2018, 08:34:48 pm »
I have solved this issue.
But still have to find a decent way to implement it with fpcupdeluxe.
Will keep you informed.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 910
Re: FPCUPdeluxe and arm/WinCE
« Reply #5 on: June 22, 2018, 08:17:02 am »
Quote
Warning: windres: preprocessing failed.
wincewsmenus.pp(1139,0) Error: Error while compiling resources
Workaround implemented for the above error.

Please delete the cross\bin\arm-wince directory.
Run fpcupdeluxe again to build the arm-wince cross-compiler.
New binary tools will be downloaded, that have the work-around implemented !

I hope it will work for you too.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 910
Re: FPCUPdeluxe and arm/WinCE
« Reply #6 on: June 22, 2018, 01:28:08 pm »
New bugreport about wince and Lazarus trunk, with patch.
https://bugs.freepascal.org/view.php?id=33891

I hope this will solve the wince target problems.

LacaK

  • Hero Member
  • *****
  • Posts: 560
Re: FPCUPdeluxe and arm/WinCE
« Reply #7 on: June 25, 2018, 09:29:15 am »
@Alfredo: thank you very much for your efforts!

Results:

FPCUPdeluxe 1.6.1b: FPC 3.0.4 + Lazarus 1.6.4 ... Ok
FPCUPdeluxe 1.6.1d: FPC 3.0.4 + Lazarus 1.9 ... Ok (however application can't be run on WinCE device due to bug #32366)
FPCUPdeluxe 1.6.1d: FPC 3.0.4 + Lazarus 1.6.4 ... Fail (as Lazarus is patched, but patch is probably for trunk only not for 1.6.4)
« Last Edit: June 25, 2018, 09:36:12 am by LacaK »

DonAlfredo

  • Hero Member
  • *****
  • Posts: 910
Re: FPCUPdeluxe and arm/WinCE
« Reply #8 on: June 25, 2018, 09:35:53 am »
Thank you for your feedback !

And yes, fpcupdeluxe will try to patch even 1.6.4 !
With the trunk-patch ... and that is a bug. Will look into it.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus