[Lazarus] MainMenu with highlighted shortcut character

2024-03-16 Thread John Landmesser via lazarus


The highlighted character in TMainMenu.Caption "" only shows up
sometimes but works allways. Is this a bug?


This happens on Linux and Win 10 with:

Lazarus 3.99 (rev main_3_99-1555-ge253e8cfb4) FPC 3.2.2
i386-win32-win32/win64

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] What happened to code templates?

2024-02-28 Thread John Landmesser via lazarus

My lazarus is functional as it was before.

I don't need to understand the IDE in detail

Thanks to all that answered my initial question !

John Landmesser


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] What happened to code templates?

2024-02-28 Thread John Landmesser via lazarus

Am 28.02.24 um 10:10 schrieb Juha Manninen via lazarus:


Renaming "lazarus_dci_file.dci" to "codetemplates.dci" should not 
affect a file named "lazarus.dci".
I searched in my home dir if I have "lazarus.dci". It is found in a 
config dir for Lazarus 2.0. I don't remember creating such a file. How 
did it get there? I guess I don't know everything about the templates 
and their history.


Juha



Wondering about filenames you are talking about:


if i start my lazarus with new --pcp

lazarus --pcp=/home/john1/.lazarus-juha

I get these new config files including lazarus.dci


[john1@manjaro .lazarus-juha]$ ls -lha
insgesamt 540K
drwxr-xr-x  4 john1 john1  4,0K 28. Feb 21:40 .
drwx-- 97 john1 systemd-journal-upload 4,0K 28. Feb 21:41 ..
-rw-r--r--  1 john1 john1   803 28. Feb 21:40 
codeexploreroptions.xml
-rw-r--r--  1 john1 john1   267 28. Feb 21:40 
debuggeroptions.xml
-rw-r--r--  1 john1 john1   837 28. Feb 21:39 
editoroptions.xml
-rw-r--r--  1 john1 john1   12K 28. Feb 21:40 
environmentoptions.xml
-rw-r--r--  1 john1 john1  466K 28. Feb 21:39 
fpcdefines.xml
-rw-r--r--  1 john1 john1   115 28. Feb 21:40 
includelinks.xml
-rw-r--r--  1 john1 john1   168 28. Feb 21:40 
inputhistory.xml
-rw-r--r--  1 john1 john1   12K 28. Feb 21:39 
jcfsettings.cfg

-rw-r--r--  1 john1 john1  6,9K 28. Feb 21:40 lazarus.dci
-rw-r--r--  1 john1 john1  1,2K 28. Feb 21:38 
laz_indentation.pas
drwxr-xr-x  6 john1 john1  4,0K 28. Feb 21:39 
onlinepackagemanager
drwxr-xr-x  2 john1 john1  4,0K 28. Feb 21:38 
projectsessions


No codetemplates.dci ???


Info:

Lazarus 3.99 (rev main_3_99-1538-g642e3bac61) FPC 3.2.2 x86_64-linux-gtk2

Manjaro Linux XFCE

Hope these infos are usefull ?!!

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] What happened to code templates?

2024-02-28 Thread John Landmesser via lazarus

Am 28.02.24 um 10:10 schrieb Juha Manninen via lazarus:

On Wed, Feb 28, 2024 at 10:50 AM Martin Frb via lazarus
 wrote:

Just to be sure, did you directly edit the lazarus.dci inside the
ide folder in the lazarus install dir?

Because then, it would have stopped working.
If you edit via the IDE, then the modified file is saved in your PCP.

If the above is your issue copy the modified file to the PCP.


Renaming "lazarus_dci_file.dci" to "codetemplates.dci" should not
affect a file named "lazarus.dci".
I searched in my home dir if I have "lazarus.dci". It is found in a
config dir for Lazarus 2.0. I don't remember creating such a file. How
did it get there? I guess I don't know everything about the templates
and their history.

Juha



My lazarus.dci is very, very old !! Copied from Delphi, I don't remember!

I have only three(?) additions that i got working again ... so
everything is fine with lazarus IDE ... as usual :-)

John
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] What happened to code templates?

2024-02-27 Thread John Landmesser via lazarus


Ok, i have to redefine my own code templates using the new  Makro edit
box ?!

But why this change? I see no benefit.

Ok i am just a hobbyist using lazarus IDE !

mpf ...

John Landmesser

Am 27.02.24 um 18:45 schrieb John Landmesser via lazarus:

Info:


Lazarus 3.99 (rev main_3_99-1527-gf3aa0586d9) FPC 3.2.2
x86_64-linux-gtk2


my old lazarus.dci contained for example


[sm | showmessage]
 ShowMessage('|');


I could use this template by

sm + Ctrl+j


Now i have in lazarus.dci


[sm | showmessage]
[todo | ToDo item creator]

.. and there is no way how i can use that?!!


Clarification really needed!


John Landmesser



--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] What happened to code templates?

2024-02-27 Thread John Landmesser via lazarus

Info:


Lazarus 3.99 (rev main_3_99-1527-gf3aa0586d9) FPC 3.2.2 x86_64-linux-gtk2


my old lazarus.dci contained for example


[sm | showmessage]
 ShowMessage('|');


I could use this template by

sm + Ctrl+j


Now i have in lazarus.dci


[sm | showmessage]
[todo | ToDo item creator]

.. and there is no way how i can use that?!!


Clarification really needed!


John Landmesser

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Howto register MIME-Types for Lazarus IDE ?

2024-02-07 Thread John Landmesser via lazarus

What i tried so far in vain:

Info_ running Linux Mint newest Version (21.3) and lazarus trunk:

Lazarus 3.99 (rev main_3_99-1378-gde6b521614) FPC 3.2.2 x86_64-linux-gtk2

Fresh install of lazarus trunk and then:

sudo make install

with this result:


john1@Mint:~/lazarus$ sudo make install
[sudo] Passwort für john1:
/usr/bin/install -m 755 -d /usr/local/share
/usr/bin/install -m 755 -d /usr/local/share/lazarus
/usr/bin/install -m 755 -d /usr/local/share/applications
/usr/bin/install -m 755 -d /usr/local/share/pixmaps
/usr/bin/install -m 755 -d /usr/local/share/mime/packages
/usr/bin/install -m 755 -d /usr/local/share/icons/hicolor/48x48/mimetypes
/usr/bin/install -m 755 -d /usr/local/bin
/usr/bin/install -m 755 -d /usr/local/share/man
/usr/bin/install -m 755 -d /usr/local/share/man/man1
/usr/bin/cp -Rfp packager debugger designer converter ide images
languages lazarus.app units /usr/local/share/lazarus
/usr/bin/cp -Rfp components docs doceditor examples lcl test tools
/usr/local/share/lazarus
/usr/bin/cp -Rfp Makefile* *.txt /usr/local/share/lazarus
/usr/bin/install -c -m 755 lazarus startlazarus lazbuild
/usr/local/share/lazarus
ln -sf ../share/lazarus/lazarus /usr/local/bin/lazarus-ide
ln -sf ../share/lazarus/startlazarus /usr/local/bin/startlazarus
ln -sf ../share/lazarus/lazbuild /usr/local/bin/lazbuild
ln -sf ../share/lazarus/tools/lazres /usr/local/bin/lazres
ln -sf ../share/lazarus/tools/lrstolfm /usr/local/bin/lrstolfm
ln -sf ../share/lazarus/tools/updatepofiles /usr/local/bin/updatepofiles
make -C install/man install PREFIX=/usr/local GINSTALL=/usr/bin/install
make[1]: Verzeichnis „/home/john1/lazarus/install/man“ wird betreten
cat man1/lazarus-ide.1 | gzip > man1/lazarus-ide.1.gz
cat man1/lazbuild.1 | gzip > man1/lazbuild.1.gz
cat man1/lazres.1 | gzip > man1/lazres.1.gz
cat man1/lrstolfm.1 | gzip > man1/lrstolfm.1.gz
cat man1/startlazarus.1 | gzip > man1/startlazarus.1.gz
cat man1/svn2revisioninc.1 | gzip > man1/svn2revisioninc.1.gz
cat man1/updatepofiles.1 | gzip > man1/updatepofiles.1.gz
/usr/bin/install -m 644 man1/lazarus-ide.1.gz man1/lazbuild.1.gz
man1/lazres.1.gz man1/lrstolfm.1.gz man1/startlazarus.1.gz
man1/svn2revisioninc.1.gz man1/updatepofiles.1.gz
/usr/local/share/man/man1
rm -f man1/lazarus-ide.1.gz man1/lazbuild.1.gz man1/lazres.1.gz
man1/lrstolfm.1.gz man1/startlazarus.1.gz man1/svn2revisioninc.1.gz
man1/updatepofiles.1.gz
make[1]: Verzeichnis „/home/john1/lazarus/install/man“ wird verlassen
/usr/bin/install -c -m 644 install/lazarus.desktop
/usr/local/share/applications/lazarus.desktop
/usr/bin/install -c -m 644 images/icons/lazarus128x128.png
/usr/local/share/pixmaps/lazarus.png
/usr/bin/install -c -m 644 install/lazarus-mime.xml
/usr/local/share/mime/packages/lazarus.xml
/usr/bin/install -c -m 644 images/mimetypes/*.png
/usr/local/share/icons/hicolor/48x48/mimetypes/
/usr/bin/install -m 755 -d
/usr/local/share/lazarus/units/x86_64-linux/nogui
/usr/bin/install -m 755 -d /usr/local/share/lazarus/units/x86_64-linux/gtk
/usr/bin/install -m 755 -d
/usr/local/share/lazarus/units/x86_64-linux/gtk2
/usr/bin/install -m 755 -d
/usr/local/share/lazarus/units/x86_64-linux/gtk3
/usr/bin/install -m 755 -d
/usr/local/share/lazarus/units/x86_64-linux/gtk4
/usr/bin/install -m 755 -d /usr/local/share/lazarus/units/x86_64-linux/qt
/usr/bin/install -m 755 -d /usr/local/share/lazarus/units/x86_64-linux/qt5
/usr/bin/install -m 755 -d /usr/local/share/lazarus/units/x86_64-linux/qt6
/usr/bin/install -m 755 -d
/usr/local/share/lazarus/components/synedit/design/languages


For my understanding that looks ok but filemanager nemo shows :

https://imgur.com/i4ifNkT.png

As you can see in column MIme-Type there is the information that i would
expect for columns File-Type!

I have also Lazarus trunk install on my Manjaro linux and there
everything is ok with mime-types.

Which step is missing to correct this  issue?

I tried also a Lazarus install from Mint repository ... no success!

Tipps are welcome ...

John Landmesser



--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Need a good replacement for TMemo

2024-02-07 Thread John Landmesser via lazarus

Am 07.02.24 um 07:49 schrieb Juha Manninen via lazarus:

On Tue, Feb 6, 2024 at 11:31 PM Timothy Groves via lazarus
 wrote:

... and RichMemo won't work.  (It will compile
in, but then Lazarus crashes on startup with an Access Violation.)


I updated lazarus-ccr repo and tried to install the RichMemo_design
package. Lazarus does not crash but the RichMemo component does not
show up either. It should be in the 'Common Controls' palette page.

I tested with Lazarus trunk + LCL-GTK2 and LCL-QT5 widgetsets. For
LCL-GTK2 I had to add {$define RMLCLTRUNK} in unit Gtk2RichMemo. It is
used for function GetWidgetInfo() which was last edited by Mark in
2010. Maybe an IFDEF was needed for Lazarus trunk some 14 years ago
but now the code should be updated.

Does RichMemo installation work for somebody?

Juha



Please test RichMemo for Linux AND Windows!

Long ago i tried to use RichMemo that worked for windows but not for linux!
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] DBGrid displays Float as integer

2024-02-01 Thread John Landmesser via lazarus

Am 01.02.24 um 11:40 schrieb LacaK via lazarus:



If i execute: "SELECT CAST(AVG(km_gelaufen) *AS REAL*) FROM
laufdaten" the known problem of integer only shows up again.

BUT:

If i execute this "SELECT CAST(AVG(km_gelaufen)  AS REAL) FROM
laufdaten " in SQliteStudio it works as it should.


Ok then it is clear that SQLite produces result as expected


Is DBgrid or Zeos Access components  the culpit? I don't know.


Do you use Zeos components not SQLdb (TSQLQuery)?
Can you test datatype of TField created at runtime?
For example place somewhere after dataset is Open-ed something like:
ShowMessage(Fieldtypenames[Query1.Fields[0].DataType]);

L.




I am happy with the result i get ... no more searching needed, see also
last post of Michael van Cannyet
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] DBGrid displays Float as integer

2024-02-01 Thread John Landmesser via lazarus




But if you value correctness and integrity of your data, don't use
sqlite.
At best it should be used for config or textual data. Anything else is
risky.

Michael.


Thanks for this clarification !

It is just a protocol of my jogging hobby,  so no live is in danger :-)

And now i know my jogging in second half of year 2023 was shorter but 1
second quicker per km.

Is'nt that a value statistik? Yeah!!

Thanks for lazarus ...

JohnML

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] DBGrid displays Float as integer

2024-02-01 Thread John Landmesser via lazarus

Am 01.02.24 um 07:51 schrieb LacaK via lazarus:

Hi,

IMO AVG() should produce floating point result.

https://www.sqlite.org/lang_aggfunc.html#aggfunclist: The result of
avg() is always a floating point value whenever there is at least one
non-NULL input even if all inputs are integers.

In SQLite plays role column affinity. I expect that "km_gelaufen" is
of NUMERIC or REAL affinity.

What result (in TDBGrid) gives: SELECT CAST(AVG(km_gelaufen)  AS REAL)
FROM laufdaten ?

L.



Ok, *solution* is to CAST AS Varchar the result:

SELECT CAST(AVG(km_gelaufen)  AS VARCHAR) FROM laufdaten

But  i don't understand why i do have to cast the result ...







In my SQlite Database laufdaten.db column "km_gelaufen"  is of Type
float. But SQlite does not know this type and if i understood that
correct SQLite  creates this type as needed?!

If i execute: "SELECT CAST(AVG(km_gelaufen) *AS REAL*) FROM laufdaten"
the known problem of integer only shows up again.

BUT:

If i execute this "SELECT CAST(AVG(km_gelaufen)  AS REAL) FROM laufdaten
" in SQliteStudio it works as it should.

Is DBgrid or Zeos Access components  the culpit? I don't know.

But  for me at the moment its ok now because i know how to circumvent
this problem with CAST() as VARCHAR

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] DBGrid displays Float as integer

2024-01-31 Thread John Landmesser via lazarus


Ok, *solution* is to CAST AS Varchar the result:

SELECT CAST(AVG(km_gelaufen)  AS VARCHAR) FROM laufdaten

But  i don't understand why i do have to cast the result ...
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] DBGrid displays Float as integer

2024-01-31 Thread John Landmesser via lazarus

Am 31.01.24 um 17:17 schrieb Santi via lazarus:

El 31/01/2024 a las 14:32, n Landmesser via lazarus escribió:


An SQL satatement on a float field is displayed as an integer field
in a DBGrid. The fields are created "on the fly" they are not static!



SQL statement is:

"SELECT AVG( km_gelaufen  ) FROM laufdaten"

SQL returns the correct value "2,00739263803681" if i copy the value
in DBGrid, but DBGrid itself shows only integer value.



Look the format of the field component.
Is it a TIntegerField? Maybe you selected the wrong field type, it
should be a TFloatField
If it is a TFloatField, look at display format. Maybe you haven't
selected the number of decimal properly.



There is just the Database and a TQuery and the  DBGrid , i execute the
SQL code and lazarus DBGrid shows the result as described above.

No static fielddefs with format options. The result field creates
lazarus "on the fly"
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] DBGrid displays Float as integer

2024-01-31 Thread John Landmesser via lazarus

An SQL satatement on a float field is displayed as an integer field in a
DBGrid. The fields are created "on the fly" they are not static!



SQL statement is:

"SELECT AVG( km_gelaufen  ) FROM laufdaten"

SQL returns the correct value "2,00739263803681" if i copy the value in
DBGrid, but DBGrid itself shows only integer value.

Any idea how to correct that?

It is a SQlite database.

Info:

Lazarus 3.99 (rev main_3_99-1333-g5c01e6a88e) FPC 3.2.2 x86_64-linux-gtk2

Tipps are welcome ..,
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] How to restore package anchordocking to default values

2024-01-17 Thread John Landmesser via lazarus

Am 17.01.2024 um 14:20 schrieb Mattias Gaertner via lazarus:



On 17.01.24 14:07, John Landmesser via lazarus wrote:

On windows 10 i somehow ruined the configuration of installed package
"AnchorDockingDsgn".

All the anchored windows of the IDE are messed up  :-(

It is of no use to reinstall this package ... so how to restore its
default Values for objectinspector, codeexplorer ...

Tipps are needed ... thank you!


Lazarus config directory "environmentoptions.xml" search for tag
"Desktops"

Close the IDE and delete the tag.

Mattias



Found a backup of my lazarus  --pcp :-)

I get allways confused by this Windows naming sheme, there is no
c:\Users , ok its called Benutzer !

On Linux XFCE the thunar developers created links in thunar for a
mounted Windows device with "useful" names ... thank you :-)

Back to coding ...

John

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] How to restore package anchordocking to default values

2024-01-17 Thread John Landmesser via lazarus

On windows 10 i somehow ruined the configuration of installed package
"AnchorDockingDsgn".

All the anchored windows of the IDE are messed up  :-(

It is of no use to reinstall this package ... so how to restore its
default Values for objectinspector, codeexplorer ...

Tipps are needed ... thank you!

Regards

John Landmesser

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus and Wayland display manager

2024-01-02 Thread John Landmesser via lazarus

Am 02.01.24 um 22:58 schrieb Kostas Michalopoulos via lazarus:

On 1/2/24 17:46, John Landmesser via lazarus wrote:

I had issues with the Lazarus IDE itself: instead of a form it showed a
fullscreen white window and at next lazarus boot asked me if to open
this broken project again or begin a new project.


Hm, perhaps it was some botched configuration? Out of curiosity i
downloaded and tried "Nobara 39 Official" (latest version from their
site, it uses KDE), installed FPC from the repository and Lazarus from
git (trunk) and it worked fine (wonky theme aside):

https://i.imgur.com/S1gld6B.png

I did try it in a VM though (and everything was very sluggish), but
this shouldn't affect anything related to Wayland. Also i didn't try
the Gnome-based version, was the one you tried Gnome or KDE?

Kostas


I had KDE only that worked ok but the IDE of lazarus had issues as i told .

I deleted Nobara and so the issues with Lazarus are also deleted :-)

As a sidenote ... i often read NoBra instead of Nobara and thats my own
issue :-)


Good night!

JohnML

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus and Wayland display manager

2024-01-02 Thread John Landmesser via lazarus

Am 02.01.24 um 16:40 schrieb Kostas Michalopoulos via lazarus:

On 12/31/23 15:35, John Landmesser via lazarus wrote:

Just trying lazarus on new distribution nobara ( Fedora clone ) with
wayland, but it seems that the IDE sometimes get in trouble with this
display manager wayland. Changed back to x11 that is much better.


What are the issues you face? Sadly it seems the Gtk2 LCL widgetset
does some weird stuff on its own and it sometimes has issues even with
X11 window managers.

Kostas



I had issues with the Lazarus IDE itself: instead of a form it showed a
fullscreen white window and at next lazarus boot asked me if to open
this broken project again or begin a new project.

I don't look any further on this issue: removed that distribution and
use my working Manjaro with X11 :-)

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Lazarus and Wayland display manager

2023-12-31 Thread John Landmesser via lazarus

Just trying lazarus on new distribution nobara ( Fedora clone ) with
wayland, but it seems that the IDE sometimes get in trouble with this
display manager wayland. Changed back to x11 that is much better.


Lazarus 3.99 (rev main_3_99-1123-gd2954c9818) FPC 3.2.2 x86_64-linux-gtk2


In Lazarus mailing list i found:



On Mon, Feb 22, 2021 at 10:52 AM Juha Manninen 
wrote:

> The libXtst library dependency pulled in for Linux (and UNIX) was a
> 100% increase of system dependencies for a Lazarus release, and for
> absolutely no benefit.
> Now Lazarus BigIde depends on just libgtk2.0-dev.
>

Ok, that was not accurate. Many other system libraries are pulled in
by libgtk2.0-dev.
However in a distro package system level it is the only requirement.
Adding dependency for X brings another problem: Lazarus would not work
with
Wayland display server.
Now it works if the widgetset supports Wayland. Major widgetsets like GTK3
and QT5 do support it. Not sure about GTK2.

Juha



Is that still true ... ?

Wayland in general has strange issues?!

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] How to generate the fppkg.cnf file which Lazarus complains about when starting?

2023-11-16 Thread John Landmesser via lazarus

Am 16.11.23 um 13:30 schrieb Bo Berglund via lazarus:

I have installed Lazarus on a Raspberry Pi4B running bookworm 64 bit operating
system.
I first tried to use fpcupdeluxe to do it but it fails miesrably with a linker
error when building fpc.
So then I decided to try the following:
1) Use apt install fpc to getb the latest 3.2.2 compiler installed.
2) Retrieve the Lazarus 2.2.6 sources from GitLab
3) Then run the make clean && make bigide inside the Lazarus source dir
4) Finally create the $HOME/.local/share/applications/lazarus_2.2.6.desktop
launcher file

This succeeded and after I had created the desktop file for Lazarus in step 4 it
appeared in the RPi4 main menu under Programming.

But when I started it it complains about not finding fppkg.cfg and sure enough
there is no such file to be found, at least not in the locations I have seen
before.

So apparently it has not been created or is in some obscure loication not known
by me.

My Lazarus resides in $HOME/devtools/lazarus/2.2.6 and fpc has been placed in
/usr/bin/fpc.

But I cannot find a file named fppkgh.cfg whereever I look...

What to do now?

Lazarus runs and I can add IDE packages and rebuild Lazarus just fine but
whenever it starts up it shows the dialog requesting the location of
fppkg.cfg...





On my Manjaro linux the file in question are located in two places:

[john1@manjaro lazarus]$ locate -i  fppkg.cfg
*/etc/fppkg.cfg*

