Recent

Author Topic: Lazarus1.0 Errors (commctrl.pp)  (Read 15618 times)

roeug

  • Jr. Member
  • **
  • Posts: 67
    • http://roeug.50megs.com/
Lazarus1.0 Errors (commctrl.pp)
« on: September 07, 2012, 12:29:46 pm »
Lazarus 1.0
New Application\WinCE\arm
Compile:
Hint: Start of reading config file C:\Apps\lazarus\fpc\2.6.0\bin\i386-win32\fpc.cfg
Hint: End of reading config file C:\Apps\lazarus\fpc\2.6.0\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 2.6.0 [2012/08/28] for arm
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: WinCE for ARM
Compiling lcl.pas
Compiling .\win32\alllclintfunits.pas
Compiling .\win32\win32wsdialogs.pp
Compiling .\win32\shlobj.pp
Compiling .\win32\commctrl.pp
...\lazarus\lcl\interfaces\win32\commctrl.pp(5831,1) Error: Forward type not resolved "TREEITEM"
...\lazarus\lcl\interfaces\win32\commctrl.pp(6236,44) Error: Error in type definition
...\lazarus\lcl\interfaces\win32\commctrl.pp(6256,44) Error: Error in type definition
...\lazarus\lcl\interfaces\win32\commctrl.pp(6273,46) Error: Error in type definition
...\lazarus\lcl\interfaces\win32\commctrl.pp(6403,53) Error: Error in type definition
...\lazarus\lcl\interfaces\win32\commctrl.pp(7569,44) Error: Error in type definition
...\lazarus\lcl\interfaces\win32\commctrl.pp(7587,44) Error: Error in type definition
...\lazarus\lcl\interfaces\win32\commctrl.pp(8891,45) Error: Error in type definition
...\lazarus\lcl\interfaces\win32\commctrl.pp(8961,48) Error: Error in type definition
...\lazarus\lcl\interfaces\win32\commctrl.pp(9234,49) Error: Error in type definition
...\lazarus\lcl\interfaces\win32\commctrl.pp(9469,1) Fatal: Syntax error, "identifier" expected but "CONST" found

What's wrong?

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Lazarus1.0 Errors (commctrl.pp)
« Reply #1 on: September 07, 2012, 12:48:45 pm »
If your target system is arm-wince, don't use the win32 widget set, but the wince widgetset.

roeug

  • Jr. Member
  • **
  • Posts: 67
    • http://roeug.50megs.com/
Re: Lazarus1.0 Errors (commctrl.pp)
« Reply #2 on: September 07, 2012, 12:58:38 pm »
> If your target system is arm-wince, don't use the win32 widget set, but the wince widgetset.
Sure, but How can I say it to Lazarus IDE?

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Lazarus1.0 Errors (commctrl.pp)
« Reply #3 on: September 07, 2012, 01:24:36 pm »
open the menu project\project options, select the build mode tree and there set your lclwidgetset options. See attached photo.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

roeug

  • Jr. Member
  • **
  • Posts: 67
    • http://roeug.50megs.com/
Re: Lazarus1.0 Errors (commctrl.pp)
« Reply #4 on: September 10, 2012, 07:43:49 am »
Thanks.
OK with a new project
With my old project (Lazarus 9.30.x OK) –
"Fatal: Can not find system used by MyProject_wince_arm, ppu=...  \lazarus\fpc\2.6.0\units\arm-wince\rtl\system.ppu"
Manually added all paths
"MyLib_m.pas(21) Error: Error while assembling exitcode 1"
MyLib_m.pas(20) == end.

What's the problem?

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Lazarus1.0 Errors (commctrl.pp)
« Reply #5 on: September 10, 2012, 07:46:18 am »
It seems you added source path for the RTL, but you should add the path to the compiled units (*.ppu and *.o).

roeug

  • Jr. Member
  • **
  • Posts: 67
    • http://roeug.50megs.com/
Re: Lazarus1.0 Errors (commctrl.pp)
« Reply #6 on: September 10, 2012, 08:52:14 am »
Not for the case (srcs are in … \lazarus\fpc\2.6.0\source  - not in the path -Fu)

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Lazarus1.0 Errors (commctrl.pp)
« Reply #7 on: September 10, 2012, 09:37:32 am »
I have no further ideas.

roeug

  • Jr. Member
  • **
  • Posts: 67
    • http://roeug.50megs.com/
Re: Lazarus1.0 Errors (commctrl.pp)
« Reply #8 on: September 10, 2012, 10:13:06 am »
The "solution" was:
  New Appl/WinCE/arm (Form1 created)
  Add LCLWidgetType (See taazz post above)
  No Add Paths requied
  Add Forms (from previous Lazarus 9.30 project)
  Remove Form1 unit from the Project
  Edit main file (Project/Project source)
  Compile – OK

The only "feature":
  Lazarus 9.30 + upx the application size = 600K
  Lazarus 1.0 + upx the application size = 3900K

Is it OK?


Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Lazarus1.0 Errors (commctrl.pp)
« Reply #9 on: September 10, 2012, 10:49:03 am »
Quote
Is it OK?
Nope, the differences shouldn't be that big. The one created with 1.0 seems to have debugging info or not properly smartlinked.

roeug

  • Jr. Member
  • **
  • Posts: 67
    • http://roeug.50megs.com/
Re: Lazarus1.0 Errors (commctrl.pp)
« Reply #10 on: September 10, 2012, 12:54:37 pm »
Optimization + SmartLinking(Lazarus 1.0) + upx the application size = 4000K – disaster

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Lazarus1.0 Errors (commctrl.pp)
« Reply #11 on: September 10, 2012, 01:49:18 pm »
It won't be that big, something must be wrong. Copy and paste what "Show Options" button display in Compiler Options dialog.

roeug

  • Jr. Member
  • **
  • Posts: 67
    • http://roeug.50megs.com/
Re: Lazarus1.0 Errors (commctrl.pp)
« Reply #12 on: September 11, 2012, 06:21:52 am »
>  Copy and paste what "Show Options" button display in Compiler Options dialog.

 -MObjFPC -Scghi -CX -Os3 -OoUNCERTAIN -OoREGVAR -Twince -Parm -g -gl -WG -vewnhi -l -Filib\arm-wince -Fu..\..\lazarus\lcl\units\arm-wince\wince -Fu..\..\lazarus\lcl\units\arm-wince -Fu..\..\lazarus\components\lazutils\lib\arm-wince -Fu..\..\lazarus\packager\units\arm-wince -Fu. -FUlib\arm-wince\ -dLCL -dLCLwince

roeug

  • Jr. Member
  • **
  • Posts: 67
    • http://roeug.50megs.com/
Re: Lazarus1.0 Errors (commctrl.pp)
« Reply #13 on: September 11, 2012, 07:51:23 am »
Got it! Compile + upx Application size = 600K
Project options\Information for GDB (non English IDE interface) - disable
Thanks all.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Lazarus1.0 Errors (commctrl.pp)
« Reply #14 on: September 11, 2012, 08:14:17 am »
A -XX (enable smartlinking) seems to be missing.

 

TinyPortal © 2005-2018