Sign in Join

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

Mailing lists / lazarus / 2013-04

Event generator

22 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Antonio Fortuny

Hi Folks.

I've installed Lazarus 1.0.8 and FPC 2..6.2 on two newly created Linux x86_64 VMs
One is a OpenSuse 11.4 and the other one is a 12.2 Install on both machines was as I like to say when all runs well, the fingers in the sose and the hands in the pocket 8-) Recompile IDE with all my needed packages: beautiull. Run tests: great ! I really appreciate
BUT:
on the form of an application (btw, multi-threaded + Indy 10) drop a common TButton on the main (and only) form: OK.
When trying to assign an event to it: BOUM >:o

the LCLClasses unit is displayed and the next error is displayed in the errors window:

????????????????
No way to assign an event to a new TButton.
Same behaviour in both machines. What happens ?

Antonio.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130402/d6de8365/attachment.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: abcfdfia.png
Type: image/png
Size: 12038 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130402/d6de8365/attachment.png> -------------- next part --------------
A non-text attachment was scrubbed...
Name: fjdcagcj.png
Type: image/png
Size: 3262 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130402/d6de8365/attachment-0001.png>

Reply by email

Howard Page-Clark
to Antonio Fortuny
Antonio Fortuny wrote 12 lines
BUT: on the form of an application (btw, multi-threaded + Indy 10) drop a common TButton on the main (and only) form: OK. When trying to assign an event to it: BOUM >:o the LCLClasses unit is displayed and the next error is displayed in the errors window: ???????????????? No way to assign an event to a new TButton. Same behaviour in both machines. What happens ?

If you view your project in the Project Inspector, is the LCL shown as a required dependency?
If not, it should be added.

Reply by email

Mattias Gaertner
to Antonio Fortuny: Hi Folks. I've installed Lazarus 1.0.8 and FPC 2..6.2 on two newly created Linux x86_64…
Show quoted text 21 lines
Hi Folks. I've installed Lazarus 1.0.8 and FPC 2..6.2 on two newly created Linux x86_64 VMs One is a OpenSuse 11.4 and the other one is a 12.2 Install on both machines was as I like to say when all runs well, the fingers in the sose and the hands in the pocket 8-) Recompile IDE with all my needed packages: beautiull. Run tests: great ! I really appreciate BUT: on the form of an application (btw, multi-threaded + Indy 10) drop a common TButton on the main (and only) form: OK. When trying to assign an event to it: BOUM >:o the LCLClasses unit is displayed and the next error is displayed in the errors window: ???????????????? No way to assign an event to a new TButton. Same behaviour in both machines. What happens ?

Something is wrong with your installation of fpc and/or fpc-src.

Please check via menu 'View / IDE internals / About FPC' and 'About IDE'.

Mattias

Reply by email

Antonio Fortuny
to Howard Page-Clark: If you view your project in the Project Inspector, is the LCL shown as a required…

Le 02/04/2013 16:05, Howard Page-Clark a ?crit :

If you view your project in the Project Inspector, is the LCL shown as a required dependency?

Yep, both are there: LCL and IndyLaz
BTW, I've installed Lazarus 1.1 an,d FPC 2.6.0 on the 12.2: besides some IDE problems, project compiles and runs. Adding new TButton and assigning evaents is a piece ok cake.
The version before was 1.0.5 which did work too.

Show quoted text 8 lines
If not, it should be added. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Antonio Fortuny
to Mattias Gaertner: On Tue, 02 Apr 2013 15:47:08 +0200 Something is wrong with your installation of fpc…

Le 02/04/2013 16:07, Mattias Gaertner a ?crit :

Something is wrong with your installation of fpc and/or fpc-src. Please check via menu 'View / IDE internals / About FPC' and 'About IDE'. Mattias --

Looks fine, no error lines. Something special to look for ?

_______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to Antonio Fortuny
Show quoted text 5 lines
Le 02/04/2013 16:07, Mattias Gaertner a ?crit : > Something is wrong with your installation of fpc and/or fpc-src. > Please check via menu 'View / IDE internals / About FPC' and 'About > IDE'. Mattias -- Looks fine, no error lines. Something special to look for ?

In the 'About FPC' should be lines like:

classes=/usr/lib/fpc/2.6.2/units/x86_64-linux/rtl/classes.ppu