*... with this contrent*

**


*[Defaults]
ConfigVersion=5
LocalRepository={UserDir}.fppkg/
BuildDir={LocalRepository}build/
ArchivesDir={LocalRepository}archives/
CompilerConfigDir=/etc/fppkg
RemoteMirrors=https://www.freepascal.org/repository/mirrors.xml
RemoteRepository=auto
CompilerConfig=default
FPMakeCompilerConfig=default
Downloader=FPC
InstallRepository=user

[Repository]
Name=fpc
Description=Packages which are installed along with the Free Pascal
Compiler
Path=/usr/lib/fpc/{CompilerVersion}/
Prefix=/usr/lib/fpc/../../

[IncludeFiles]
FileMask=/etc/fppkgconf.d/*.conf

[Repository]
Name=user
Description=User-installed packages
Path={LocalRepository}lib/fpc/{CompilerVersion}
Prefix={LocalRepository}
*

*
*

*/usr/lib/fpc/src/utils/fpcmkcfg/fppkg.cfg*


Perhaps this command tells you more?

[john1@manjaro lazarus]$*./lazarus --setup*
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] strange error message

2023-10-11 Thread John Landmesser via lazarus

Am 10.10.23 um 23:33 schrieb Mattias Gaertner via lazarus:



On 10.10.23 23:11, John Landmesser via lazarus wrote:

Hi,

recompile the IDE i get this


Lazarus 3.99 (rev main_3_99-532-gb59196e223) FPC 3.2.0 x86_64-linux-gtk2


Lazarus did not find ppcarm

Mattias



thank you, restored a clonezilla backup of Deepin linux and now all is
fine again.

No idea how i corrupted this file !?

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] strange error message

2023-10-10 Thread John Landmesser via lazarus

Hi,

recompile the IDE i get this


Lazarus 3.99 (rev main_3_99-532-gb59196e223) FPC 3.2.0 x86_64-linux-gtk2

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] GTK 3 Widget Set Status?

2023-09-26 Thread John Landmesser via lazarus

Am 26.09.23 um 16:40 schrieb Anthony Walter via lazarus:

Would someone be so kind to tell me if the GTK 3 widget set is working
yet? Does the IDE work when built using GTK 3 and can I write most
normal desktop applications using GTK 3 right now when using the a
most recent trunk revision? What's not working in a general sense?

I thought I'd ask you guys rather than clone Lazarus from git, build
it, and hunt for problems.

Thanks.


I just compiled this lazarus trunk  with gtk3 (Alpha)

Lazarus 3.99 (rev main_3_99-346-g925ffd19ad) FPC 3.2.2 x86_64-linux-gtk2


It compiles ok but it does not start,

My conclusion: Ít is still not usable!

But perhaps someone with knowledge in details can tell you more.

Regards

John

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Lazarus trunk version number

2023-06-30 Thread John Landmesser via lazarus

perhaps that should have become 3.00 ?


Lazarus *3.99* (rev main_3_99-41-g3d8dd85474) FPC 3.2.2 x86_64-linux-gtk2


Yes, Just a number!
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Build Lazarus trunk clean

2023-06-12 Thread John Landmesser via lazarus

Am 11.06.23 um 23:36 schrieb Juha Manninen via lazarus:

Please test again. Mattias generated the makefiles and saved me once
again.

Juha




Works again :-)


Thank you Juha & Mattias!

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Build Lazarus trunk clean

2023-06-11 Thread John Landmesser via lazarus

Am 11.06.23 um 20:15 schrieb Juha Manninen via lazarus:

I did some refactoring in Lazarus sources. At least one file was moved
and dependencies changed.
It may require building clean to avoid "incompatible .ppu file"
warnings and similar.

Regards,
Juha




I can compile  lazarus trunk from within the IDE:


Lazarus 2.3.0 (rev main-2_3-3623-gec14525a1a) FPC 3.2.2 x86_64-linux-gtk2


But if i git pull to a fresh lazarus folder i get this error:

make all clean useride


(3104) Compiling inputhistory.pas
/home/john1/lazarus/components/ideintf/inputhistory.pas(46,3) Fatal:
(10022) Can't find unit FileProcs used by InputHistory
Fatal: (1018) Compilation aborted
make[1]: *** [Makefile:3745: ideintf.ppu] Fehler 1
make[1]: Verzeichnis „/home/john1/lazarus/components/ideintf“ wird
verlassen
make: *** [Makefile:3870: lazbuild] Fehler 2


Whats the difference between these two methods?



--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1)

2023-04-18 Thread John Landmesser via lazarus

Am 18.04.23 um 12:25 schrieb Giuliano Colla via lazarus:


Il 17/04/2023 10:32, Mattias Gaertner via lazarus ha scritto:


That's why there is "Clean all" radiobutton on the configure build
lazarus dialog. It building fails, try that.

I did look in vain for that radiobutton. The only one available
(Lazarus 2.2.6) is "clean common files":



Giuliano

--
Do not do to others as you would have them do to you.They might have different 
tastes.


I have them all on Lazarus 2.3.0 (rev main-2_3-2936-g6fda552055) FPC
3.2.2 x86_64-linux-gtk2


Perhaps resize this Dialog?

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus/Fpc on RaspberryPi4 - linkxxx.res files stack up, why?

2023-04-05 Thread John Landmesser via lazarus

Am 05.04.23 um 20:50 schrieb Bo Berglund via lazarus:

Does someone here know what I can do in order not having my project folder
polluted by numerous files named link.res where  is a decimal number
apparently random in nature?
Yesterday I removed about 20 of these files and now again I have 8 new such
files in the directory...

Is there some setting I have missed in Lazarus to cause this?
I am on Lazarus 2.2.6/Fpc 3.2.2 on an RPi4B 8GB device.
Both are installed from sources.



I don't know the answer but if you do not use "quick compile you wiil
not have these files!

See also https://forum.lazarus.freepascal.org/index.php?topic=60095.0

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] small issue

2023-03-02 Thread John Landmesser via lazarus

if i try to compile an application with qt5 LCLwidgetType i get an error
messages and thats ok:



