Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-05

Lazarus Digest, Vol 28, Issue 174

5 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Technical

----- Original Message -----
From:
To:
Sent: Sunday, May 30, 2010 9:16 AM
Subject: Lazarus Digest, Vol 28, Issue 174

Show quoted text 60 lines
Send Lazarus mailing list submissions to To subscribe or unsubscribe via the World Wide Web, visit http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus or, via email, send a message with subject or body 'help' to You can reach the person managing the list at When replying, please edit your Subject line so it is more specific than "Re: Contents of Lazarus digest..." Today's Topics: 1. Re: Using FPC parser/tokenizer for code formatting (Michael Van Canneyt) 2. Re: Installing Components (Mattias Gaertner) 3. Re: fpweb for delphi? (Bee Jay) 4. Re: Using FPC parser/tokenizer for code formatting (Michael Van Canneyt) 5. Re: Using FPC parser/tokenizer for code formatting (Michael Van Canneyt) 6. Re: fpweb for delphi? (waldo kitty) 7. Re: spaces or tabs? (was: clarification / Re: constant-highlight ? [Re: quick opinion poll / pascal highlighting "case"]) (waldo kitty) Message: 2 Date: Sun, 30 May 2010 14:10:11 +0200 From: Mattias Gaertner Subject: Re: [Lazarus] Installing Components To: Message-ID: Content-Type: text/plain; charset=US-ASCII On Sun, 30 May 2010 10:28:24 +0100 "Technical" wrote: > I have a problem with installing components on upgrading from 0.9.26 to > 0.9.29. > > I have installed several extra components on the previous versions of > Lazarus (0.9.26) > which allowed grids to be aligned within each cell, and for each column > or > row to be > sorted (alphabetically or numerically). Those components cannot now be > installed using Lazarus 0.9.29 (which I need to access the clipboard for > wince) - the error message is "Can't find unit Controls used by > AlSortGrid" > from the AlSortGrid.pas file. >[...] > Do you have any comments or suggestions please? Have you create a package for your AlSortGrid.pas?

Yes I have created a package called 'pat.lpk' and this appears on the Component Palette as 'PAT' with two components installed - alsortgrid' and 'newstringgrid'. However, on compiling an application with them, they do not perform correctly - the grid contains no cells, and when writing to cells, they do not appear.

Has the package as requirement the package LCL?

Yes the package has requirements the packages LCL (>=1.0) and FCL (>=1.0)

Show quoted text 25 lines
> On investigating this problem in more detail, it seems to be associated > with > the following circumstances :- > > 1) It is when trying to install in Lazarus 0.9.29 / FPC 2.4.1 > 2) It is specific to installing for WinCE - Win32 seems to be OK > > Originally, the component was installed on 0.9.26/2.2.2 for just Win32. > Then > WinCE was added on the same installation and worked OK, with the > component > still appearing on the Component Palette. The applications using this > component also worked OK for desktop (Win32) and smartphone (WinCE - > Windows > Mobile 6.5). The IDE runs with win32 and the installed component are compiled for win32. Packages can be cross compiled. The created ppu files have the same name, but are completely incompatible. To avoid name clashes, the created ppu should be put in different output directories. This is done by using macros in the unit output directory. Default is: lib/$(TargetCPU)-$(TargetOS)

I thought this was already in the output path, but on invetstigating again, I find it is not. When I have added it previously, it is found by clicking the (ellipsis?) button to the right of the box. However, on this occasion, clicking the button provides explorer real directories rather than macros. I have put in the macros as suggested and reinstalled for wince, but I get the same error message

"The project uses target OS=Error: illegal parameter; -Twin32 and CPU=Error: illegal parameter; -Twin32,

The system.ppu for this target was not found by the FPC binary directories Make sure fpc is installed correctly for this target and the fpc.cfg contains the right directories."

It then gives a Fatal message saying "Can't find unit Unix used by FileProcs".

I may not have installed Lazarus correctly - I installed the Win32 version first, then the Win32>WinCE version over the top of the first, in the same initial directory of 'lazarus'. Is this correct - I have found no istallation instructions, so assumed it was as described.