Sources:
Directory=/usr/share/fpcsrc/2.6.2
Files.Count=11316

Check on your disk that "Directory" contains many "classes.pp".

Have you tried "Tools / Rescan FPC source directory"?

Mattias

Reply by email

Antonio Fortuny
to Mattias Gaertner
Show quoted text 8 lines
> Le 02/04/2013 16:07, Mattias Gaertner a ?crit : >> Something is wrong with your installation of fpc and/or fpc-src. >> Please check via menu 'View / IDE internals / About FPC' and 'About >> IDE'. Mattias -- > Looks fine, no error lines. Something special to look for ? In the 'About FPC' should be lines like: classes=/usr/lib/fpc/2.6.2/units/x86_64-linux/rtl/classes.ppu

/usr/lib64/fpc/2.6.2/units/x86_64-linux/rtl/classes.ppu

Show quoted text 6 lines
Sources: Directory =/usr/share/fpcsrc/2.6.2 Files.Count=11316 Check on your disk that "Directory" contains many "classes.pp".

/usr/share/fpcsrc/2.6.2/tests/test/units/classes
/usr/share/fpcsrc/2.6.2/rtl/watcom/classes.pp
/usr/share/fpcsrc/2.6.2/rtl/objpas/classes
/usr/share/fpcsrc/2.6.2/rtl/objpas/classes/classesh.inc /usr/share/fpcsrc/2.6.2/rtl/objpas/classes/classes.inc /usr/share/fpcsrc/2.6.2/rtl/unix/classes.pp
but none for linux ??
/usr/share/fpcsrc/2.6.2/rtl/win64/classes.pp
/usr/share/fpcsrc/2.6.2/rtl/openbsd/classes.pp
/usr/share/fpcsrc/2.6.2/rtl/beos/classes.pp
/usr/share/fpcsrc/2.6.2/rtl/netwlibc/classes.pp
/usr/share/fpcsrc/2.6.2/rtl/morphos/classes.pp
/usr/share/fpcsrc/2.6.2/rtl/gba/classes.pp
/usr/share/fpcsrc/2.6.2/rtl/wince/classes.pp
/usr/share/fpcsrc/2.6.2/rtl/wii/classes.pp
/usr/share/fpcsrc/2.6.2/rtl/netware/classes.pp
/usr/share/fpcsrc/2.6.2/rtl/nativent/classes.pp
/usr/share/fpcsrc/2.6.2/rtl/nds/classes.pp
/usr/share/fpcsrc/2.6.2/rtl/go32v2/classes.pp
/usr/share/fpcsrc/2.6.2/rtl/amiga/classes.pp
/usr/share/fpcsrc/2.6.2/rtl/win32/classes.pp
/usr/share/fpcsrc/2.6.2/rtl/haiku/classes.pp
/usr/share/fpcsrc/2.6.2/rtl/os2/classes.pp

Have you tried "Tools / Rescan FPC source directory"?

Yes, still same behaviour

Show quoted text 8 lines
Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to Antonio Fortuny
Show quoted text 11 lines
On Tue, 02 Apr 2013 16:16:23 +0200 Antonio Fortuny wrote: >> Le 02/04/2013 16:07, Mattias Gaertner a ?crit : >>> Something is wrong with your installation of fpc and/or fpc-src. >>> Please check via menu 'View / IDE internals / About FPC' and 'About >>> IDE'. Mattias -- >> Looks fine, no error lines. Something special to look for ? > In the 'About FPC' should be lines like: > > classes=/usr/lib/fpc/2.6.2/units/x86_64-linux/rtl/classes.ppu /usr/lib64/fpc/2.6.2/units/x86_64-linux/rtl/classes.ppu

This is the line:
classes=/usr/lib64/fpc/2.6.2/units/x86_64-linux/rtl/classes.ppu ?

> Sources: > Directory =/usr/share/fpcsrc/2.6.2 > Files.Count=11316

What file count do you see?

Show quoted text 8 lines
> Check on your disk that "Directory" contains many "classes.pp". /usr/share/fpcsrc/2.6.2/tests/test/units/classes /usr/share/fpcsrc/2.6.2/rtl/watcom/classes.pp /usr/share/fpcsrc/2.6.2/rtl/objpas/classes /usr/share/fpcsrc/2.6.2/rtl/objpas/classes/classesh.inc /usr/share/fpcsrc/2.6.2/rtl/objpas/classes/classes.inc /usr/share/fpcsrc/2.6.2/rtl/unix/classes.pp but none for linux ??