Error: /home/john1/lazarus/lcl/interfaces//qt5/qtobject.inc:43:
undefined reference to
`QGuiApplication_setFallbackSessionManagementEnabled'
Alter_berechnen.lpr(20,1) Error: Error while linking


*BUT:*

The Lazarus IDE writes strange files that i have to delete myself:


link1622848.res


Is that worth to write a bug report?
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] converted Delphi 7 project: add new form not possible?

2023-02-25 Thread John Landmesser via lazarus

Am 24.02.23 um 23:00 schrieb Werner Pamler via lazarus:

Am 24.02.2023 um 21:35 schrieb John Landmesser via lazarus:

Hi,

I tried to extend an existing and converted  Delphi 7 project by adding
new form to the converted Delphi 7 project.

But that leads to an AV-error if i try to show this new form by code!


I normally convert Delphi projects manually - it's more work, but I
know what's happening then... And the manual conversion of your test
project worked flawlessly.

But anyway: When trying to use the IDE's Delphi converter I saw two
problems:

/1/ The newly added form is named Form1 (type TForm1) and this screws
up the entire project since these identifiers already exist in the
Delphi project. I can circumvent this issue when I close the IDE after
conversion and create the new form only after a restart.

/2/ But this does not prevent the other issue: The IDE refuses to add
the new form to the list of auto-created forms, and therefore a call
of "Form2.Show" in the OnClick handler of your button on Form1 must
fail. I have no idea what prevents the new form from being
auto-created. As a work-around I added the line
"Application.CreateForm(TForm2, Form2);" to the project unit manually
(and Unit2 to its uses clause). - This way it works.

Please file a bug report.




done!

https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40132

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] converted Delphi 7 project: add new form not possible?

2023-02-24 Thread John Landmesser via lazarus

Am 24.02.23 um 23:00 schrieb Werner Pamler via lazarus:

Am 24.02.2023 um 21:35 schrieb John Landmesser via lazarus:

Hi,

I tried to extend an existing and converted  Delphi 7 project by adding
new form to the converted Delphi 7 project.

But that leads to an AV-error if i try to show this new form by code!


I normally convert Delphi projects manually - it's more work, but I
know what's happening then... And the manual conversion of your test
project worked flawlessly.

But anyway: When trying to use the IDE's Delphi converter I saw two
problems:

/1/ The newly added form is named Form1 (type TForm1) and this screws
up the entire project since these identifiers already exist in the
Delphi project. I can circumvent this issue when I close the IDE after
conversion and create the new form only after a restart.

/2/ But this does not prevent the other issue: The IDE refuses to add
the new form to the list of auto-created forms, and therefore a call
of "Form2.Show" in the OnClick handler of your button on Form1 must
fail. I have no idea what prevents the new form from being
auto-created. As a work-around I added the line
"Application.CreateForm(TForm2, Form2);" to the project unit manually
(and Unit2 to its uses clause). - This way it works.

Please file a bug report.



Thanks for your investigation.!


I'll file a bug report tomorrow.

Regards

John Landmesser


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] converted Delphi 7 project: add new form not possible?

2023-02-24 Thread John Landmesser via lazarus

Am 24.02.23 um 23:00 schrieb Werner Pamler via lazarus:

Am 24.02.2023 um 21:35 schrieb John Landmesser via lazarus:

Hi,

I tried to extend an existing and converted  Delphi 7 project by adding
new form to the converted Delphi 7 project.

But that leads to an AV-error if i try to show this new form by code!


I normally convert Delphi projects manually - it's more work, but I
know what's happening then... And the manual conversion of your test
project worked flawlessly.

But anyway: When trying to use the IDE's Delphi converter I saw two
problems:

/1/ The newly added form is named Form1 (type TForm1) and this screws
up the entire project since these identifiers already exist in the
Delphi project. I can circumvent this issue when I close the IDE after
conversion and create the new form only after a restart.

/2/ But this does not prevent the other issue: The IDE refuses to add
the new form to the list of auto-created forms, and therefore a call
of "Form2.Show" in the OnClick handler of your button on Form1 must
fail. I have no idea what prevents the new form from being
auto-created. As a work-around I added the line
"Application.CreateForm(TForm2, Form2);" to the project unit manually
(and Unit2 to its uses clause). - This way it works.

Please file a bug report.



Thanks for your investigation.!


I'll file a bug report tomorrow.

Regards

John Landmesser

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] converted Delphi 7 project: add new form not possible?

2023-02-24 Thread John Landmesser via lazarus

.. and now the most interesting part:

Try to show form2 with the button on Delphi 7 converted form.

Before that add under implementation section:
uses unit2;

Now i get the AV-Error message if i try to show form2!

You too see an error mesage?


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] converted Delphi 7 project: add new form not possible?

2023-02-24 Thread John Landmesser via lazarus

Am 24.02.23 um 22:21 schrieb Vojtěch Čihák via lazarus:


Hi,

it is my new experience with Delphi project convertor.

I noticed that:

The converted unit1 has:

 TForm1 = class(TForm)

    ListBox1: TListBox;

    Button1: TButton;

   

And when I add a new form, i.e. unit2, it has also

TForm1 = class(TForm)

  private

  

Normally (common Lazarus project) it creates unit2 + Form2.

Vojtěch


That is correct, but when  you are saving the new form you can give it
new names?!




__
> Od: "John Landmesser via lazarus" 
> Komu: lazarus@lists.lazarus-ide.org
> Datum: 24.02.2023 21:51
> Předmět: Re: [Lazarus] converted Delphi 7 project: add new form not
possible?

>
> John Landmesser
>

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] converted Delphi 7 project: add new form not possible?

2023-02-24 Thread John Landmesser via lazarus

Sorry sysinfo missing:

Lazarus:
Lazarus 2.3.0 (rev main-2_3-2873-g17b66f88c4) FPC 3.2.2 x86_64-linux-gtk2

On Manjaro XFCE Linux:
System:
  Kernel: 6.1.1-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
Desktop: Xfce v: 4.18.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 81RS v: Lenovo Yoga S740-14IIL
serial: 
  Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN serial:  UEFI: LENOVO
    v: BYCN39WW date: 05/28/2021
Battery:
  ID-1: BAT0 charge: 63.7 Wh (97.5%) condition: 65.3/62.0 Wh (105.3%)
volts: 17.1 min: 15.4
    model: LGC L19L4PD2 status: full
CPU:
  Info: quad core model: Intel Core i7-1065G7 bits: 64 type: MT MCP
arch: Ice Lake rev: 5 cache:
    L1: 320 KiB L2: 2 MiB L3: 8 MiB
  Speed (MHz): avg: 1367 high: 1500 min/max: 400/3900 cores: 1: 1299 2:
1300 3: 1500 4: 1500
    5: 1275 6: 1500 7: 1300 8: 1262 bogomips: 23968
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx


Delphi 7 Pro on Windows 10 Home


Am 24.02.23 um 21:35 schrieb John Landmesser via lazarus:

Hi,

I tried to extend an existing and converted  Delphi 7 project by adding
new form to the converted Delphi 7 project.

But that leads to an AV-error if i try to show this new form by code!


Sample not yet converted  Delphi 7 project:

I hope i configured my google drive correct so this link works for
downloading?!


https://drive.google.com/file/d/1PgY5sR9cXnhtQQgG5zpfMd2lEFg65kkN/view?usp=sharing



Tipps are welcome

John Landmesser



--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] converted Delphi 7 project: add new form not possible?

2023-02-24 Thread John Landmesser via lazarus

Hi,

I tried to extend an existing and converted  Delphi 7 project by adding
new form to the converted Delphi 7 project.

But that leads to an AV-error if i try to show this new form by code!


Sample not yet converted  Delphi 7 project:

I hope i configured my google drive correct so this link works for
downloading?!


https://drive.google.com/file/d/1PgY5sR9cXnhtQQgG5zpfMd2lEFg65kkN/view?usp=sharing


Tipps are welcome

John Landmesser

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Screwed up Lazarus installation - how to make clean and start over?

2023-02-22 Thread John Landmesser via lazarus

Am 22.02.23 um 18:01 schrieb Bo Berglund via lazarus:

On Wed, 22 Feb 2023 10:43:35 +0100, Bo Berglund via lazarus
  wrote:


Lacking any advice here I started over by removing the old Lazarus directory and
the pcp dir and then build from start with a new set of source files in a fresh
2.2.4 subdir...

All was Ok until again the OLPM packages were installed when the new Lazarus
also failed to start. It seems like at least one of the packages I use from OLPM
will hose Lazarus!

So now I will repeat the effort but this time I will install one package after
another using OLPM and rebuild Lazarus IDE after each. This way I would be able
to pinpoint the one that causes the problem.

So now I have found a package in OnLinePackageManager that will hose Lazarus if
installed:
  BGRABitmap


*I could install this package on my:*

*Lazarus 2.3.0 (rev main-2_3-2873-g17b66f88c4) FPC 3.2.2 x86_64-linux-gtk2*

*Linux manjaro 6.1.12-1-MANJARO #1 SMP PREEMPT_DYNAMIC Tue Feb 14
21:59:10 UTC 2023 x86_64 GNU/Linux
*

*
*

*Perhaps start lazarus from terminal to see what its telling ?!*




Up until installing that I was fine, but now Lazarus won't start

The Initial image is shown for 3 seconds and then disappears.
Then nothing...

What can I do to get into Lazarus and remove the BGRABitmap?

Or is there somewhere a file or such I can edit and then rebuild the IDE from
the command line?

This is on Linux (Raspberry Pi  OS).


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus and FreePascal version relations on Linux and Windows?

2023-02-22 Thread John Landmesser via lazarus

Am 22.02.23 um 10:00 schrieb Bo Berglund via lazarus:

I have used Lazarus on Windows and Linux many years and I have built the Linux
versions from sources but used the official installer for Windows.

On Linux I have had parallel versions of Lazarus but usually the same FPC and
this has worked fine. I think that on Linux the FPC becomes a global version and
then new Lazarus gets confused...


*
*

*Which fpc is needed tells you the release notes ... that changes
sometimes!*




On Windows the installer separates the complete package into a separate
directory which contains both Lazarus and FPC and none is put on system path.
So when I have say 6 different versions of Lazarus on Windows they are all
separate and do not conflict with each other.

Now I am having problems installing Lazarus 2.2.4 on Linux systems where older
Lazarus version exist because they use an older FPC which the new Lazarus cannot
use (3.0.4 vs 3.2.2).

On Linux FPC is put on path and so the instant one installs 3.2.2 on a system
already using 3.0.4 disaster follows...

Is this the reason for the continued problems with fppkg?

And another question:

How can I force Lazarus to show the initial configuration page, which is shown
on the very first start after installing Lazarus and later is skipped?


*
*

*That is in terminal lazarus --setup*



I think I remember that there is a way to show it from within Lazarus but I
cannot find where now...

Either way I would like to look at the config page for a working system so I can
see the differences between that and a Lazarus that behaves bad.


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Canvas.TextRec aligns to canvas and not rectangle for tlTop and taLeftJustify.

2023-02-19 Thread John Landmesser via lazarus

Hi,

add information about lazarus and fpc Version plus OS you are running.

Thats a bugreport  and should be written to
https://gitlab.com/freepascal.org/


I confirm this bug for

Lazarus 2.3.0 (rev main-2_3-2854-g0278edaea3) FPC 3.2.2 x86_64-linux-gtk2

see:

https://i.imgur.com/oJw7tzf.png

regards

John Landmesser

Am 19.02.23 um 08:00 schrieb Russ via lazarus:

Hi,

When writing text to the canvas using Canvas.TextRec(), using layout
tlTop and/or alignment  taLeftJustify, the text is aligned to the
canvas left and top edges instead of those edges of the text
rectangle. The other layout and alignment cases work correctly.

The sample code below illustrates this for all 9 possible combinations
of layout and alignment.

Changing lines 1302 and 1304 of canvas.inc fixes this problem:
   1302:   fRect.Left := X; --> fRect.Left := fRect.Left + X;
   1304:   fRect.Top := Y;  --> fRect.Top := fRect.Top + Y;

canvas.inc in Lazarus 2.2.4 and trunk are the same.

Regards
Russ


   unit Unit1;

   {$mode objfpc}{$H+}

   interface

   uses
 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls;

   type
 TForm1 = class(TForm)
   procedure FormCreate(Sender: TObject);
   procedure FormPaint(Sender: TObject);
 end;

   var
 Form1: TForm1;

   implementation

   {$R *.lfm}

   procedure TForm1.FormCreate(Sender: TObject);
   begin
 Width := 300;
 Height := 300;
 Position := poDesktopCenter;
   end;

   procedure TForm1.FormPaint(Sender: TObject);
   const
 Txt ='%s'+LineEnding+'%s';
 Spacing = 75;
 LeftMargin = 50;
 TopMargin = 50;
 VAlign: array[0..2] of TTextLayout = (tlTop, tlCenter, tlBottom);
 HAlign: array[0..2] of TAlignment = (taLeftJustify, taCenter,
taRightJustify);
   var
 TxtRect: TRect;    // Rectangle used for text.
 Outline: TRect;    // Enclosing outline rectangle.
 TxtStyle: TTextStyle;
 Col, Row: integer;
 X, Y: Integer;
 VStr, HStr: string;
   begin
 TxtStyle := Default(TTextStyle);
 TxtStyle.Wordbreak := true;
 TxtStyle.SystemFont := true;

 TxtRect := TRect.Create(0, 0, 55, 50);
 Outline := TRect.Create(0, 0, 59, 52);

 for Row := 0 to 2 do begin
   TxtStyle.Layout := VAlign[Row];
   WriteStr(VStr, VAlign[Row]);
   VStr := VStr.Replace('tl', '');
   Y := TopMargin + Row * Spacing;

   for Col := 0 to 2 do begin
 WriteStr(HStr, HAlign[Col]);
 HStr := HStr.Replace('Justify','').Replace('ta','');
 X := LeftMargin + Col * Spacing;
 Outline.SetLocation(X, Y);
 TxtRect.SetLocation(X, Y);
 TxtStyle.Alignment := HAlign[Col];
 Canvas.Rectangle(Outline);
 Canvas.TextRect(TxtRect, 2, 2, Txt.Format(Txt, [VStr, HStr]),
TxtStyle);
   end;
 end;
   end;

   end.


   object Form1: TForm1
 Left = 728
 Height = 529
 Top = 176
 Width = 545
 Caption = 'Form1'
 OnCreate = FormCreate
 OnPaint = FormPaint
 LCLVersion = '2.2.4.0'
   end




--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Format an integer with thousandseparators by function format()

2023-02-17 Thread John Landmesser via lazarus

Hi,

this one works, but i don't know why to devide the integer by 1:


    fmt := '%.0n';
    s1 := Format(fmt,[MyInteger/*1*]);


Lhelp tells me about function format, that does not work:


N

Number format. This is the same as fixed point format, except that
thousand separators are inserted in the resulting string.



Documentation generated on: Jun 27 2020


I'm on Lazarus 2.3.0 (rev main-2_3-2854-g0278edaea3) FPC 3.2.2
x86_64-linux-gtk2


Tipps are welcome


John Landmesser



-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Install Lazarus 2.2.4 on Ubuntu 20.04 LTS and other Linux

2023-02-09 Thread John Landmesser via lazarus

Am 09.02.23 um 11:08 schrieb Bo Berglund via lazarus:

Need help after fpc/lazarus moved from subversion...

So I have been using Lazarus/FPC on Linux for a long time now (12+ years) and I
have installed from sources using subversion access to the release tags on the
source svn server.
I created a script I could use on all these platforms to do the complete
installations of fpc, lazarus, dependencies and custom components etc.

This has been done on various Linux distros like Ubuntu 14-16-18-20 and
RaspberryPi since about 2014 until 2020 or so.

Now after having paused my programming a bit over the Covid pandemic I am back
and need to update my installations by adding the newest version 2.2.4.

But meanwhile the subversion server I have used has been replaced by some other
versioning system so my script does no longer work...

So I am asking how can I install from scratch on Linux (Ubuntu on PC and PiOS
for RaspberryPi) in such a way that the older versions can remain in place?

I googled a bit and found references to some deb files to download and use as
sources, but then was also stated that installing one version would remove any
other (earlier or later) existing version, which I surely do not want.

I need the 2.2.4 version to exist in parallel with my older versions 2.0.6,
2.0.8, 2.0.10 and 2.0.12, so I can still build my applications with either of
them...

Please advice!

PS
I also have Lazarus installed on Windows-10 but this is done using the official
sourceforge installers (i.e. not from source) and has resulted in separate
installations for these versions so I can build my code also for Windows.
DS




 in my  simple script i changed just one line to get it working with
new lazarus git sources:


  ' old svn code:

  #  svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus

  new code ( git needs to be installed )

  git clone https://gitlab.com/freepascal.org/lazarus/lazarus.git lazarus


Alternative: look how its done by fpcupdeluxe:

https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/tag/v2.2.0n

good luck!

JohnML

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] LCL compilation fail for at least x86_linux

2022-12-17 Thread John Landmesser via lazarus

Am 17.12.22 um 17:14 schrieb Marcus Sackrow via lazarus:


Hi,


the LCL compilation fails since b4c46c16207dc00997df6aeb83f01198787b

for all platforms I let compile in my Jenkins for example x86_64-linux


Compiling ./widgetset/wsforms.pp
customform.inc(38,5) Warning: Case statement does not handle all possible cases
customform.inc(647,3) Note: Local variable "NewState" not used
customform.inc(1164,26) Error: Incompatible types: got "TAnchors" expected "Set Of 
TAnchorKind"
customform.inc(1168,8) Error: Incompatible types: got "SYSTEM.UITYPES.TAnchorKind" 
expected "CONTROLS.TAnchorKind"
customform.inc(1170,8) Error: Incompatible types: got "SYSTEM.UITYPES.TAnchorKind" 
expected "CONTROLS.TAnchorKind"
forms.pp(2345) Fatal: There were 3 errors compiling module, stopping
Fatal: Compilation aborted
make[1]: *** [Makefile:4639: alllclunits.ppu] Error 1
make[1]: Leaving directory '/var/lib/jenkins/workspace/LCL_off_x86_64-linux/lcl'



full log at

https://build.alb42.de:8081/job/LCL_off_x86_64-linux/12105/console


Greetings,

Marcus




No probs here on XFCE and Linux manjaro 6.0.11-1-MANJARO #1 SMP
PREEMPT_DYNAMIC Fri Dec 2 21:23:52 UTC 2022 x86_64 GNU/Linux

What i did:

Renamed existing folder lazarus, did a

git clone https://gitlab.com/freepascal.org/lazarus/lazarus.git lazarus

and then in new lazarus folder

make clean
make all useride

Result:

Lazarus 2.3.0 (rev main-2_3-2521-gb4c46c) FPC 3.2.2 x86_64-linux-gtk2

So lazarus just compiles fine ...

Regards

John
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus GTK clears clipboard on exit

2022-04-22 Thread John Landmesser via lazarus

Am 22.04.22 um 13:35 schrieb R.Smith via lazarus:

As stated before, a clipboard maanger is the only real option. A
Google search for this specifically should be very fruitful.


Thanks for these  informations!

I use a really useful clipboard manager "copyq" and there i noticed.
strange: clipboard ist empty ... and there my search started.!

Now i have to hit two key strokes to activate the copied item in copyq
history ... thats ok.

Plus i learned something about clipboards in Linux ... thank you!


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Lazarus GTK clears clipboard on exit

2022-04-22 Thread John Landmesser via lazarus

History:

I'm fighting with google-chrome-stable on Manjaro Linux XFCE that clears
clipboard history when closed.

Searched in vain with google but just noticed: gtk applications as
lazarus-ide does it also and clears history on exit. Same with apps
developed with lazarus.

I rember, but not shure, that this behaviour of an application is 
"usual" on linux??

Firefox for example is not doing this ...

Info:

Lazarus 2.3.0 (rev main-2_3-1125-g468f788b36) FPC 3.2.2 x86_64-linux-gtk2

Why do i asked this? Makes me crazy if i searched with google , found
something useful, copied, closed Chrome and shit: its gone. I have a
clipboard manager copyq where i can activate this item again ...
annoying :-(


Tipps are welcome

John

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] How to check in code if LCLWidgetType is qt5?

2022-03-29 Thread John Landmesser via lazarus

Am 29.03.22 um 15:52 schrieb Mattias Gaertner via lazarus:

On Tue, 29 Mar 2022 15:44:24 +0200
John Landmesser via lazarus  wrote:


My app checks in code if trayIcon.Hint is working.

Therefor I have to distinguish in my code if the application has

LCLWidgetType=qt5 or LCLWidgetType=gtk2

The solution for gtk2 is:


getEnvironmentVariable('LAZUSEAPPIND')

I couldn't google a check for LCLWidgetType=qt5, how to do that?

Do you mean
{$IF defined(lclqt5) or defined(lclgtk2)}
?

Mattias


My first answer got lost?

I'll take

{$IF defined(lclgtk2)}

Thanks, that worked!

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] How to check in code if LCLWidgetType is qt5?

2022-03-29 Thread John Landmesser via lazarus

Am 29.03.22 um 15:52 schrieb Mattias Gaertner via lazarus:

On Tue, 29 Mar 2022 15:44:24 +0200
John Landmesser via lazarus  wrote:


My app checks in code if trayIcon.Hint is working.

Therefor I have to distinguish in my code if the application has

LCLWidgetType=qt5 or LCLWidgetType=gtk2

The solution for gtk2 is:


getEnvironmentVariable('LAZUSEAPPIND')

I couldn't google a check for LCLWidgetType=qt5, how to do that?

Do you mean
{$IF defined(lclqt5) or defined(lclgtk2)}
?

Mattias


I try

{$IF defined(lclqt5)

Thank you!

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] How to check in code if LCLWidgetType is qt5?

2022-03-29 Thread John Landmesser via lazarus

My app checks in code if trayIcon.Hint is working.

Therefor I have to distinguish in my code if the application has

LCLWidgetType=qt5 or LCLWidgetType=gtk2

The solution for gtk2 is:


getEnvironmentVariable('LAZUSEAPPIND')


I couldn't google a check for LCLWidgetType=qt5, how to do that?


Tipps are welcome 


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] will fixes_2_2 be merged to trunk before next release?

2022-03-23 Thread John Landmesser via lazarus

thanks Martin  for that tutorial in ' general workflow in git', but i'm
just a pensioner and programmer hobbyist.

As you wrote lazarus fixes_2_2 has no issue concerning qt5pas, so its
old code and nothing has to be fixed.

I don't will reopen my issue ... poor knowledge on my side, see above.

Happy coding ...

John


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] will fixes_2_2 be merged to trunk before next release?

2022-03-22 Thread John Landmesser via lazarus

Am 22.03.22 um 01:52 schrieb Martin Frb via lazarus:

On 21/03/2022 17:32, John Landmesser via lazarus wrote:

Am 21.03.22 um 11:49 schrieb John Landmesser via lazarus:

I had an issue with qt5pas that was fixed in lazarus fixes_2_2.

Because i now use:

Lazarus 2.3.0 (rev main-2_3-996-ga94312373c) FPC 3.2.2
x86_64-linux-gtk2

I would like to know if the fixes for lazarus 2.2 will be merged to
trunk before next release?


I don't know much about that particular issue, but from what I read:
There are no fixes in 2.2 that could be merged.

- 2.2 uses old code that works with the dependencies you have installed

- 2.3 has newer code and needs newer dependencies.
  On the issues it says, you may have to build them yourself. (I have
no idea, when they will be avail pre-compiled)



Your answer would fit to the answer  Alexey Torgashin gave me to my
question with title

"[Lazarus] IDE qt5 compile error" from  14.03.2022 18;15

I am thinking about which is the base for next lazarus release if
fixes_2_2 is NOT merged back to main development branch.

But as i said before: i'm noob also at  these topics.

Best of all: i start my only ex-qt5 application with environment
variable set

LAZUSEAPPIND=NO

and even in gtk2 trayicon.Hint wortks again.




--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] will fixes_2_2 be merged to trunk before next release?

2022-03-21 Thread John Landmesser via lazarus

Am 21.03.22 um 11:49 schrieb John Landmesser via lazarus:

I had an issue with qt5pas that was fixed in lazarus fixes_2_2.

Because i now use:

Lazarus 2.3.0 (rev main-2_3-996-ga94312373c) FPC 3.2.2 x86_64-linux-gtk2

I would like to know if the fixes for lazarus 2.2 will be merged to
trunk before next release?

And yes: i have a very poor knowledge about release models with git :-(


answer to zel...@holobit.hr

Allready closed issue:

https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39676

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] will fixes_2_2 be merged to trunk before next release?

2022-03-21 Thread John Landmesser via lazarus

I had an issue with qt5pas that was fixed in lazarus fixes_2_2.

Because i now use:

Lazarus 2.3.0 (rev main-2_3-996-ga94312373c) FPC 3.2.2 x86_64-linux-gtk2

I would like to know if the fixes for lazarus 2.2 will be merged to
trunk before next release?

And yes: i have a very poor knowledge about release models with git :-(

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] IDE qt5 compile error

2022-03-14 Thread John Landmesser via lazarus

Am 14.03.22 um 18:54 schrieb Alexey Torgashin via lazarus:


Error: /home/john1/lazarus/lcl/interfaces//qt5/qtobject.inc:42:
undefined reference to
`QGuiApplication_setFallbackSessionManagementEnabled'


