Recent

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

LacaK

  • Hero Member
  • *****
  • Posts: 691
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: 1739
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: 691
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: 691
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: 1739
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: 1739
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: 1739
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: 691
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: 1739
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.

Takeda

  • Full Member
  • ***
  • Posts: 157
Re: FPCUPdeluxe and arm/WinCE
« Reply #9 on: September 27, 2018, 04:49:46 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.

Hello Lacak.. I face this issue on FPC 3.2 Fixes Branch + Lazarus 2.0 Fixes Branch.
Any idea how to solved it?
Call me Takeda coz that's my true name.
Pascal coding using Lazarus => "Be native in any where.."

ƪ(˘⌣˘)┐ ƪ(˘⌣˘)ʃ ┌(˘⌣˘)ʃ

LacaK

  • Hero Member
  • *****
  • Posts: 691
Re: FPCUPdeluxe and arm/WinCE
« Reply #10 on: September 27, 2018, 08:02:08 am »
Probably DonAlfredo must fix it in FPCUPDeluxe? (as it happens in my case)

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: FPCUPdeluxe and arm/WinCE
« Reply #11 on: September 27, 2018, 10:50:35 am »
@Takeda
CPU and OS ?

Takeda

  • Full Member
  • ***
  • Posts: 157
Re: FPCUPdeluxe and arm/WinCE
« Reply #12 on: September 27, 2018, 11:56:52 am »
Probably DonAlfredo must fix it in FPCUPDeluxe? (as it happens in my case)

It's seem Lazarus bugs itself.. I was tested it..
But I wish FPCDeluxe would has workaround for this issue..

I'm using Windows 10 1803, AMD FX7600p
Call me Takeda coz that's my true name.
Pascal coding using Lazarus => "Be native in any where.."

ƪ(˘⌣˘)┐ ƪ(˘⌣˘)ʃ ┌(˘⌣˘)ʃ

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1739
Re: FPCUPdeluxe and arm/WinCE
« Reply #13 on: September 27, 2018, 12:22:51 pm »
This is not a Lazarus bug !

Please try this, and see if it works for you.
* remove directory: yourinstalldir\cross\bin\arm-wince
* run fpcupdeluxe again to build wince cross-compiler

Explanation about error.
Windres needs gcc to work correct.
The latest wince-cross-utils from fpcupdeluxe carry a small gcc with them to allow for this.

Hope it will work for you.

kwer

  • New Member
  • *
  • Posts: 13
  • Its my fortune to have it, its my fate to lose it.
Re: FPCUPdeluxe and arm/WinCE
« Reply #14 on: April 09, 2019, 04:02:35 am »
@LacaK : I had the same question! where am me wrong?
FPCUPdeluxe V1.6.2q
FPC Version : 3.0.4
Lazarus Version : 1.6.4
Setup+ :  arm-wince Options: -CpARMV7A
----------------------------------
Duolong, Please prepare me with the fastest horse, I must  leave now!
----------------------------------

 

TinyPortal © 2005-2018