Linux uses the one for unix.

What values do you have under "Active Target" and "FPC executable"?

> Have you tried "Tools / Rescan FPC source directory"? Yes, still same behaviour

Mattias

Reply by email

Antonio Fortuny
to Mattias Gaertner

Le 02/04/2013 18:35, Mattias Gaertner a ?crit :

What file count do you see?

Files.count=11313

Show quoted text 9 lines
>> Check on your disk that "Directory" contains many "classes.pp". > /usr/share/fpcsrc/2.6.2/tests/test/units/classes > /usr/share/fpcsrc/2.6.2/rtl/watcom/classes.pp > /usr/share/fpcsrc/2.6.2/rtl/objpas/classes > /usr/share/fpcsrc/2.6.2/rtl/objpas/classes/classesh.inc > /usr/share/fpcsrc/2.6.2/rtl/objpas/classes/classes.inc > /usr/share/fpcsrc/2.6.2/rtl/unix/classes.pp > but none for linux ?? Linux uses the one for unix.

OK

What values do you have under "Active Target" and "FPC executable"?

Active target:
TargetOS=Linux
TargetCPU=x86_64

Show quoted text 12 lines
>> Have you tried "Tools / Rescan FPC source directory"? > Yes, still same behaviour Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Reinier Olislagers
to Antonio Fortuny
Antonio Fortuny wrote 5 lines
Le 02/04/2013 18:35, Mattias Gaertner a ?crit : > What values do you have under "Active Target" and "FPC executable"? Active target: TargetOS=Linux TargetCPU=x86_64

FPC executable?

Reply by email

Antonio Fortuny
to Reinier Olislagers

Le 03/04/2013 08:51, Reinier Olislagers a ?crit :

Show quoted text 7 lines
On 3-4-2013 8:38, Antonio Fortuny wrote: > Le 02/04/2013 18:35, Mattias Gaertner a ?crit : >> What values do you have under "Active Target" and "FPC executable"? > Active target: > TargetOS=Linux > TargetCPU=x86_64 FPC executable?

FPC executable:
Compiler=/usr/bin./fpc
Options=
CompilerDate=18/03/2013 00:51:19
RealCompiler=/usr/lib64/fpc/2.6.2/ppcx64
RealCompilerDate=18/03/2013 00:51:19
RealTargetOS=linux
RealTargetCPU=x86_64
RealCompilerPath=/usr/lib64/fpc/2.6.2/ppcx64
Version=2.6.2
CfgFilename=/etc/fpc.cfg

Show quoted text 7 lines
-- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Antonio Fortuny
to Antonio Fortuny: Hi Folks. I've installed Lazarus 1.0.8 and FPC 2..6.2 on two newly created Linux x86_64…

Sorry Guys.

I have to apologize because I guess it is my fault. After the install process I have overwritten some of the config files in ~/.lazarus by other files coming from another Linux installation which works. Unfortunately the source installation was not exactly the same as the very new one.
I already used that trick with success for new installations to save Lazarus configuration time. But this time the paths, parameters, etc. were all the same.
In this case some of the critical paths between the source and target Lazarus were not identical.
I'll install and cofigure all and I'll keep you informed about the final situation.

Thank you anyway, your questions helped me to find the error. Thans again.

Antonio.

Reply by email

Antonio Fortuny
to Antonio Fortuny

Bad news.

I have unistalled and re-installed Lazarus again:
lazarus-1.0.8-0.x86_64.rpm.
~/.lazarus removed
Change some options of the editor to my usual requirements Recompile all needes packages.
Load the project on which I'm currently working.
Compile, rebuild: OK
So far so good.
Add a TButton on main (and only) form
double-click on it: same error window and error message asking for TComponent in LCLClasses.pp tagged as read only (sounds reasonable as all files are root owned and "r-x" for group and others. I've done a
# chown -R sita:users /usr/share/fpcsrc/
but nothing changed

Antonio.

Reply by email

Antonio Fortuny
to Antonio Fortuny: Sorry Guys. I have to apologize because I guess it is my fault. After the install process…

Another strange behaviour is that lots of types are not recognized: On my own units as well on Lazarus units, setting the cursor on the word TPanel using the key Ctrl does not undescore the TPanel and Ctrl+Left click has no effect.
Even my own types are not known although the unit is the uses clause and the program compilation looks OK

Antonio.

Reply by email

Mattias Gaertner
to Antonio Fortuny: Bad news. I have unistalled and re-installed Lazarus again: lazarus-1.0.8-0.x86_64.rpm.…
Show quoted text 10 lines
Bad news. I have unistalled and re-installed Lazarus again: lazarus-1.0.8-0.x86_64.rpm. ~/.lazarus removed Change some options of the editor to my usual requirements Recompile all needes packages. Load the project on which I'm currently working. Compile, rebuild: OK So far so good.

:)