Show quoted text 18 lines
You can find it in the package editor of your package / compiler options / Paths. > > On trying the same for Lazarus 0.9.29 / FPC 2.4.1, the component > installed > OK > again on the Component Palette and in the (Win32) application with Win32 > installed, but when trying to install WinCE with all the mods required by > WinCE, the component still appeared on the Component Palette, but it does > not work in the application running WinCE / Windows Mobile 6.5. The cells > of > the grid do not fill with data, and the grid does not appear correctly on > the phone - there are no grid lines or cells etc. Have you tried to reproduce that in a small test program?

Yes, just using the NewStringGrid component which is just a simple descendant of TStringGrid

If yes, you can provide it and I'm sure people will be able to quickly find out what is going wrong.

It is a NewStringGrid component dropped on the form with a button to put row number in each of 20 cells in a single column. I can attach either the source code, full directory or only the exe file for your inspection. The exe file performs the same in the Windows Mobile 6.5 emulator as the Windows Mobile 6.5 smartphone.

Show quoted text 18 lines
> In order to attempt to identify the cause of the problem, I have also > tried > to install an exact copy of StringGrid on the Component Palette. It > installs > on the palette OK under Win32, but when trying to install > it again under WinCE (calling it 'NewStringGrid') and to use the new > component (identical to StringGrid - a direct descendant) on the WinCE > application, the following > error message appears > > "The project uses target OS=Error: illegal parameter; -Twin32 and > CPU=Error: > illegal parameter; -Twin32, It means, you have not installed (or no not correctly installed) the cross compiler and ppu files for wince.

Thanks. How should I do this (compare with above, describing how I have tried to do it, and which worked OK with 0.9.26)?

Show quoted text 24 lines
> The system.ppu for this target was not found by the FOC binary > directories > Make sure fpc is installed correctly for this target and the fpc.cfg > contains the right directories." > > The problem now seems to be less to do with the source code of the new > component, and more to do with the settings within Lazarus. > > I have tried all obvious combinations, but without success. The same > problem > occurs with new 'virgin' installations of Lazarus / FPC aswell as > installations added to 0.9.26/2.2.2. > > Has anyone managed to install new components into Lazarus 0.9.29 / FPC > 2.4.1 > and successfully run applications using those (visual) components using > WindowsCE / Windows Mobile 6.5? > > Any contributions would be gratefully received. Have you seen this page: http://wiki.lazarus.freepascal.org/Windows_CE_Interface

I have the reference, and it appears similar to what I have done. It does refer to 0.9.26/2.2.2 etc (which works OK on my installations), and not to 0.9.29/2.4.1 (which I need for the clipboard facility in wince). It does refer to various scripts which are needed to cross compile, and I do not understand what these are for, and how you do it. Is it for source code lazarus only. On each occasion, I have downloaded binaries - will these need the same treatment?

Mattias

Thank you for your help so far. I will send you whatever files you need.

Regards
Peter

Show quoted text 23 lines
_______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus End of Lazarus Digest, Vol 28, Issue 174 **************************************** __________ Information from ESET Smart Security, version of virus signature database 5155 (20100530) __________ The message was checked by ESET Smart Security. http://www.eset.com

__________ Information from ESET Smart Security, version of virus signature database 5156 (20100530) __________

The message was checked by ESET Smart Security.

http://www.eset.com

Reply by email

Mattias Gärtner
to Technical

Zitat von Technical :

[...]>> Send Lazarus mailing list submissions to >

Please remove text that has nothing to with your topic. It saves time of your readers.

Show quoted text 7 lines
> Have you create a package for your AlSortGrid.pas? Yes I have created a package called 'pat.lpk' and this appears on the Component Palette as 'PAT' with two components installed - alsortgrid' and 'newstringgrid'. However, on compiling an application with them, they do not perform correctly - the grid contains no cells, and when writing to cells, they do not appear.

Ok. I just wanted to make sure, because it is a common error.

Show quoted text 8 lines
[...] > lib/$(TargetCPU)-$(TargetOS) I thought this was already in the output path, but on invetstigating again, I find it is not. When I have added it previously, it is found by clicking the (ellipsis?) button to the right of the box. However, on this occasion, clicking the button provides explorer real directories rather than macros.

True. You can create a feature request.

Show quoted text 5 lines
I have put in the macros as suggested and reinstalled for wince, but I get the same error message "The project uses target OS=Error: illegal parameter; -Twin32 and CPU=Error: illegal parameter; -Twin32,