Do not use Lazarus 'latest', but return to the revision before THAT
qt5 patch.
My linux terminal shows me which revision I use now:

user@PC:~/lazarus$ git status
HEAD detached at 23b2324f9f


I used Git to return to that revision.
Alexey


Thanks for that tip!


I don't use Lazarus qt5 any more. I have just one little app and for
this i have a workaround so i don't need qt5pas any more.


LAZUSEAPPIND=NO /run/media/john1/ntfs1/PROJEKTE/Lazarus/Sanduhr/Sanduhr

Doing this trayicon.hint works again and without qt5pas installed :-)

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] IDE qt5 compile error

2022-03-14 Thread John Landmesser via lazarus

I can't compile lazarus IDE anymore:

Lazarus 2.3.0 (rev main-2_3-991-ge2ad6b3d8d) FPC 3.2.2 x86_64-linux-gtk2

error:

Error: /home/john1/lazarus/lcl/interfaces//qt5/qtobject.inc:42:
undefined reference to `QGuiApplication_setFallbackSessionManagementEnabled'

I am on Manjaro Linux stable branch:

System:
  Host: manjaro Kernel: 5.15.28-1-MANJARO x86_64 bits: 64
    Desktop: Xfce 4.16.0 Distro: Manjaro Linux

The package qt5pas was updated 14,03,2022 the packager tells as source:

https://gitlab.com/freepascal.org/lazarus/lazarus/-/tree/main/lcl/interfaces/qt5/cbindings

Because i think freepascal changed something i post this here.

Manjaro tells me to the last update:

Qt5 got an official update after one year and is now at 5.15.3 6
including the regular KDE patch-sets. Be sure you rebuild any AUR Qt
package against this one.

What to do?




--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Trayicon popup menu no longer showing images

2022-02-16 Thread John Landmesser via lazarus

Am 16.02.22 um 15:33 schrieb Michael Van Canneyt via lazarus:



On Wed, 16 Feb 2022, John Landmesser via lazarus wrote:


Am 16.02.22 um 14:22 schrieb Michael Van Canneyt via lazarus:


Hello,

I recompiled an older tray application. It used to show images in the
tray
icon popup menu, but after compilation, the tray popup menu no longer
shows the
images; just a small rounded square where an image should appear.

Linux mint, today's lazarus, GTK2 widgetset.

Is this a known issue ?

Michael.



... perhaps the same issue as : tray icon does not show Hint-window any
more.

That was working for ages with gtk2 but somehow stopped working.

Juha told me to use qt5 in Project options and the issue was gone.


That's not an acceptable solution.

The gtk2 widgetset should be fixed, this is clearly a regression.

Michael.




perhaps reopen this one?

https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39194

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Trayicon popup menu no longer showing images

2022-02-16 Thread John Landmesser via lazarus

Am 16.02.22 um 14:22 schrieb Michael Van Canneyt via lazarus:


Hello,

I recompiled an older tray application. It used to show images in the
tray
icon popup menu, but after compilation, the tray popup menu no longer
shows the
images; just a small rounded square where an image should appear.

Linux mint, today's lazarus, GTK2 widgetset.

Is this a known issue ?

Michael.



... perhaps the same issue as : tray icon does not show Hint-window any
more.

That was working for ages with gtk2 but somehow stopped working.

Juha told me to use qt5 in Project options and the issue was gone.

Disadvantage: libqt5pas has to be installed. Don't know how this is
called on Mint.

John


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] compile error for LazDebuggerGdbmi 0.1

2022-02-01 Thread John Landmesser via lazarus

Am 01.02.22 um 20:36 schrieb Martin Frb via lazarus:

On 01/02/2022 19:27, John Landmesser via lazarus wrote:

details:


Kompiliere Package LazDebuggerGdbmi 0.1: Exit code 1, Fehler: 1
gdbmidebugger.pp(14625,3) Error: Control flow statements are not
allowed in a finally block




Oh, well. The things FPC only supports on selected targets...

Please upgrade and try again.



Yes, now it compiles without errors

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] compile error for LazDebuggerGdbmi 0.1

2022-02-01 Thread John Landmesser via lazarus

details:


Kompiliere Package LazDebuggerGdbmi 0.1: Exit code 1, Fehler: 1
gdbmidebugger.pp(14625,3) Error: Control flow statements are not
allowed in a finally block




Am 01.02.22 um 19:22 schrieb John Landmesser via lazarus:


lazarus trunc cannot be compiled

info:

Lazarus 2.3.0 (rev main-2_3-742-g14bbe91f1e) FPC 3.2.2 x86_64-linux-gtk2



--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] compile error for LazDebuggerGdbmi 0.1

2022-02-01 Thread John Landmesser via lazarus

lazarus trunc cannot be compiled

info:

Lazarus 2.3.0 (rev main-2_3-742-g14bbe91f1e) FPC 3.2.2 x86_64-linux-gtk2


compile messages:


Lazarus-Quelltext aufräumen: Erfolg
Kompiliere Package FCL 1.0.1: Erfolg
Kompiliere Package LazUtils 1.0: Erfolg
Kompiliere Package zcore 7.2.6: Erfolg
Kompiliere Package rxtools 0.4.0.6: Erfolg
Kompiliere Package LazDebuggerIntf 0.0.1: Erfolg
Kompiliere Package zplain 7.2.6: Erfolg
Kompiliere Package zparsesql 7.2.6: Erfolg
Kompiliere Package zdbc 7.2.6: Erfolg
Kompiliere Package freetypelaz 1.0: Erfolg
Kompiliere Package CodeTools 1.0.1: Erfolg
Kompiliere Package BuildIntf 1.0: Erfolg
Kompiliere Package laz_fpspreadsheet 1.12: Erfolg
Kompiliere Package LCLBase 2.3: Erfolg
Kompiliere Package LCL 2.3: Erfolg
Kompiliere Package DebuggerIntf 0.1: Erfolg
Kompiliere Package SDFLaz 0.1.1: Erfolg
Kompiliere Package SynEdit 1.0: Abgebrochen
Kompiliere Package LazControls 1.0.1: Erfolg
Kompiliere Package cairocanvas_pkg 0.0: Erfolg
Kompiliere Package lclextensions_package 0.6.1: Erfolg
Kompiliere Package JvCoreLazR 1.0.6: Erfolg
Kompiliere Package AnchorDocking 1.0: Erfolg
Kompiliere Package NiceGridD7 0.0: Erfolg
Kompiliere Package cmdbox 0.0: Erfolg
Kompiliere Package Printer4Lazarus 0.5: Erfolg
Kompiliere Package rx 1.0: Erfolg
Kompiliere Package lhelpcontrolpkg 0.2: Erfolg
Kompiliere Package LazColorPalette 0.2.2: Erfolg
Kompiliere Package JvTimeFrameworkLazR 1.0.6: Erfolg
Kompiliere Package IDEIntf 1.0: Erfolg
Kompiliere Package JvMMLazR 1.0.6: Erfolg
Kompiliere Package JvStdCtrlsLazR 1.0.6: Erfolg
Kompiliere Package JvJansLazR 1.0.6: Erfolg
Kompiliere Package JvWizardLazR 1.0.6: Erfolg
Kompiliere Package TurboPowerIPro 1.0: Erfolg
Kompiliere Package JvCtrlsLazR 1.0.6: Erfolg
Kompiliere Package JvXPCtrlsLazR 1.0.6: Erfolg
Kompiliere Package JvRuntimeDesignLazR 1.0.6: Erfolg
Kompiliere Package JvValidatorsLazR 1.0.6: Erfolg
Kompiliere Package JvCmpR 1.0.6: Erfolg
Kompiliere Package JvHMILazR 1.0.6: Erfolg
Kompiliere Package JvNetLazR 1.0.6: Erfolg
Kompiliere Package JvDBLazR 1.0.6: Erfolg
Kompiliere Package jvappfrmlazr 1.0.6: Erfolg
Kompiliere Package mycomps 0.0.0.1: Erfolg
Kompiliere Package uniqueinstance_package 1.1: Erfolg
Kompiliere Package laz_sortgrid 0.0.0.1: Erfolg
Kompiliere Package laz.virtualtreeview_package 5.5.3.1: Erfolg
Kompiliere Package TAChartLazarusPkg 1.0: Abgebrochen
Kompiliere Package rxnew 3.2.1.210: Abgebrochen
Kompiliere Package CmdLineDebuggerBase 0.0: Erfolg
Kompiliere Package RunTimeTypeInfoControls 0.1: Erfolg
Kompiliere Package zcomponent 7.2.6: Erfolg
Kompiliere Package LazProjectGroups 0.7: Erfolg
*Kompiliere Package LazDebuggerGdbmi 0.1: Exit code 1, Fehler: 1*
gdbmidebugger.pp(14625,3) Error: Control flow statements are not
allowed in a finally block
Kompiliere Package JvCoreLazD 1.0.6: Erfolg
Kompiliere Package lazdbexport 1.0: Erfolg
Kompiliere Package FitGrids 1.0: Abgebrochen
Kompiliere Package OnlinePackageManager 1.0.1.2: Abgebrochen
Kompiliere Package IdeDebugger 0.0.1: Abgebrochen
Kompiliere Package JvMMLazD 1.0.6: Abgebrochen


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Faster than popcnt [[Re: UTF8LengthFast returning incorrect results on AARCH64 (MacOS)]]

2021-12-30 Thread John Landmesser via lazarus

Perhaps usefui test information from my PC:

**
[john1@manjaro sdb2]$ ./utf8lentest
234526968
fst:128406168
pop:128406168
add:128406168
asm:128406168

29315871

fst 1365
fst 1367
fst 1366
fst 1366
pop 9990
pop 9990


pop 9997
pop 9981
add 1386
add 1382
add 1386
add 1390
asm 346
asm 346
asm 346
asm 349
fst 1357
fst 1368
fst 1372
fst 1371
pop 10681
pop 6886
pop 6895
pop 6916
add 1247
add 1248
add 1250
add 1248
asm 295
asm 291
asm 291
asm 293
[john1@manjaro sdb2]$
[john1@manjaro sdb2]$ inxi -F
System:
  Host: manjaro Kernel: 5.10.84-1-MANJARO x86_64 bits: 64
    Desktop: Xfce 4.16.0 Distro: Manjaro Linux
Machine:
  Type: Laptop System: LENOVO product: 81RS v: Lenovo Yoga S740-14IIL
    serial: 
  Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN
    serial:  UEFI: LENOVO v: BYCN39WW date: 05/28/2021
Battery:
  ID-1: BAT0 charge: 62.4 Wh (95.6%) condition: 65.3/62.0 Wh (105.3%)
CPU:
  Info: quad core model: Intel Core i7-1065G7 bits: 64 type: MT MCP cache:
    L2: 2 MiB
  Speed (MHz): avg: 3520 min/max: 400/3900 cores: 1: 3543 2: 3890 3: 2319
    4: 3513 5: 3709 6: 3650 7: 3792 8: 3749
Graphics:
  Device-1: Intel Iris Plus Graphics G7 driver: i915 v: kernel
  Device-2: NVIDIA GP108M [GeForce MX250] driver: nvidia v: 495.44
  Device-3: Chicony Integrated Camera type: USB driver: uvcvideo
  Display: x11 server: X.Org 1.21.1.2 driver: loaded: modesetting,nvidia
    unloaded: nouveau resolution: 1: 1920x1080~60Hz 2: 1920x1080~60Hz
  Message: Unable to show advanced data. Required tool glxinfo missing.
Audio:
  Device-1: Intel Ice Lake-LP Smart Sound Audio driver: sof-audio-pci
  Sound Server-1: ALSA v: k5.10.84-1-MANJARO running: yes
  Sound Server-2: PipeWire v: 0.3.40 running: yes
Network:
  Device-1: Intel Ice Lake-LP PCH CNVi WiFi driver: iwlwifi
  IF: wlp0s20f3 state: up mac: 04:33:c2:02:de:51
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB
    driver: r8152
  IF: enp0s13f0u1u4 state: up speed: 1000 Mbps duplex: full
    mac: 4c:e1:73:42:1f:6b
  IF-ID-1: pan1 state: down mac: 7a:5c:6a:f4:06:56
Bluetooth:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb
  Report: rfkill ID: hci0 state: up address: see --recommends
Drives:
  Local Storage: total: 1.86 TiB used: 317.16 GiB (16.7%)
  ID-1: /dev/nvme0n1 vendor: Micron model: MTFDHBA1T0TCK size: 953.87 GiB
  ID-2: /dev/sda type: USB vendor: Western Digital model: WD10EARX-00N0YB0
    size: 931.51 GiB
  ID-3: /dev/sdb type: USB vendor: Kingston model: DataTraveler 2.0
    size: 14.54 GiB
Partition:
  ID-1: / size: 57.9 GiB used: 35.88 GiB (62.0%) fs: ext4 dev:
/dev/nvme0n1p8
  ID-2: /boot/efi size: 259.5 MiB used: 114.1 MiB (44.0%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: partition size: 16.67 GiB used: 0 KiB (0.0%)
    dev: /dev/nvme0n1p9
Sensors:
  System Temperatures: cpu: 58.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 289 Uptime: 9m Memory: 15.2 GiB used: 2.19 GiB (14.4%)
  Shell: Bash inxi: 3.3.11



*






Am 30.12.21 um 13:58 schrieb Marco van de Voort via lazarus:


On 30-12-2021 10:15, Florian Klämpfl via lazarus wrote:


Linux uses different calling conventions, please check with the patch
below.


Linux is quite generous with the volatile registers, so luckily it
matches quite closely.

I first tried the approach of your patch, but [s] has problems on
windows, so would require ifdef on every "s"use, so I simply move [s]
to rcx

  {$ifndef Windows}
  // we can't use [s] as an alias for the pointer parameter, because
the non assembler procedure on Windows
 // changes that into a stack reference. FPC doesn't support non
volatile frame management for assembler procs like Delphi does.
  mov rcx,s // rdi
  mov edx,len   // rsi
  {$endif}

and the ifdeffing of the assembler procedure on linux vs inline asm
block on Windows. Then it works on Linux x86_64.

Funnily, our server AMD Athlon 200GE (Zen1, 3.2GHz?) nearly the exact
same timings as my i7-3770 3.4GHz

I did some other minor work after last post, so here is now the entire
program:



--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Question

2021-12-21 Thread John Landmesser via lazarus

You find old versions here:

https://sourceforge.net/projects/lazarus/files/

Am 21.12.21 um 09:15 schrieb Евгений Кадисов via lazarus:

Thank you once more. It turned out that the problem was not solved.
When I have installed new version of Lazarus (2.0.12 instead of
2.0.10), my program failed to work. I want to return old version of
Lazrus but I do not know how to do it.

пн, 20 дек. 2021 г. в 18:21, wkitty42--- via lazarus
:

On 12/20/21 6:35 AM, Евгений Кадисов via lazarus wrote:
> Thank you. It seems I have found the reason.

ok... and the reason/solution is/was? i ask so that others might
find it if they
have similar problems...

> пн, 20 дек. 2021 г. в 13:58, wkitty42--- via lazarus
> mailto:lazarus@lists.lazarus-ide.org>>:
>
>     On 12/20/21 2:46 AM, Евгений Кадисов via lazarus wrote:
>      > Dear lazarus programmers. After the change of the Lazarus
version a command
>      > "find" fails when it must find a word written with
russian letters. What
>     must I do?
>
>
>     what must you do? maybe provide a little more information?
> работа со строками lazarus
>     what version of laz were you using?
>     are you using UTF-8 or something else?
>     what format are the russian glyphs written in?


--
  NOTE: No off-list assistance is given without prior approval.
        *Please keep mailing list traffic on the list where it
belongs!*
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] How to convert Delphi program with TRichEdit?

2021-12-09 Thread John Landmesser via lazarus

Am 08.12.21 um 22:39 schrieb Dmitry Boyarintsev via lazarus:

On Wednesday, December 8, 2021, Bo Berglund via lazarus
 wrote:

Is there some non-standard package I could install (from  OLPM or
similar) in
order to get it working again?

 you might want to try TRichMemo

it provides some sort of compatibility with TRichEdit
https://wiki.freepascal.org/RichMemo#TRichEditForMemo

thanks,
Dmitry




If i remember correct  TRichMemo won't be usable on Linux.
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Unable to show method

2021-09-14 Thread John Landmesser via lazarus

Am 14.09.21 um 12:56 schrieb Marcos Douglas B. Santos via lazarus:

Hello,

I have an issue creating a new component, but it can be reproduce
easily using a default component:
- drop a TPopupMenu
- on Object Inspector, go to Events tab
- double-click in `Items.OnClick` to implement
- you will get the message: "Unable to show method. Please fix the
error shown in the message window which is normally below the source
editor."

There is no message in Message Windows.

Lazarus 2.0.12 r64642 FPC 3.2.0 i386-win32-win32/win64
Lazarus 2.0.13 r64940M FPC 3.2.0 i386-win32-win32/win64

Should I open a ticket?

best regards,
Marcos Douglas



Tested on Lazarus 2.3.0 rmain-2_3-337-gfc99cfa6ee FPC 3.2.2
x86_64-linux-gtk2

You need to have at least one item WITH(!) a name.

Without an item with name i get your error.

John


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Unable to show method

2021-09-14 Thread John Landmesser via lazarus

Am 14.09.21 um 12:56 schrieb Marcos Douglas B. Santos via lazarus:

Hello,

I have an issue creating a new component, but it can be reproduce
easily using a default component:
- drop a TPopupMenu
- on Object Inspector, go to Events tab
- double-click in `Items.OnClick` to implement
- you will get the message: "Unable to show method. Please fix the
error shown in the message window which is normally below the source
editor."

There is no message in Message Windows.

Lazarus 2.0.12 r64642 FPC 3.2.0 i386-win32-win32/win64
Lazarus 2.0.13 r64940M FPC 3.2.0 i386-win32-win32/win64

Should I open a ticket?

best regards,
Marcos Douglas



Tested on Lazarus 2.3.0 rmain-2_3-337-gfc99cfa6ee FPC 3.2.2
x86_64-linux-gtk2

You need to have at least one item WITH(!) a name.

Without an item with name i get your error.

John

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Start application maximized with a shortcut

2021-09-07 Thread John Landmesser via lazarus

Am 06.09.21 um 22:25 schrieb Bart via lazarus:

On Sun, Sep 5, 2021 at 10:42 AM Gabor Boros via lazarus
 wrote:


Create a new "Application", compile it. Send a shortcut from
project1.exe to the desktop. At shortcut's properties change "Run" to
"Maximized". Start the application with the shortcut, its not maximized.

I can confirm that.


Is it a bug?

Apparently.
You could file a bugreport.


Interesting:

fp-ide works as aspected on Win 10 Home :-)

Ok its a terminal application ?!

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] cannot compile git trunk from today

2021-08-01 Thread John Landmesser via lazarus

Am 31.07.21 um 23:20 schrieb Juha Manninen via lazarus:

On Sat, Jul 31, 2021 at 11:09 PM John Landmesser via lazarus
mailto:lazarus@lists.lazarus-ide.org>>
wrote:


gtk2trayicon.inc(387,5) Error: Identifier not found
"gtk_status_icon_set_tooltip_text"


What should i do?

Use the released FPC 3.2.2 or get the latest FPC trunk. Now you have
an old trunk.

Juha



 Thanks, Juha ... no more probs :-)

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] cannot compile git trunk from today

2021-07-31 Thread John Landmesser via lazarus

On Manjaro XFCE Linux there where issues compiling  new pulled lazarus
source

Working lazarus was:


Lazarus 2.1.0 r63838M FPC 3.3.1 x86_64-linux-gtk2



got the source with


git clone https://gitlab.com/freepascal.org/lazarus/lazarus.git lazarus


cd ~/lazarus

make all clean useride


compiling stopped with errors:


Compiling gtk2wsdialogs.pp
Compiling gtk2wsextctrls.pp
gtk2trayicon.inc(387,5) Error: Identifier not found
"gtk_status_icon_set_tooltip_text"
gtk2trayicon.inc(493,5) Error: Identifier not found
"gtk_status_icon_set_tooltip_text"
gtk2wsextctrls.pp(289) Fatal: There were 2 errors compiling module,
stopping
Fatal: Compilation aborted
make[3]: *** [Makefile:3192: ../lcl.ppu] Fehler 1
make[3]: Verzeichnis „/home/john1/lazarus/lcl/interfaces/gtk2“ wird
verlassen
make[2]: *** [Makefile:3381: gtk2_all] Fehler 2
make[2]: Verzeichnis „/home/john1/lazarus/lcl/interfaces“ wird verlassen
make[1]: *** [Makefile:5114: interfaces] Fehler 2
make[1]: Verzeichnis „/home/john1/lazarus/lcl“ wird verlassen
make: *** [Makefile:3716: lcl] Fehler 2


What should i do?

John



-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] How to restore anchor docking manager in the IDE?

2021-07-13 Thread John Landmesser via lazarus

Am 13.07.21 um 19:55 schrieb Michael W. Vogel via lazarus:

Am 13.07.2021 um 14:07 schrieb John Landmesser via lazarus:

Hi,

i just "ruined" layout of the anchor docking manager in the IDE.


Can you explain, what you have done? I can only fix/work on things, I'm
aware about.


I don't remember exactly what i've done in the past.

I  used anchordockingdsgn package for a long time and today i thought:
what happens if i drag "project inspector" for example to another
position ... bad idea(!!)

Things got worse as i tried to restore the initial settings of this
package.

Reinstalled the package, read the wiki ... no success,  but then with
google i found the  mentioned Lazarus forum thread: close all windows
except source editor and then  rearrange all windows.

Would be usefull if there was something like restore default settings?!


John


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] How to restore anchor docking manager in the IDE?

2021-07-13 Thread John Landmesser via lazarus

Am 13.07.21 um 14:07 schrieb John Landmesser via lazarus:

Hi,

i just "ruined" layout of the anchor docking manager in the IDE.

Reinstall the package does not restore the default layout and pulling
for example object inspector does not help.

I would expect the IDE would show where to place the object inspector by
painting a frame where it would sit if i stop dragging?!

Tipps are welcome ...

John Landmesser



Heavy fiddling ...

But this tipps worked:

See
https://forum.lazarus.freepascal.org/index.php/topic,51935.msg382004.html#msg382004

Tipp: Don't mess around with layout of anchordockingsgn package!

We'll see if i remember that next year :-)

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] How to restore anchor docking manager in the IDE?

2021-07-13 Thread John Landmesser via lazarus

Hi,

i just "ruined" layout of the anchor docking manager in the IDE.

Reinstall the package does not restore the default layout and pulling
for example object inspector does not help.

I would expect the IDE would show where to place the object inspector by
painting a frame where it would sit if i stop dragging?!

Tipps are welcome ...

John Landmesser

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus list down?

2021-07-12 Thread John Landmesser via lazarus

Thanks!

Yes no it works again!

Am 12.07.21 um 13:41 schrieb Marc Weustink via lazarus:

I guess it was, I restarted it this morning since it was a bit quiet
in here.

Marc


On 9-7-2021 16:48, John Landmesser via lazarus wrote:

Test



--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] No TrayIcon.Hint on Linux KDE?

2021-07-12 Thread John Landmesser via lazarus

Am 09.07.21 um 16:06 schrieb John Landmesser via lazarus:

Hi,

See example project

C:\lazarus\examples\trayicon\wndtray.lpi

The Trayicon.hint works on XFCE and Windows, but it will not be visible
on KDE?!!


FormCreate;

  SystrayIcon.Hint := 'my tool tip';



Any workaround ?

Thanks

John


See bugreport:

https://bugs.freepascal.org/view.php?id=39194

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Lazarus list down?

2021-07-12 Thread John Landmesser via lazarus

Test

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] No TrayIcon.Hint on Linux KDE?

2021-07-12 Thread John Landmesser via lazarus

Hi,

See example project

C:\lazarus\examples\trayicon\wndtray.lpi

The Trayicon.hint works on XFCE and Windows, but it will not be visible
on KDE?!!


FormCreate;

  SystrayIcon.Hint := 'my tool tip';



Any workaround ?

Thanks

John

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] lazarus Digest, Vol 159, Issue 8

2021-04-20 Thread John Landmesser via lazarus

Am 20.04.21 um 09:51 schrieb Detlef Overbeek via lazarus:

Thank you for your answer:
however I forgot to tell you that I did change that to every few minutes and 
even this morning it still does not work.


I could compile and install this  package on Manjaro Linux:

Lazarus 2.1.0 r63838M FPC 3.3.1 x86_64-linux-gtk2

Perhaps try a new ~/.lazarus profile?

John

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Some IDE/LHelp issues

2021-02-02 Thread John Landmesser via lazarus

Am 02.02.21 um 12:49 schrieb John Landmesser via lazarus:

Am 02.02.21 um 11:22 schrieb Rolf Wetjen via lazarus:

Maybe someone can help with a few issues around LHelp in the IDE:

1) When LHelp opens (regardless if opens with Tools->CHM-Help or F1
context help) it opens with 11 tabs.
Some of them have a caption, some of them are [unknown]. The [unknown]
ones come up with an error message "ms-its:xyz.chm::/index.html not
found!"

2) One of [unknown] tabs is completely empty:
"ms-its:toc.chm::/index.html not found!"

3) There are two lcl tabs. One show a message "Loaded:
ms-its:lcl.chm::/index.html in ... ms", the other one doesn't show a
load message.

3) There's no possibility to search in all files simultanously. May be
this is the missing toc.chm::/index.html?

4) The first context search is a racing car. All following context
searches are a bicycle. Time for a coffee.

I'd like to check for this.

Is there any documentation about the structure of the chm files
reagarding the missing index.html?
What's the meaning of the database definition fields in
Tools-Settins-Help? There are entries for 8 databases. What about the
missing ones.
How does the IDE calls LHelp?

Any ideas?

Rolf


General Info at:

https://wiki.lazarus.freepascal.org/IDE_Window:_Help_Options

plus:

https://wiki.lazarus.freepascal.org/Installing_Help_in_the_IDE#Installing_CHM_help_.28Lazarus_1.0_and_later.29


see here chapter:

fpdoc entries of RTL and FCL

to svn checkout all chm-help-files


I have your questions too for a long time but i'm just a hobbyist so i
can live these lack of knowledge.

Regards

John Landmesser




Have a look at this:

[john1@manjaro fpcdocs]$ svn info
Pfad: .
Wurzelpfad der Arbeitskopie: /home/john1/lazarus/docs/chm/fpcdocs
URL: https://svn.freepascal.org/svn/fpcdocs/trunk
Relative URL: ^/trunk
Basis des Projektarchivs: https://svn.freepascal.org/svn/fpcdocs
UUID des Projektarchivs: 583a4693-3df7-0310-a210-d425ad3023e7
Revision: 1800
Knotentyp: Verzeichnis
Plan: normal
Letzter Autor: michael
Letzte geänderte Rev: 1800
Letztes Änderungsdatum: 2021-01-31 18:15:57 +0100 (So, 31. Jan 2021)

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Some IDE/LHelp issues

2021-02-02 Thread John Landmesser via lazarus

Am 02.02.21 um 11:22 schrieb Rolf Wetjen via lazarus:

Maybe someone can help with a few issues around LHelp in the IDE:

1) When LHelp opens (regardless if opens with Tools->CHM-Help or F1
context help) it opens with 11 tabs.
Some of them have a caption, some of them are [unknown]. The [unknown]
ones come up with an error message "ms-its:xyz.chm::/index.html not
found!"

2) One of [unknown] tabs is completely empty:
"ms-its:toc.chm::/index.html not found!"

3) There are two lcl tabs. One show a message "Loaded:
ms-its:lcl.chm::/index.html in ... ms", the other one doesn't show a
load message.

3) There's no possibility to search in all files simultanously. May be
this is the missing toc.chm::/index.html?

4) The first context search is a racing car. All following context
searches are a bicycle. Time for a coffee.

I'd like to check for this.

Is there any documentation about the structure of the chm files
reagarding the missing index.html?
What's the meaning of the database definition fields in
Tools-Settins-Help? There are entries for 8 databases. What about the
missing ones.
How does the IDE calls LHelp?

Any ideas?

Rolf


General Info at:

https://wiki.lazarus.freepascal.org/IDE_Window:_Help_Options

plus:

https://wiki.lazarus.freepascal.org/Installing_Help_in_the_IDE#Installing_CHM_help_.28Lazarus_1.0_and_later.29

see here chapter:

fpdoc entries of RTL and FCL

to svn checkout all chm-help-files


I have your questions too for a long time but i'm just a hobbyist so i
can live these lack of knowledge.

Regards

John Landmesser


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] lazarus trunc IDE compile error

2021-01-04 Thread John Landmesser via lazarus

Thanks. It compiles now!



Am 04.01.21 um 20:00 schrieb Werner Pamler via lazarus:

Am 04.01.2021 um 19:32 schrieb Martin Frb via lazarus:

On 04/01/2021 19:05, John Landmesser via lazarus wrote:


Something went wrong?

last running trunc version:   Lazarus 2.1.0 r64270 FPC 3.2.0
x86_64-linux-gtk2



Same with FPC 3.0.4 / 64bit / windows


Sorry, the initial fix for FPC-trunk introduced another issue with FPC
3.2. Should work now.

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] lazarus trunc IDE compile error

2021-01-04 Thread John Landmesser via lazarus

mpf ... this error occurs only on newest Deepin 20.1 (based on Debian 10??)

No probs on Manjaro XFCE!


Am 04.01.21 um 19:05 schrieb John Landmesser via lazarus:


Something went wrong?

last running trunc version:   Lazarus 2.1.0 r64270 FPC 3.2.0
x86_64-linux-gtk2


/home/john1/lazarus/components/lazcontrols/spinex.inc(255,13)*Error:
(4057) Can't determine which overloaded function to call*
/usr/lib/fpc/3.2.0/units/x86_64-linux/rtl/math.ppu:math.pp(2580,10)
Hint: (5039) Found declaration: CompareValue(const Extended;const
Extended;Extended=` 0.E+`):ShortInt;
/usr/lib/fpc/3.2.0/units/x86_64-linux/rtl/math.ppu:math.pp(2568,10)
Hint: (5039) Found declaration: CompareValue(const Double;const
Double;Double=` 0.E+`):ShortInt;
/usr/lib/fpc/3.2.0/units/x86_64-linux/rtl/math.ppu:math.pp(2556,10)
Hint: (5039) Found declaration: CompareValue(const Single;const
Single;Single=` 0.E+`):ShortInt;
/usr/lib/fpc/3.2.0/units/x86_64-linux/rtl/math.ppu:math.pp(2544,10)
Hint: (5039) Found declaration: CompareValue(const QWord;const
QWord):ShortInt;
/usr/lib/fpc/3.2.0/units/x86_64-linux/rtl/math.ppu:math.pp(2533,10)
Hint: (5039) Found declaration: CompareValue(const Int64;const
Int64):ShortInt;
/usr/lib/fpc/3.2.0/units/x86_64-linux/rtl/math.ppu:math.pp(2522,10)
Hint: (5039) Found declaration: CompareValue(const LongInt;const
LongInt):ShortInt;
spinex.pp(418) Fatal: (10026) There were 2 errors compiling module,
stopping
Fatal: (1018) Compilation aborted
make[1]: *** [Makefile:3154: lazcontrols.ppu] Fehler 1
make[1]: Verzeichnis „/home/john1/lazarus/components/lazcontrols“
wird verlassen
make: *** [Makefile:3636: lazbuild] Fehler 2






-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] lazarus trunc IDE compile error

2021-01-04 Thread John Landmesser via lazarus

Something went wrong?

last running trunc version:   Lazarus 2.1.0 r64270 FPC 3.2.0
x86_64-linux-gtk2


/home/john1/lazarus/components/lazcontrols/spinex.inc(255,13)*Error:
(4057) Can't determine which overloaded function to call*
/usr/lib/fpc/3.2.0/units/x86_64-linux/rtl/math.ppu:math.pp(2580,10)
Hint: (5039) Found declaration: CompareValue(const Extended;const
Extended;Extended=` 0.E+`):ShortInt;
/usr/lib/fpc/3.2.0/units/x86_64-linux/rtl/math.ppu:math.pp(2568,10)
Hint: (5039) Found declaration: CompareValue(const Double;const
Double;Double=` 0.E+`):ShortInt;
/usr/lib/fpc/3.2.0/units/x86_64-linux/rtl/math.ppu:math.pp(2556,10)
Hint: (5039) Found declaration: CompareValue(const Single;const
Single;Single=` 0.E+`):ShortInt;
/usr/lib/fpc/3.2.0/units/x86_64-linux/rtl/math.ppu:math.pp(2544,10)
Hint: (5039) Found declaration: CompareValue(const QWord;const
QWord):ShortInt;
/usr/lib/fpc/3.2.0/units/x86_64-linux/rtl/math.ppu:math.pp(2533,10)
Hint: (5039) Found declaration: CompareValue(const Int64;const
Int64):ShortInt;
/usr/lib/fpc/3.2.0/units/x86_64-linux/rtl/math.ppu:math.pp(2522,10)
Hint: (5039) Found declaration: CompareValue(const LongInt;const
LongInt):ShortInt;
spinex.pp(418) Fatal: (10026) There were 2 errors compiling module,
stopping
Fatal: (1018) Compilation aborted
make[1]: *** [Makefile:3154: lazcontrols.ppu] Fehler 1
make[1]: Verzeichnis „/home/john1/lazarus/components/lazcontrols“ wird
verlassen
make: *** [Makefile:3636: lazbuild] Fehler 2


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Default project ?

2020-11-18 Thread John Landmesser via lazarus

Am 18.11.20 um 21:31 schrieb Bo Berglund via lazarus:


Especially since Lazarus crashes greatly if there is a problem with
the last project and then it takes a detective to make it return to
usable again since just restarting causes the same crash to occur
again and again.
Happened to me many times.



Use your filemanager to open the last working(!!) *.lpi ... rightclick
... open with ...


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus 2.0.10 corrupted by Win 10 crash, how to repair?

2020-10-29 Thread John Landmesser via lazarus

Am 29.10.20 um 10:51 schrieb Bo Berglund via lazaru

Rant:
-
This thing with Windows crashing never happened in the many years I
used Windows 7, but in Dec 2019 I had to finally move to a new
notebook and of course now Win 7 is no longer available so I have Win
10...

And that has caused all kinds of problems like the crashes I discuss
here but also a self-initiated reboot at irregular times purportedly
in order to "upgrade" the system
And I have found no way to stop it from happening.

Win10 also triggers a start of a system backup at non-scheduled times
for unknown reasons. I have a scedule set for a backup to run on the
night between Friday and Saturday every week, but now it can start any
day at any time
Soo strange.
When writing this I realized that I could of course have used the last
backup to get my original config files back, but I did not think as
far

I wish I could bring back Windows 7

Of course on Linux this is not an issue at all, but if the target
programs are supposed to run on Windows I have no choice here.



 What about Win 7 + Lazarus in a VirtualBox?

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] How to find out why a unit is used in a project?

2020-09-23 Thread John Landmesser via lazarus

Am 23.09.20 um 18:59 schrieb Bo Berglund via lazarus:

I am porting a Delphi application to Linux and as a stop I am first
doing it from Delphi to Lazarus/Fpc on Windows.

Now when I try to compile it throws an error inside a unit I did not
even know it used. And to further complicate the issue I cannot find a
reference to the unit in question when doing a search in the project
dir inside all pas files. This unit is not mentioned anywhere and
still causes a compile error due to a missing reference.

I tried Lazarus Find In Files and set it to search "all files in
project" and also search the project directory, but it comes up
empty-handed...

So now I wonder:
Is there a Lazarus tool to trace why the unit is referenced in the
first place? Is there such things as "chain of uses"?

The application I am porting is a client communications app that talks
to a service over TCP/IP.
That service app uses the unit that pos up as erroneous now, but it
should not be used by the client comm app at all.
So I need to find out why it does.



Perhaps it can be find in Projects properties?

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Something wrong with /components/freetype??

2020-07-14 Thread John Landmesser via lazarus

Info:

Lazarus 2.1.0 r63545 FPC 3.3.1 x86_64-linux-gtk2


compiling trunk i get this error:


make -C components/freetype
make[1]: Verzeichnis „/home/john1/lazarus/components/freetype“ wird
betreten
make[1]: *** Es wurden keine Ziele angegeben und keine
„make“-Steuerdatei gefunden.  Schluss.
make[1]: Verzeichnis „/home/john1/lazarus/components/freetype“ wird
verlassen
make: *** [Makefile:3625: lazbuild] Fehler 2


How to fix that?

Thanks,

John

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] error building IDE

2020-06-28 Thread John Landmesser via lazarus

Am 28.06.20 um 18:38 schrieb Mattias Gaertner via lazarus:




Just learned: In VirtualBox with Manjaro fpc trunk AND 3.0.4
everything is fine ... so no need to search at Lazarus code!

ok

Mattias



Adjusted my command -line ... issue is gone :-)

# OLD:  make clean lazbuild useride starter
# NEW: make all clean  useride

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] error building IDE

2020-06-28 Thread John Landmesser via lazarus

Am 28.06.20 um 17:08 schrieb Mattias Gaertner via lazarus:

On Sun, 28 Jun 2020 16:59:42 +0200
John Landmesser via lazarus  wrote:


Hi,

I have several different  Linux+Lazarus on my HD and i'm wondering
about:

Info Manjaro XFCE Linux 64bit, fpc trunk:

Lazarus 2.1.0 r63454 FPC 3.3.1 x86_64-linux-gtk2

what about this:

compiling svn lazarus from within the IDE with success  i see this
message:


Lazarus-Quelltext aufräumen: Erfolg
...
IDE erstellen: Erfolg, *Fehler: 2*
Error: Makefile:2956: warning: overriding recipe for target '.'
Error: Makefile:2954: warning: ignoring old recipe for target '.'

Any idea which Makefile this is coming from?

Mattias


There is a lazarus/ide/Makefile?!!

Just learned: In VirtualBox with Manjaro fpc trunk AND 3.0.4 everything
is fine ... so no need to search at Lazarus code!

Must be a peronal issue here!

Thanks for your answer!

John

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] error building IDE

2020-06-28 Thread John Landmesser via lazarus

Hi,

I have several different  Linux+Lazarus on my HD and i'm wondering about:

Info Manjaro XFCE Linux 64bit, fpc trunk:

Lazarus 2.1.0 r63454 FPC 3.3.1 x86_64-linux-gtk2

what about this:

compiling svn lazarus from within the IDE with success  i see this message:


Lazarus-Quelltext aufräumen: Erfolg
...
IDE erstellen: Erfolg, *Fehler: 2*
Error: Makefile:2956: warning: overriding recipe for target '.'
Error: Makefile:2954: warning: ignoring old recipe for target '.'


Compiling from Terminal with:


make clean lazbuild useride starter


compiling stops with error:


Error: (lazarus) IDE erstellen: stopped with exit code 2
Error: (lazarus) Building IDE: Building IDE failed.
make: *** [Makefile:3618: useride] Fehler 2


My PC is Manjaro Linux XFCE 64bit


System:    Host: manjaro Kernel: 5.7.0-3-MANJARO x86_64 bits: 64
Desktop: Xfce 4.14.2 Distro: Manjaro Linux
Machine:   Type: Desktop System: LENOVO product: 90FB006AGE v:
ideacentre 710-25ISH serial: 
   Mobo: LENOVO model: 3642 v: SDK0J40700 WIN 3258069255609
serial:  UEFI: LENOVO v: FWKT95A
   date: 09/04/2018
CPU:   Topology: Quad Core model: Intel Core i5-6400 bits: 64
type: MCP L2 cache: 6144 KiB
   Speed: 3301 MHz min/max: 800/3300 MHz Core speeds (MHz): 1:
3267 2: 3201 3: 3261 4: 3299
Graphics:  Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] driver: nvidia
v: 440.82
   Display: x11 server: X.Org 1.20.8 driver: nvidia
resolution: 1920x1080~60Hz
   OpenGL: renderer: GeForce GTX 1050 Ti/PCIe/SSE2 v: 4.6.0
NVIDIA 440.82
Audio: Device-1: Intel 100 Series/C230 Series Family HD Audio
driver: snd_hda_intel
   Device-2: NVIDIA GP107GL High Definition Audio driver:
snd_hda_intel
   Sound Server: ALSA v: k5.7.0-3-MANJARO
Network:   Device-1: Intel Ethernet I219-LM driver: e1000e
   IF: eno1 state: up speed: 1000 Mbps duplex: full mac:
4c:cc:6a:a3:3b:dd
   Device-2: Intel Wireless 8260 driver: iwlwifi
   IF: wlp2s0 state: down mac: b2:78:1f:e2:91:8f
   IF-ID-1: pan1 state: down mac: d2:55:35:67:d5:f0
Drives:    Local Storage: total: 3.18 TiB used: 522.28 GiB (16.0%)
   ID-1: /dev/sda vendor: Samsung model: SSD 850 EVO 500GB
size: 465.76 GiB
   ID-2: /dev/sdb vendor: Seagate model: ST2000DM001-1ER164
size: 1.82 TiB
   ID-3: /dev/sdc type: USB vendor: Western Digital model:
WD10EARX-00N0YB0 size: 931.51 GiB
Partition: ID-1: / size: 57.90 GiB used: 37.56 GiB (64.9%) fs: ext4
dev: /dev/sda8
   ID-2: swap-1 size: 16.67 GiB used: 0 KiB (0.0%) fs: swap
dev: /dev/sda9
Sensors:   System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nvidia
temp: 32 C
   Fan Speeds (RPM): N/A gpu: nvidia fan: 29%
Info:  Processes: 224 Uptime: 3h 12m Memory: 15.59 GiB used: 1.31
GiB (8.4%) Shell: bash inxi: 3.0.37



No such issue with Linux Mint Cinnamon 64bit:


Lazarus 2.1.0 r63457 FPC 3.0.4 x86_64-linux-gtk2



But same error for KDE-Neon 64bit:


Lazarus 2.1.0 r63457 FPC 3.0.4 x86_64-linux-gtk2


*So fpc trunk or fpc 3.0.4 can't be the culpit??*


Hints are welcome :-)

John Landmesser


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Cannot find inc file from a registered package...

2020-06-24 Thread John Landmesser via lazarus

Am 24.06.20 um 15:39 schrieb Bo Berglund via lazarus:

On Tue, 23 Jun 2020 22:40:19 +0300, Juha Manninen via lazarus
 wrote:


Is the path containing the include file (Indy10\System or similar) in
Indy package's include search path?
If not then please add it.
Otherwise it sounds like a bug. Unit files are found from required
packages but apparently include files are not. Please report a bug
with steps to reproduce.


To answer your question:

So I re-enabled the include and added a path below packages to it as
follows:

interface
{$I Indy10\System\IdCompilerDefines.inc}
{$I ssremote.inc}


uses


class_SSRemoteServer.pas(84,2) Fatal: Cannot open include file
"Indy10\System\IdCompilerDefines.inc"

Same with \ as with / as delimiter.

Butit worked when I did this, , but triggered other errors from inside
the inc file:

{$I
C:\Programs\Lazarus_2.0.8\config\onlinepackagemanager\packages\Indy10\System\IdCompilerDefines.inc}

Now working but the source file is cluttered with an installation path
that should not be there.

So I then went into project options/compiler options/paths
and I added this to the include path setting:

C:\Programs\Lazarus_2.0.8\config\onlinepackagemanager\packages\

Then I changed the source file include statement to:
{$I Indy10\System\IdCompilerDefines.inc}

This too worked, the file was found and parsed.

So this is the best solution, one has to remember to change it when
the project moves to a different lazarus version or platform.

It would have been good to be able to set something like $PACKAGEDIR
to C:\Programs\Lazarus_2.0.8\config\onlinepackagemanager\packages\ in
a Lazarus global context so all package files could be reached using
the env var. It then has to be set Lazarus globally like is possible
in Delphi.
But I found no such way...

HTH




Hi Bo,

Never used Indy 10 but just installed it with Online Package Manager on

Lazarus 2.1.0 r63354 FPC 3.0.4 x86_64-linux-gtk2


.. no probs with paths!

regards

John



--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Google Calendar API TEvent start or _end (TDatetime) question

2020-06-05 Thread John Landmesser via lazarus

As Example for Germany:

https://wiki.freepascal.org/Daylight_saving_time/de









Am 05.06.20 um 14:00 schrieb Francesco Sammarco via lazarus:

Ok. But not so how to do it. Is there an example?

Il giorno ven 5 giu 2020 alle ore 13:54 wkitty42--- via lazarus
mailto:lazarus@lists.lazarus-ide.org>>
ha scritto:

On 6/5/20 2:04 AM, Francesco Sammarco wrote:
> Of course, it's just not the idea of how to check if the time
falls in daylight
> saving time or not.


why not? that is the problem and apparently the API and/or backend
code at
google don't handle it so the creator of the event/appointment must...


> Il giorno gio 4 giu 2020 alle ore 17:24 wkitty42--- via lazarus
> mailto:lazarus@lists.lazarus-ide.org>
>> ha scritto:
>
>     On 6/4/20 10:37 AM, Francesco Sammarco via lazarus wrote:
>      > If anyone cares I think I have found a working way.
Basically I do the
>     insertion
>      > or updating of the appointment. The API returns the
content of the newly
>     updated
>      > or inserted appointment, I compare the hours contained
with the hours I
>     wanted
>      > to set. I calculate the difference and apply it. I make a
second update
>     with the
>      > correct date / time. I know it's not elegant, but for the
moment it seems
>     the
>      > only working way.
>
>
>     can you not determine if your desired time is in the
daylight saving tim
>     eperiod
>     and adjust it as needed before you do the first posting to
the calendar? i was
>     going to suggest that yesterday when i first read of your
plight but i
>     wanted to
>     wait and see what others might suggest...
>
>     so basically:
>
>     1. you decide your time and date...
>     2. check if it is within the daylight saving time period for
your area...
>     2a. if #2 is yes, adjust the time as needed...
>     2b. if #2 is no, leave the time as originally set...
>     3. publish the appointment/event in the calendar...
>     4. done ;)
>
>
>     --
>        NOTE: No off-list assistance is given without prior approval.
>              *Please keep mailing list traffic on the list where
it belongs!*
>     --
>     ___
>     lazarus mailing list
> lazarus@lists.lazarus-ide.org

>
> https://lists.lazarus-ide.org/listinfo/lazarus
>


--
  NOTE: No off-list assistance is given without prior approval.
        *Please keep mailing list traffic on the list where it
belongs!*
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org 
https://lists.lazarus-ide.org/listinfo/lazarus




-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Keyboard mapping probelm

2020-05-30 Thread John Landmesser via lazarus

Am 30.05.20 um 15:40 schrieb Brian via lazarus:

On 5/29/20 3:32 PM, Juha Manninen via lazarus wrote:

On Fri, May 29, 2020 at 5:40 PM Bart via lazarus
 wrote:

It is a Lazarus/LCL/WS issue though, since other programs don't have that issue.

Yes, let's hope GTK3 bindings will be better. Now it is alpha but
already usable for many applications.
For Brian I recommend using QT5 bindings. It has no problem with keys.

Lazarus trunk from fpcupdeluxe or from SVN directly should behave the
same. I don't know why the build failed.


Unless you have some reason to believe that the QT5 version of
fpcupdeluxe doesn't build lazarus with QT5 bindings, I have already
tried this idea and still seen the same problem.  Yes, I deleted back
EVERYTHING except for the actual fpcupdeluxe executable - all config
files and the entire target directory - from the GTK2 build. Then I
downloaded the QT5 version of the executable and ran that. Once again,
it built, but I still saw the key mapping etc. problem.

Since I've come this far, though, I guess I'm willing to try building
the lazarus code downloaded via subversion with the QT5 bindings. Is
there a web page, or some other documentation, that leads me though
doing that? I've never previously built the QT5 version except the
attempt to build it via fpcupdeluxe.

Brian.



That should be enough?!!

Look at tools/compile IDE, LCL Listbox:

Screenshot:

https://i.imgur.com/f0g14bS.png

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] OT: thunderbird 68 (linux) and column From

2020-05-28 Thread John Landmesser via lazarus

Thats it

Deleted every item in Address-book containing "Lazarus"

Would have taklen me years to realize that!

Thanks again

John



Am 28.05.20 um 14:56 schrieb Martin Frb via lazarus:

On 28/05/2020 12:51, John Landmesser via lazarus wrote:


Strange behaviour of newest thunderbird 68.8.1 on Deepin Linux:

See Column "von" . I'm used to see the sender-Name there

Googled with no succes :-(


Check if you have an "address book entry" for that mail address.
If you do, it will lead to that effect, because it will likely display
the entry name, rather than whats in the actual mail.

Technically all mails come from "lazarus@lists.lazarus-ide.org"
But the do include the difference sender's names alongside the email
address.

Matching the address book, ignores the names, and uses only the email.

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] OT: thunderbird 68 (linux) and column From

2020-05-28 Thread John Landmesser via lazarus

Thats it

Deleted every item in Address-book containing "Lazarus"

Would have taklen me years to realize that!

Thanks again

John



Am 28.05.20 um 14:56 schrieb Martin Frb via lazarus:

On 28/05/2020 12:51, John Landmesser via lazarus wrote:


Strange behaviour of newest thunderbird 68.8.1 on Deepin Linux:

See Column "von" . I'm used to see the sender-Name there

Googled with no succes :-(


Check if you have an "address book entry" for that mail address.
If you do, it will lead to that effect, because it will likely display
the entry name, rather than whats in the actual mail.

Technically all mails come from "lazarus@lists.lazarus-ide.org"
But the do include the difference sender's names alongside the email
address.

Matching the address book, ignores the names, and uses only the email.

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] OT: thunderbird 68 (linux) and column From

2020-05-28 Thread John Landmesser via lazarus

Thanks for your reply but "Correspondants"is just the same!!

Have to think just more about this issue!

John

Am 28.05.20 um 13:52 schrieb R.Smith via lazarus:


Von means "From" - change the column to "Correspondants" (Not sure
what that would be in the Deutsche version... Korrespondenten maybe?)


On 2020/05/28 12:51, John Landmesser via lazarus wrote:


Strange behaviour of newest thunderbird 68.8.1 on Deepin Linux:

See Column "von" . I'm used to see the sender-Name there

Googled with no succes :-(

Anybody else has this issue?

Regards

John





-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] OT: thunderbird 68 (linux) and column From

2020-05-28 Thread John Landmesser via lazarus

Strange behaviour of newest thunderbird 68.8.1 on Deepin Linux:

See Column "von" . I'm used to see the sender-Name there

Googled with no succes :-(

Anybody else has this issue?

Regards

John


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Keyboard mapping probelm

2020-05-28 Thread John Landmesser via lazarus

Am 28.05.20 um 00:53 schrieb Brian via lazarus:

On 5/20/20 8:37 AM, Brian via lazarus wrote:

On 5/20/20 5:50 AM, John Landmesser via lazarus wrote:

Am 20.05.20 um 01:12 schrieb Brian via lazarus:

Regrettably, it appears I spoke too soon. I fired up Lazarus again and
the problem is back. I'm compiling trunk for both fpc and lazarus
using fpcupdeluxe. To recap, this is under Linux Mint 19.3 64-bit
(Ubuntu base). I have absolutely *NOT* done any keyboard remapping nor
defined any macros since everything last worked correctly. The setup I
have in a LMDE (Linux Mint Debian) virtual machine still works
correctly.

I will update both setups, so that I know I am (should be!) running
exactly the same versions of trunk, and report back in due course.

Brian.



Perhaps try another version of fpcupdeluxe?

https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases


I downloaded the latest as then was for linux on x86_64. I see there
has been another release since I wrote my post. I'll give it a try. I
guess I could also try the qt5 version.


OK, my last word on this subject. I can only conclude that there is
some kind of goofy multi-way interaction going on between Lazarus and
other programs. I have tried multiple versions of Lazarus, using both
the gtk2 and qt5 versions of fpcupdeluxe. In all cases, I saw the i ->
tab & i and m -> newline. I do NOT see this on the Debian-based
version of Mint running in a virtual machine, and I also set up
another VM with the same Ubuntu-based version of Mint (19.3 64-bit) as
I have on the host. Neither VM showed the problem with Lazarus!

The final straw is that I just set up a new PC for my wife, again
Ubuntu Mint 19.3, and out of curiosity, I installed Lazarus. The keys
worked fine.

I have no idea what is going on. I reiterate that I have removed all
config files, using the combination of wkitty42's commandline magic
*and* my kfinds, and that I have done absolutely no key remapping nor
macro defining. Twice, and ONLY twice, I have had the problem go away
after a rebuild of FPC and Lazarus, but rebooting the PC brought the
problem back again.

I've given up. I have wasted enough time on trying to sort this
problem. At least as long as it all works, I will just use Lazarus in
a VM, and transfer the completed source files to my host machine for a
final compilation.


Brian.




You allways used fpcupdeluxe??

Perhaps these originals are better?

https://www.lazarus-ide.org/index.php?page=downloads

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Fwd: Consulta sobre Lazarus Ide

2020-05-22 Thread John Landmesser via lazarus

Am 21.05.20 um 19:12 schrieb Alexander Nava via lazarus:

Good afternoon  I am developing an application with lazarus ide and
freepascal on a workstation that works with gnu linux debian 10 32
bits, we need to port the application to windows 32 and 64 bits for
the company I am working with. I have some questions: 1- As it is done
for said application it can be ported to windows, since I have
followed the tutorials of the official page of lazarus and freepascal,
and nothing that allows us to port the application. 2.- In the same
way, you could develop any application to other operating systems such
as unix and mac using the same code 3.- Lazarus ide and freepascal can
port an application to mobile phones, that is, for android and mac
operating systems. Thanks for your help. Alexander Nava





Perhaps have a look at:

https://wiki.freepascal.org/fpcupdeluxe

or download directly:

https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/tag/1.6.8u


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus crashes when opening project under conversion, how to fix?

2020-05-22 Thread John Landmesser via lazarus

Am 21.05.20 um 23:39 schrieb Bo Berglund via lazarus:

I am using Lazarus 2.0.8 32bit in Win 10 x64 with FPC 3.0.4

I am trying to convert a project created in Delphi7 and maintained in
D7 and Delphi 2007 so it can be worked on in Lazarus/FPC.

It is a service application so it uses TService, which does not exist
in FPC. The closest candidate is TDaemon, so on advice here or in the
forum I have tried adding a "rename":

type
   {$IFDEF FPC}
 TService = class(TDaemon)
 private
 public
 end;
   {$ENDIF}

When I did that Lazarus showed a lot of errors when trying to do a
test compile (as expected). I did not have time to fix it though at
the time so I closed Lazarus.

Now I have a problem to even start Lazarus, it immediately shows crash
dialogs saying:
An error occurred at last startup while loading
D:\Engineering\Projects\Sobversio...\RemoteServer.lpi

It is not very useful to see a path that is cut in the middle so I
cannot find where it is at...

How can I find *which* of the projects it is actually trying to load?
I have several test projects created during various attempts at
conversion...

Or can I please open Lazarus *without a project* so I can decide
myself which project to load?

It was half a week ago when I was last using Lazarus as described
above and I cannot remember exactly which version of the converted
code I was dealing with.

So now I am back again and I cannot even start Lazarus because it just
errors out on the old project while giving me no chance to get to the
editor to fix the problem.

It looks by the few dialogs I see before it crashes that the code
contains objects with incorrect or missing properties of some kind and
if I proceed anyway I get to an access violation and Lazarus crashes!

Seems like there is a Catch 22 built into the Lazarus project handling
that disallows one from using the editor to fix project problems

What can I do in order:
A) To find which actual project file it is having problems with?

B) To load the project into the editor so I can fix whatever problem
it is having?




Perhaps resize the error Dialog or hit ctrl+c to copy the message to
clipboard?

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Keyboard mapping probelm

2020-05-20 Thread John Landmesser via lazarus

Am 20.05.20 um 01:12 schrieb Brian via lazarus:


Regrettably, it appears I spoke too soon. I fired up Lazarus again and
the problem is back. I'm compiling trunk for both fpc and lazarus
using fpcupdeluxe. To recap, this is under Linux Mint 19.3 64-bit
(Ubuntu base). I have absolutely *NOT* done any keyboard remapping nor
defined any macros since everything last worked correctly. The setup I
have in a LMDE (Linux Mint Debian) virtual machine still works correctly.

I will update both setups, so that I know I am (should be!) running
exactly the same versions of trunk, and report back in due course.

Brian.



Perhaps try another version of fpcupdeluxe?

https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] fpccfg is missing in new Lazarus install

2020-05-14 Thread John Landmesser via lazarus

.. get a newer lazarus from:

https://www.lazarus-ide.org/index.php?page=downloads

Am 14.05.20 um 15:59 schrieb Terry A. Haimann via lazarus:

I just did a fresh install of Lazarus and it says the fpc.cfg file
isn't found.  These are the files I used to install lazarus with:

fpc-src_2.6.2-0_amd64.deb
fpc_2.6.2-0_amd64.deb
lazarus_1.0.10-0_amd64.

I ran a search for fpc.cfg and ffound these files:

/home/terry/Downloads/fpc.cfg
/etc/fpc.cfg

ls -la /etc/fpc.cfg
-rw-r--r-- 1 root root 7799 May 14 08:09 /etc/fpc.cfg

Where does the file need to be inorder for Lazarus to find it?

This is a Linux Mint 19.2 desktop using Mate and the processor is a i7-
8700, 16gb of ram.

Terry



--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Lazarus svn compile error: "Error: Duplicate resource: Type = 10, Name = TSELECTDATASETFORM, Lang ID, = 0000"

2020-05-01 Thread John Landmesser via lazarus

Am 01.05.20 um 17:18 schrieb Michael Van Canneyt via lazarus:



On Fri, 1 May 2020, John Landmesser via lazarus wrote:



Windows 10:

Lazarus 2.1.0 r63090M FPC 3.0.4 i386-win32-win32/win64


Log messages:

IDE erstellen: Exit code 2, Fehler: 2, Warnungen: 7, Hinweise: 1
sourcesyneditor.pas(1574,35) Warning: Symbol "FScreenCaretPainterClass"
is deprecated: "need refactor"
sourcesyneditor.pas(1581,35) Warning: Symbol "FScreenCaretPainterClass"
is deprecated: "need refactor"
pseudoterminaldlg.pp(132,16) Warning: Symbol "PseudoTerminal" is
experimental
pseudoterminaldlg.pp(179,16) Warning: Symbol "PseudoTerminal" is
experimental
debugmanager.pas(2483,15) Warning: Symbol "OnDbgEvent" is deprecated:
"switch to EventLogHandler"
debugmanager.pas(3100,25) Warning: Symbol "PseudoTerminal" is
experimental
debugmanager.pas(3173,15) Warning: Symbol "OnDbgEvent" is deprecated:
"switch to EventLogHandler"
codeexplorer.pas(137,7) Hint: Parameter "Shift" not used
Error: Duplicate resource: Type = 10, Name = TSELECTDATASETFORM, Lang ID
= 
lazarus.pp(167,1) Error: Error while compiling resources -> Compile with
-vd for more details. Check for duplicates.


Please update and try again. I renamed one instance. revs 63108-63109.

Michael.




FIXED, thanks Michael!

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Lazarus svn compile error: "Error: Duplicate resource: Type = 10, Name = TSELECTDATASETFORM, Lang ID, = 0000"

2020-05-01 Thread John Landmesser via lazarus


Windows 10:

Lazarus 2.1.0 r63090M FPC 3.0.4 i386-win32-win32/win64


Log messages:

IDE erstellen: Exit code 2, Fehler: 2, Warnungen: 7, Hinweise: 1
sourcesyneditor.pas(1574,35) Warning: Symbol "FScreenCaretPainterClass"
is deprecated: "need refactor"
sourcesyneditor.pas(1581,35) Warning: Symbol "FScreenCaretPainterClass"
is deprecated: "need refactor"
pseudoterminaldlg.pp(132,16) Warning: Symbol "PseudoTerminal" is
experimental
pseudoterminaldlg.pp(179,16) Warning: Symbol "PseudoTerminal" is
experimental
debugmanager.pas(2483,15) Warning: Symbol "OnDbgEvent" is deprecated:
"switch to EventLogHandler"
debugmanager.pas(3100,25) Warning: Symbol "PseudoTerminal" is experimental
debugmanager.pas(3173,15) Warning: Symbol "OnDbgEvent" is deprecated:
"switch to EventLogHandler"
codeexplorer.pas(137,7) Hint: Parameter "Shift" not used
Error: Duplicate resource: Type = 10, Name = TSELECTDATASETFORM, Lang ID
= 
lazarus.pp(167,1) Error: Error while compiling resources -> Compile with
-vd for more details. Check for duplicates.


-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


  1   2   >