Add a TButton on main (and only) form double-click on it: same error window and error message asking for TComponent in LCLClasses.pp tagged as read only (sounds reasonable as all files are root owned and "r-x" for group and others.

As they should be when installing an rpm.

I've done a # chown -R sita:users /usr/share/fpcsrc/

You should undo this.
I'm curious. Why do thought that a "can not find unit" error can be fixed by giving write access? You are not the first doing so. Is there some misleading error message?

but nothing changed

You seem to have a very standard setup, except for your extra packages. What extra packages do you install?

Mattias

Reply by email

Mattias Gaertner
to Antonio Fortuny: Le 03/04/2013 08:51, Reinier Olislagers a ?crit : FPC executable: Compiler=/usr/bin./fpc…
Show quoted text 10 lines
Le 03/04/2013 08:51, Reinier Olislagers a ?crit : > On 3-4-2013 8:38, Antonio Fortuny wrote: >> Le 02/04/2013 18:35, Mattias Gaertner a ?crit : >>> What values do you have under "Active Target" and "FPC executable"? >> Active target: >> TargetOS=Linux >> TargetCPU=x86_64 > FPC executable? FPC executable: Compiler=/usr/bin./fpc

Do you mean /usr/bin/fpc?

Show quoted text 9 lines
Options= CompilerDate=18/03/2013 00:51:19 RealCompiler=/usr/lib64/fpc/2.6.2/ppcx64 RealCompilerDate=18/03/2013 00:51:19 RealTargetOS=linux RealTargetCPU=x86_64 RealCompilerPath=/usr/lib64/fpc/2.6.2/ppcx64 Version=2.6.2 CfgFilename=/etc/fpc.cfg

Mattias

Reply by email

Mattias Gaertner
to Antonio Fortuny: Another strange behaviour is that lots of types are not recognized: On my own units as…
Show quoted text 6 lines
Another strange behaviour is that lots of types are not recognized: On my own units as well on Lazarus units, setting the cursor on the word TPanel using the key Ctrl does not undescore the TPanel and Ctrl+Left click has no effect. Even my own types are not known although the unit is the uses clause and the program compilation looks OK

Everything that uses the classes unit suffers.
Try the Ctrl key over the uses section. Can you jump to 'sysutils'?

Mattias

Reply by email

Antonio Fortuny
to Mattias Gaertner: On Wed, 03 Apr 2013 08:58:37 +0200 Do you mean /usr/bin/fpc? Mattias

Le 03/04/2013 11:10, Mattias Gaertner a ?crit :

> FPC executable: > Compiler=/usr/bin./fpc Do you mean /usr/bin/fpc?

yep

Show quoted text 18 lines
> Options= > CompilerDate=18/03/2013 00:51:19 > RealCompiler=/usr/lib64/fpc/2.6.2/ppcx64 > RealCompilerDate=18/03/2013 00:51:19 > RealTargetOS=linux > RealTargetCPU=x86_64 > RealCompilerPath=/usr/lib64/fpc/2.6.2/ppcx64 > Version=2.6.2 > CfgFilename=/etc/fpc.cfg Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Antonio Fortuny
to Mattias Gaertner: On Wed, 03 Apr 2013 10:36:48 +0200 :) As they should be when installing an rpm. You…

Le 03/04/2013 11:10, Mattias Gaertner a ?crit :