Still no proper wince compiler.

Show quoted text 6 lines
The system.ppu for this target was not found by the FPC binary directories Make sure fpc is installed correctly for this target and the fpc.cfg contains the right directories." It then gives a Fatal message saying "Can't find unit Unix used by FileProcs".

Unix?
Maybe you set the wrong Target OS in the compiler options?

Note: Leave the Target OS/CPU in the package compiler options empty, so that it uses the Target OS/CPU form the project.

See
http://wiki.lazarus.freepascal.org/Windows_CE_Interface#Using_the_stable_add-on_installer

Show quoted text 5 lines
I may not have installed Lazarus correctly - I installed the Win32 version first, then the Win32>WinCE version over the top of the first, in the same initial directory of 'lazarus'. Is this correct - I have found no istallation instructions, so assumed it was as described.

http://lmgtfy.com/?q=lazarus+wince

Show quoted text 5 lines
[...] > Have you tried to reproduce that in a small test program? Yes, just using the NewStringGrid component which is just a simple descendant of TStringGrid

Can you create create a bug report and attach it? I'm sure that Felipe, the main maintainer of the wince widgetset will take a look soon.

Show quoted text 6 lines
[...] >> In order to attempt to identify the cause of the problem, I have also tried >> to install an exact copy of StringGrid on the Component Palette. >> It installs >> on the palette OK under Win32, but when trying to install >> it again under WinCE

What do you mean with 'install'?

Normally 'installing a package' means to compile a new IDE with the package compiled into it. Because the IDE can not run under wince you can not "install" a package for wince.

Show quoted text 10 lines
[...] >> "The project uses target OS=Error: illegal parameter; -Twin32 and >> CPU=Error: >> illegal parameter; -Twin32, > > It means, you have not installed (or no not correctly installed) the > cross compiler and ppu files for wince. Thanks. How should I do this (compare with above, describing how I have tried to do it, and which worked OK with 0.9.26)?

As far as I know Felipe has not changed the installation process. I have not tried myself.

Show quoted text 8 lines
[...] I have the reference, and it appears similar to what I have done. It does refer to 0.9.26/2.2.2 etc (which works OK on my installations), and not to 0.9.29/2.4.1 (which I need for the clipboard facility in wince). It does refer to various scripts which are needed to cross compile, and I do not understand what these are for, and how you do it. Is it for source code lazarus only. On each occasion, I have downloaded binaries - will these need the same treatment?

Felipe, can you update the page for 0.9.28?

Mattias

Reply by email

Felipe Monteiro de Carvalho
to Mattias Gärtner

Hello,

To which mail are you responding? I don't see the previous messages.

2010/5/31 Mattias G?rtner :

Show quoted text 5 lines
> Yes, just using the NewStringGrid component which is just a simple > descendant of TStringGrid Can you create create a bug report and attach it? I'm sure that Felipe, the main maintainer of the wince widgetset will take a look soon.

First I would recommend updating your Lazarus. There were several recent fixes for TStringGrid, although as I don't see the previous mails I am not sure what the problem is.

Show quoted text 6 lines
>>> "The project uses target OS=Error: illegal parameter; -Twin32 and >>> CPU=Error: >>> illegal parameter; -Twin32, >> >> It means, you have not installed (or no not correctly installed) the >> cross compiler and ppu files for wince.

Actually this means that the wrong Target OS is selected.

Felipe, can you update the page for 0.9.28?

Which page are we talking about? Except for the numbers changing, I don't know any change in the install process from 0.9.26 to 0.9.28 to snapshot 0.9.29

Felipe Monteiro de Carvalho

Reply by email

Mattias Gaertner
to Felipe Monteiro de Carvalho
Show quoted text 6 lines
[...] > Felipe, can you update the page for 0.9.28? Which page are we talking about? Except for the numbers changing, I don't know any change in the install process from 0.9.26 to 0.9.28 to snapshot 0.9.29

Yes, the numbers are outdated.

Mattias

Reply by email

Felipe Monteiro de Carvalho
to Mattias Gaertner

I marked the correct instructions with (Recommended Method), reinforcing what was already in the text.

I can't update the advanced instructions without testing them again, and no time for that... but they shouldn't be used except by power users.

Hopefully the (Recommended Method) will improve things.

Felipe Monteiro de Carvalho

Reply by email