----- 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_InterfaceI 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
__________ Information from ESET Smart Security, version of virus signature database 5156 (20100530) __________
The message was checked by ESET Smart Security.
http://www.eset.com