Show quoted text 33 lines
On Wed, 03 Apr 2013 10:36:48 +0200 Antonio Fortuny wrote: > Bad news. > > I have unistalled and re-installed Lazarus again: > lazarus-1.0.8-0.x86_64.rpm. > ~/.lazarus removed > Change some options of the editor to my usual requirements > Recompile all needes packages. > Load the project on which I'm currently working. > Compile, rebuild: OK > So far so good. :) > Add a TButton on main (and only) form > double-click on it: same error window and error message asking for > TComponent in LCLClasses.pp tagged as read only (sounds reasonable as > all files are root owned and "r-x" for group and others. As they should be when installing an rpm. > I've done a > # chown -R sita:users /usr/share/fpcsrc/ You should undo this. I'm curious. Why do thought that a "can not find unit" error can be fixed by giving write access? You are not the first doing so. Is there some misleading error message? > but nothing changed You seem to have a very standard setup, except for your extra packages. What extra packages do you install?

Indy 10
IBO (Firebird access and controls)
daemon: for that one I've had to chown to myuser to be able to compile it !! After changing the owner, daeon did compile and install

Show quoted text 9 lines
Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Antonio Fortuny
to Mattias Gaertner: On Wed, 03 Apr 2013 11:05:45 +0200 Everything that uses the classes unit suffers. Try the…

Le 03/04/2013 11:14, Mattias Gaertner a ?crit :

Show quoted text 11 lines
On Wed, 03 Apr 2013 11:05:45 +0200 Antonio Fortuny wrote: > Another strange behaviour is that lots of types are not recognized: > On my own units as well on Lazarus units, setting the cursor on the word > TPanel using the key Ctrl does not undescore the TPanel and Ctrl+Left > click has no effect. > Even my own types are not known although the unit is the uses clause and > the program compilation looks OK Everything that uses the classes unit suffers. Try the Ctrl key over the uses section. Can you jump to 'sysutils'?

yes, and Classes too
When I Ctrl+Left click on a TObject descendant of TObject, nothing happens But Ctrl+Left click over a local method variable, brings the curson on the variable definition

Show quoted text 9 lines
Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to Antonio Fortuny
Show quoted text 21 lines
Antonio Fortuny hat am 3. April 2013 um 11:44 geschrieben: Le 03/04/2013 11:14, Mattias Gaertner a ?crit : > On Wed, 03 Apr 2013 11:05:45 +0200 > Antonio Fortuny wrote: > >> Another strange behaviour is that lots of types are not recognized: >> On my own units as well on Lazarus units, setting the cursor on the word >> TPanel using the key Ctrl does not undescore the TPanel and Ctrl+Left >> click has no effect. >> Even my own types are not known although the unit is the uses clause and >> the program compilation looks OK > Everything that uses the classes unit suffers. > Try the Ctrl key over the uses section. Can you jump to 'sysutils'? yes, and Classes too When I Ctrl+Left click on a TObject descendant of TObject, nothing happens But Ctrl+Left click over a local method variable, brings the curson on the variable definition

It seems at some point I lost you.
I thought the IDE can not find unit classes.
Please use instead of Ctrl+Left Click, the popup menu: Click Left to position the blinking cursor, then right click 'find declaration'. This will give an error message.

Mattias

Reply by email

Antonio Fortuny
to Mattias Gaertner

Sorry Guys, I will have to leave for a while, I have to solve a very urgent problem. I'll be back soon.

Antonio.

Le 03/04/2013 12:46, Mattias Gaertner a ?crit :

Show quoted text 34 lines
> Antonio Fortuny hat am 3. April 2013 um 11:44 > geschrieben: > > > > Le 03/04/2013 11:14, Mattias Gaertner a ??crit : >> On Wed, 03 Apr 2013 11:05:45 +0200 >> Antonio Fortuny wrote: >> >>> Another strange behaviour is that lots of types are not recognized: >>> On my own units as well on Lazarus units, setting the cursor on the word >>> TPanel using the key Ctrl does not undescore the TPanel and Ctrl+Left >>> click has no effect. >>> Even my own types are not known although the unit is the uses clause and >>> the program compilation looks OK >> Everything that uses the classes unit suffers. >> Try the Ctrl key over the uses section. Can you jump to 'sysutils'? > yes, and Classes too > When I Ctrl+Left click on a TObject descendant of TObject, nothing happens > But Ctrl+Left click over a local method variable, brings the curson on > the variable definition It seems at some point I lost you. I thought the IDE can not find unit classes. Please use instead of Ctrl+Left Click, the popup menu: Click Left to position the blinking cursor, then right click 'find declaration'. This will give an error message. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130403/f9668e8f/attachment.html>

Reply by email