From giuliano.colla at fastwebnet.it Sat Apr 1 01:58:05 2023 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Sat, 1 Apr 2023 01:58:05 +0200 Subject: [Lazarus] Simple ipc server fatal error on start - 0xc000007b In-Reply-To: References: Message-ID: Among the internet examples of Delphi 7 you should find a small app named netchat, which provides a basic IPC. It?s quite simple and bullet-proof. I?ve converted to Lazarus on Linux, and used as a base for my needs of IPC. But converting on the same Windows environment should be very simple, just using the Lazarus facilities. You may test it just as it is, and then adapt it to your needs. Giuliano Inviato da iPhone > Il giorno 31 mar 2023, alle ore 18:39, Bo Berglund via lazarus ha scritto: > > ?I am investigating the possibilities to use IPC between a Lazarus and a Delphi7 > application running on Windows. I was discussing this on the Lazarus forum where > I got a tip to use SimpleIPC, which apparently is delivered with the Fpc > compiler itself. > > The tip was given in this post: > https://forum.lazarus.freepascal.org/index.php/topic,62867.msg475663.html#msg475663 > > In that post is a link to a GitHub project which simplifies ipc usage by > creating a dll packaging everything needed so that the dll could be used from > other applications developed in other languages too. Sounds good to me. > Here is the GitHub project url: > https://github.com/z505/SimpleIPC-lib > > So I downloaded this and using Lazarus 2.2.4 and Fpc 3.2.2 on Windows 10 x64 I > did this: > 1) opened the dll project and compiled the dll itself. > 2) Opened the demo-lazarus\ipcclient project and compiled it > 3) Opened the demo-lazarus\ipcserver project and compiled it > > So now I could start the ipcclient app and it shows its form with a button to > send data to the server. When I used it there was an error message about "not > finding the server". To be expected, since I had not started the server... > > So I next tried to start the server app, but it immediately shows an error box > with the text: > ------------------- > Application error > The application was unable to start correctly (0xc000007b). > Click OK to close the application. > [OK] > ------------------- > > I have tried various things like changing target for the dll and both > applications to win32 (I have the cross for Win32 installed), but the exact same > happens. > > And I have no idea whatsoever on where to look for a reason for this to happen. > > I have even put a breakpoint into the server code at the earliest point I could > find and started it from Lazarus, but get the same error dialog and no > breakpoint reached... > > I tried reading https://wiki.freepascal.org/SimpleIPC but got no idea from that > either... > > What to do now? > I am not clever enough to figure out if there is some error in the GitHub > project. Not used to windows communications at all. > > > What I want to do is to create an ipc link to a Delphi7 server app from a > Lazarus/fpc client app to use the D7 app to read a hardware device on command > and send the data to the Lazarus app. > It is not possible to compile the D7 app on Lazarus because there is a device > manufacturer's obj file involved and it is apparently of the wrong format for > Lazarus/Fpc to use. It can be linked to in Delphi7 but not in Lazarus/Fpc. > > Hence the D7<=ipc=>Lazarus IPC communication... > > I really do hope this can be fixed so I can get the ipc comm line to the D7 > interfacing app working! > > > -- > Bo Berglund > Developer in Sweden > > -- > _______________________________________________ > lazarus mailing list > lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus From bo.berglund at gmail.com Sat Apr 1 09:37:00 2023 From: bo.berglund at gmail.com (Bo Berglund) Date: Sat, 01 Apr 2023 09:37:00 +0200 Subject: [Lazarus] Simple ipc server fatal error on start - 0xc000007b References: Message-ID: On Sat, 1 Apr 2023 01:58:05 +0200, Giuliano Colla via lazarus wrote: >Among the internet examples of Delphi 7 you should find a small app named netchat, >which provides a basic IPC. It?s quite simple and bullet-proof. I?ve converted to >Lazarus on Linux, and used as a base for my needs of IPC. >But converting on the same Windows environment should be very simple, just using >the Lazarus facilities. You may test it just as it is, and then adapt it to your needs. > >Giuliano > Where are the "internet examples of Delphi 7" located? Inside the Delphi7 installation or where? I can't find any. By the name you write it looks to me (without having found the example) that it is a *network* application using TCP/IP sockets or the like. I know this is a possibility but seems to be problematic since it implies that the communication is via the LAN. What about situations when there is no network connection? The IPC as described seems to use internal messaging channels on the Windows computer it runs on and not the network... -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Sat Apr 1 10:53:58 2023 From: bo.berglund at gmail.com (Bo Berglund) Date: Sat, 01 Apr 2023 10:53:58 +0200 Subject: [Lazarus] Simple ipc server fatal error on start - 0xc000007b References: Message-ID: <5urf2i1kc58ig2glfo3hqs94599bq9u86l@4ax.com> On Sat, 01 Apr 2023 09:37:00 +0200, Bo Berglund via lazarus wrote: >On Sat, 1 Apr 2023 01:58:05 +0200, Giuliano Colla via lazarus > wrote: > >>Among the internet examples of Delphi 7 you should find a small app named netchat, >>which provides a basic IPC. It?s quite simple and bullet-proof. I?ve converted to >>Lazarus on Linux, and used as a base for my needs of IPC. >>But converting on the same Windows environment should be very simple, just using >>the Lazarus facilities. You may test it just as it is, and then adapt it to your needs. >> >>Giuliano So I pulled out my Delphi7 CD (actually mounted the ISO copy of the CD) and managed to find the demo you refer to. It is as I suspected using the TCP/IP socket communications, but I guess this is the way I have to go. I can probably set it to only operate on the localhost interface so there is no need to get packets out onto the LAN, which may or may not be available. And I can use Indy10 sockets rather than the now since long deprecated TTcpClient and TTcpServer components. I guess I will save myself a lot of time doing this... -- Bo Berglund Developer in Sweden From giuliano.colla at fastwebnet.it Sat Apr 1 11:15:44 2023 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Sat, 1 Apr 2023 11:15:44 +0200 Subject: [Lazarus] Simple ipc server fatal error on start - 0xc000007b In-Reply-To: References: Message-ID: <1dae0890-56f5-9b0a-4d19-a2abfbce420c@fastwebnet.it> Il 01/04/2023 09:37, Bo Berglund via lazarus ha scritto: > Where are the "internet examples of Delphi 7" located? > Inside the Delphi7 installation or where? I can't find any. > > By the name you write it looks to me (without having found the example) that it > is a*network* application using TCP/IP sockets or the like. > I know this is a possibility but seems to be problematic since it implies that > the communication is via the LAN. What about situations when there is no network > connection? > > The IPC as described seems to use internal messaging channels on the Windows > computer it runs on and not the network... > > > -- Bo Berglund Developer in Sweden I have found it on the Kylix installation. But I did a quick search of Delphi NetChat and I found it immediately. It should be in the Demos folder. Demos->Internet->NetChat. You may also download it from Internet, where a Brazilian guy has made it available: http://simbolussi.ddns.com.br:8088/TESTE%20DELPHI%207/Delphi7/Delphi7/Demos/Internet/NetChat/ Yes it is a network app, but it can be used locally, just by connecting both sides via localhost (i.e. 127.0.0.1), the loopback interface, which can be used whenever you want to connect TCP/IP server-client on the same machine. It's fundamental to test network apps locally before deploying it. Just search for "windows localhost", and you'll get the Microsoft documentation about it: https://learn.microsoft.com/en-us/windows/iot-core/develop-your-app/loopback and other contributions which may be useful. That way you'll be using tools which are widely used and tested, and not very special ones which may fail outside a particular environment. Giuliano -- Do not do to others as you would have them do to you.They might have different tastes. -------------- next part -------------- An HTML attachment was scrubbed... URL: From giuliano.colla at fastwebnet.it Sat Apr 1 14:34:15 2023 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Sat, 1 Apr 2023 14:34:15 +0200 Subject: [Lazarus] Simple ipc server fatal error on start - 0xc000007b In-Reply-To: <5urf2i1kc58ig2glfo3hqs94599bq9u86l@4ax.com> References: <5urf2i1kc58ig2glfo3hqs94599bq9u86l@4ax.com> Message-ID: Il 01/04/2023 10:53, Bo Berglund via lazarus ha scritto: > And I can use Indy10 sockets rather than the now since long deprecated > TTcpClient and TTcpServer components. > > I guess I will save myself a lot of time doing this... If I were you I'd take ten minutes to give it a try. Just compile, launch two instances, and type in one and see the message in the other. Then decide which way to go. AFAIK all the Internet servers and clients around the world are using tcp/ip and none of them Indi10.... If Windows wants to connect reliably to Internet must provide a good implementation of the tcp/ip protocol, which is just exploited by the TTcpClient and TTcpServer components. Giuliano -- Do not do to others as you would have them do to you.They might have different tastes. From jean.suzineau at wanadoo.fr Sat Apr 1 14:50:17 2023 From: jean.suzineau at wanadoo.fr (Jean SUZINEAU) Date: Sat, 1 Apr 2023 14:50:17 +0200 Subject: [Lazarus] Simple ipc server fatal error on start - 0xc000007b In-Reply-To: References: Message-ID: <72fe3cf8-1336-04c9-6add-a057c4d1972c@wanadoo.fr> You can uses pipes too, basically just two files no need of networking, one for reading (delphi to freepascal), one for writing(freepascal to delphi). I made last year a small app to communicate with Audacity (https://www.audacityteam.org/) using a specific plugin (https://manual.audacityteam.org/man/scripting.html). You can find there the unit/class which manages the communication: https://github.com/jsuzineau/pascal_o_r_mapping/blob/TjsDataContexte/tools/jsAudacity/uAudacity.pas In my case I used pipes already created by Audacity. For your problem I think it would be more appropriate to use FpPipe (although I personnaly never used it): https://www.freepascal.org/docs-html/rtl/baseunix/fppipe.html I think you will find something similar on Delphi 7 side. From giuliano.colla at fastwebnet.it Sat Apr 1 18:05:19 2023 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Sat, 1 Apr 2023 18:05:19 +0200 Subject: [Lazarus] Simple ipc server fatal error on start - 0xc000007b In-Reply-To: <72fe3cf8-1336-04c9-6add-a057c4d1972c@wanadoo.fr> References: <72fe3cf8-1336-04c9-6add-a057c4d1972c@wanadoo.fr> Message-ID: <8f4c80fe-53b9-f2c3-2ccc-397ae143c840@fastwebnet.it> Il 01/04/2023 14:50, Jean SUZINEAU via lazarus ha scritto: > You can uses pipes too, basically just two files no need of > networking, one for reading (delphi to freepascal), one for > writing(freepascal to delphi). > > I made last year a small app to communicate with Audacity > (https://www.audacityteam.org/) using a specific plugin > (https://manual.audacityteam.org/man/scripting.html). > > You can find there the unit/class which manages the communication: > https://github.com/jsuzineau/pascal_o_r_mapping/blob/TjsDataContexte/tools/jsAudacity/uAudacity.pas > > > In my case I used pipes already created by Audacity. > For your problem I think it would be more appropriate to use FpPipe > (although I personnaly never used it): > > https://www.freepascal.org/docs-html/rtl/baseunix/fppipe.html > > I think you will find something similar on Delphi 7 side. > > I'm afraid that Jean Suzineau is right, except for the reference to FpPipe which is Unix specific. Named pipes (or FIFO's) may be the simplest solution, in place of a bloated Indi10, useful if you need something quite complex, such as a securized web server , or of the tcp/ip sockets of NetChat. Just a file you write on one side and read the on the other side. Two named pipes for bidirectional communication, if necessary. You'll find a lot of examples just looking for Delphi pipes or Delphi named pipes on the web. https://github.com/Poznamenany/Named_Pipes_in_Delphi is just one for Delphi side (but it's ok also for Lazarus). You may find useful the discussion here, to avoid common pitfalls: https://forum.lazarus.freepascal.org/index.php?topic=44251.0 Giuliano -- Do not do to others as you would have them do to you.They might have different tastes. -------------- next part -------------- An HTML attachment was scrubbed... URL: From wsherman at gmail.com Sun Apr 2 02:44:40 2023 From: wsherman at gmail.com (Wayne Sherman) Date: Sat, 1 Apr 2023 17:44:40 -0700 Subject: [Lazarus] Simple ipc server fatal error on start - 0xc000007b In-Reply-To: References: Message-ID: On Fri, Mar 31, 2023 at 9:38?AM Bo Berglund wrote: > What I want to do is...use the D7 app to read a hardware device on command > and send the data to the Lazarus app. You probably don't need the extra complication of IPC, sockets, COM, or OLE automation. Instead of creating a D7 app, build a D7 DLL which exports the function(s) you need. Import the DLL function(s) to your Lazarus app and call them directly. From pascaldragon at googlemail.com Sun Apr 2 08:10:15 2023 From: pascaldragon at googlemail.com (Sven Barth) Date: Sun, 2 Apr 2023 08:10:15 +0200 Subject: [Lazarus] Simple ipc server fatal error on start - 0xc000007b In-Reply-To: References: Message-ID: Wayne Sherman via lazarus schrieb am So., 2. Apr. 2023, 02:45: > On Fri, Mar 31, 2023 at 9:38?AM Bo Berglund wrote: > > What I want to do is...use the D7 app to read a hardware device on > command > > and send the data to the Lazarus app. > > You probably don't need the extra complication of IPC, sockets, COM, > or OLE automation. Instead of creating a D7 app, build a D7 DLL which > exports the function(s) you need. Import the DLL function(s) to your > Lazarus app and call them directly. > Since the Delphi code in question is 32-bit that will restrict the FPC code to i386-win32. Regards, Sven > -------------- next part -------------- An HTML attachment was scrubbed... URL: From giuliano.colla at fastwebnet.it Wed Apr 5 09:45:05 2023 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Wed, 5 Apr 2023 09:45:05 +0200 Subject: [Lazarus] IDE rebuild failure on MAC OS Message-ID: <9abff651-cc9a-a0a2-126a-b8d631f14a3b@fastwebnet.it> I have updated Lazarus to 2.2.6 on Mac OS (Apple Silicon M1 processor). As I'm using some extra packages, I needed to rebuild the IDE in order to install those packages. But to my dismay, building of the normal IDE, without touching the original settings, failed with a rather unexpected error: (9022) Compiling resource /Applications/Lazarus/units/x86_64-darwin/cocoa/lazarus.or Warning: (9011) Object lazaruspackageintf.o not found, Linking may fail ! (9015) Linking ../lazarus ld: file not found: lazaruspackageintf.o make[2]: *** [lazarus] Error 1 make[1]: *** [idepkg] Error 2 make: *** [idepkg] Error 2 An error occurred while linking After some fiddling trying to make it find lazaruspackageintf, I tried to rebuild in a different setup, i.e. debug IDE. It worked just fine. Then I tried to build again as normal IDE, and this time it did work. Notice that I didn't touch neither the settings for normal IDE, nor those for the debug IDE. Some invisible parameter which has been reset switching from normal to debug and back? A strange hiccup of Mac? There is another strange issue. While fighting with the IDE rebuild I had tampered with the Project Options of the project which was open, because I had seen in the past that sometimes the current Project Options have an influence on the IDE build. I had deleted the dependency from LCL, which made impossible to compile, of course. But when trying to add the dependency, I discovered that I was unable to enter upper case characters. My upper case LCL was entered as a lower case lcl. The only way has been to add an LCL file to the project, and confirm that I wanted all the package and not just one file. Any idea of how to solve that issue? Giuliano -------------- next part -------------- An HTML attachment was scrubbed... URL: From bo.berglund at gmail.com Wed Apr 5 20:50:19 2023 From: bo.berglund at gmail.com (Bo Berglund) Date: Wed, 05 Apr 2023 20:50:19 +0200 Subject: [Lazarus] Lazarus/Fpc on RaspberryPi4 - linkxxx.res files stack up, why? Message-ID: Does someone here know what I can do in order not having my project folder polluted by numerous files named linkxxxx.res where xxxx 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. -- Bo Berglund Developer in Sweden From jmlandmesser at gmx.de Wed Apr 5 23:06:09 2023 From: jmlandmesser at gmx.de (John Landmesser) Date: Wed, 5 Apr 2023 23:06:09 +0200 Subject: [Lazarus] Lazarus/Fpc on RaspberryPi4 - linkxxx.res files stack up, why? In-Reply-To: References: Message-ID: 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 linkxxxx.res where xxxx 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 From bo.berglund at gmail.com Thu Apr 6 08:28:09 2023 From: bo.berglund at gmail.com (Bo Berglund) Date: Thu, 06 Apr 2023 08:28:09 +0200 Subject: [Lazarus] Lazarus/Fpc on RaspberryPi4 - linkxxx.res files stack up, why? References: Message-ID: <7fps2i98bpivd98d79tdp6q8fl51np04h9@4ax.com> On Wed, 5 Apr 2023 23:06:09 +0200, John Landmesser via lazarus wrote: >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 linkxxxx.res where xxxx 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 Thanks, I am using QuickCompile when dealing with big edits to pinpoint syntax errors, so I have done that rather often in my new project where I use code from GitHub, which I am not familiar with.... Just delete them then. -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Thu Apr 6 09:08:45 2023 From: bo.berglund at gmail.com (Bo Berglund) Date: Thu, 06 Apr 2023 09:08:45 +0200 Subject: [Lazarus] AutoSave does not save project file... References: Message-ID: On Thu, 20 May 2021 21:10:10 +0200, Bo Berglund via lazarus wrote: >On Sun, 11 Apr 2021 11:29:36 +0200, Bo Berglund via lazarus > wrote: > >>I have installed AutoSave from the OnlinePackageManager on all of my numerous >>Lazarus installations and in general it works well. >>I started to do this following several Lazarus crashes where I lost modified >>code and had to try restoring from memory... >> >>However, when I write console (simple program) applications I have noted that >>AutoSave does not save the lpr file! And when looking closely the lpi file in >>GUI apps is also not saved. >> >>Since lpr is the only file in simple programs AutoSave does not help from >>disaster if a crash happens. >>Is there a way to configure or modify AutoSave so it also saves the main project >>files? >> > >Reviving this thread in order to find a solution (did not get a single reply). >------------------------------------------------------------------------------ >I am relying heavily on AutoSave when programming in Lazarus on a remote >RaspberryPi via VNC connection. In this situation it happens way too often that >Lazarus suddenly just unloads from memory and I see a blank desktop. >Thanks to AutoSave in most cases I have just to start Lazarus again to be back >in business, at worst with the last 5 seconds of typing lost. > >But that does not hold true if I am working in the lpr file because that is not >saved automatically!!! > >It just happened to me again and it causes problems trying to re-create the last >hour or so of work done on this file. :( > >So I would REALLY be happy if someone who understands the workings of AutoSave >can make it include the project file among the files saved by AutoSave! > >I have never ever looked at stuff that integrate within Lazarus itself so I >could not fix it.... Now I have looked at the GitHub code, but am none the wiser (or a little bit wiser)... >For a console program maybe I should create a mainprogram.pas file and put >*everything* now located in the lpr file into that instead? >Just leave a bare minimum in the lpr file... >Pity to be forced to do that though. > As Juha Manninen suggested I have looked at the Autosave code in GitHub and I found this to be where the action is triggered: The file is: https://github.com/lainz/LazAutoSave/blob/master/autosave_main.pas And this is the function that does the job (starts at line #107): procedure TAutoSave.OnTimer(Sender: TObject); begin if Settings = nil then begin if LazarusIDE <> nil then //wait until IDE startup begin Settings := TSettings.Create(AppendPathDelim(LazarusIDE.GetPrimaryConfigPath) + cAutoSaveConfigFile); FTimer.StopTimer; FTimer.Interval := Settings.AutoSaveInteval*1000; FTimer.StartTimer; end; end else begin if Settings.EnableAutoSave then LazarusIDE.DoSaveAll([sfDoNotSaveVirtualFiles, sfCanAbort, sfQuietUnitCheck]); //<== Does *not* save the project lpr file! end; end; Notice that it calls LazarusIDE itself and I have no idea how to make Lazarus include the lpr file into the ones being saved by this call... There *must* be some setting for this in Lazarus, right? So how can I tell Lazarus to include the lpr file in the saved files when it is called this way? I am still experiencing these regular crashes in Lazarus even when using the version 2.2.6 with Fpc 3.2.2 on a RaspberryPi4B 8GB device. I access the desktop with VNC, which may be why the crash happens. Typically Lazarus disappears when I accidentally click the mouse on something in the IDE, but I don't understand exactly what is clicked. Could be some border in the editor or such, but Lazarus instantly disappears and I look at a blank desktop... However, Autosave has saved the day for me because when it happens I can just start Lazarus again and I am back where I left off. Except of course if I am doing a command line program with all code in the lpr file, then everything is lost when the crash happens. -- Bo Berglund Developer in Sweden From mgr.janusz.chmiel at gmail.com Thu Apr 6 11:39:36 2023 From: mgr.janusz.chmiel at gmail.com (Mgr. Janusz Chmiel) Date: Thu, 6 Apr 2023 11:39:36 +0200 Subject: [Lazarus] unsubscribe Message-ID: An HTML attachment was scrubbed... URL: From mgr.janusz.chmiel at gmail.com Thu Apr 6 11:39:36 2023 From: mgr.janusz.chmiel at gmail.com (Mgr. Janusz Chmiel) Date: Thu, 6 Apr 2023 11:39:36 +0200 Subject: [Lazarus] unsubscribe Message-ID: An HTML attachment was scrubbed... URL: From bo.berglund at gmail.com Mon Apr 10 16:53:58 2023 From: bo.berglund at gmail.com (Bo Berglund) Date: Mon, 10 Apr 2023 16:53:58 +0200 Subject: [Lazarus] Lazarus 2.2.6/Fpc 3.2.2 Win-32 - Cannot add desktops, why? Message-ID: I was following my notes on how to configure a newly installed Lazauus to my liking when I stumbled across an item I have not seen AFAICT: Normally I configure different desktops to use for different types of application, for example the one for standard GUI applications is different from what I use for console type programs. So I installed the 32 bit Lazarus on a Windows 10 x64 workstation using fpcupdeluxe (the reason for 32 bit is because I need that to be able to cross-compile for Raspberry Pi arm devices). I also installed the cross-compiler for arm-linux (the cross to Win64 was already installed when I installed the main Lazarus-32). When I now headed towards the desktop dialog (Tools/Desktops) it does not have an option to add new desktops! The only functions available on the "Manage Desktops" dialog are: - Save active desktop as.. - Set active (disabled) - Toggle as debug desktop - Rename - Delete (disabled) - Move up (disabled) - Move down - Auto save active desktop checkbox is checked by default. I am used to getting into a dialog where one can add new desktops and name them whatever, then set one active and configure the desktop as needed and save it, then move to the next desktop and repeat. But this is not possible here! What am I missing? -- Bo Berglund Developer in Sweden From giuliano.colla at fastwebnet.it Mon Apr 10 17:10:36 2023 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Mon, 10 Apr 2023 17:10:36 +0200 Subject: [Lazarus] Lazarus 2.2.6/Fpc 3.2.2 Win-32 - Cannot add desktops, why? In-Reply-To: References: Message-ID: Il 10/04/2023 16:53, Bo Berglund via lazarus ha scritto: > I was following my notes on how to configure a newly installed Lazauus to my > liking when I stumbled across an item I have not seen AFAICT: > > Normally I configure different desktops to use for different types of > application, for example the one for standard GUI applications is different from > what I use for console type programs. > > So I installed the 32 bit Lazarus on a Windows 10 x64 workstation using > fpcupdeluxe (the reason for 32 bit is because I need that to be able to > cross-compile for Raspberry Pi arm devices). > I also installed the cross-compiler for arm-linux (the cross to Win64 was > already installed when I installed the main Lazarus-32). > > > When I now headed towards the desktop dialog (Tools/Desktops) it does not have > an option to add new desktops! The only functions available on the "Manage > Desktops" dialog are: > > - Save active desktop as.. > - Set active (disabled) > - Toggle as debug desktop > - Rename > - Delete (disabled) > - Move up (disabled) > - Move down > - Auto save active desktop checkbox is checked by default. > > I am used to getting into a dialog where one can add new desktops and name them > whatever, then set one active and configure the desktop as needed and save it, > then move to the next desktop and repeat. > > But this is not possible here! What am I missing? > > Just use "save active desktop as" This will create a new entry named as you like. You may do it as many times as you want, and then you may edit each one to your taste. Giuliano -- Do not do to others as you would have them do to you.They might have different tastes. From zoe at scootersoftware.com Wed Apr 12 20:57:34 2023 From: zoe at scootersoftware.com (=?UTF-8?Q?Zo=c3=ab_Peterson?=) Date: Wed, 12 Apr 2023 13:57:34 -0500 Subject: [Lazarus] Cocoa maintainer and submitting patches Message-ID: <31536379-0489-ab08-ddd4-8f3297cdeaf2@scootersoftware.com> As we're winding up preparations for our upcoming release, we've been collecting all of our outstanding changes relative to Lazarus trunk and splitting them into patches.? Outside some that are specific to us, we currently have about 130 distinct patches, half of which are for LCLCocoa, with the remainder being a mix of LCL core, LCLQt5, or components.? Some of those would require significant effort to develop example apps and bug write-ups for, which would be hard to justify if they're unlikely to be merged. Dmitry hasn't been actively maintaining the Cocoa widgetset for quite a while now, and my understanding is that he's stepped down. Alextp has been pinging me on a issues that impact him, but I'm not currently a member of the Lazarus team.? I think I can do good job of evaluating patches, but macOS has already taken up significantly more of my time than I can justify, and I've already had to reduce my Cocoa efforts here.? David Jenkins is our primary macOS/Linux developer and did at one point have LCLCarbon commit access, but he's never been very active in that capacity.? He doesn't want maintainership himself either, but we can have him help, especially if it helps get our patches merged. One concern I have with either of us is that an explicit design goal of our app is that it feel as macOS-native as possible, and that has involved considerable work to bypass the LCL in various ways.? We don't use the LCL common dialogs, for example, so if those break, we're less likely to notice.? We also don't use Lazarus on Windows, and David doesn't have any significant Win32 experience, so cross-widgetset functionality that we need on macOS/Linux could easily conflict with things that the LCL needs elsewhere. Has there been any movement to replace Dmitry?? Are there any other developers who've expressed interest or even shown significant knowledge on the LCLCocoa innards? -- Zo? Peterson Scooter Software From ganmax at narod.ru Sat Apr 15 00:19:33 2023 From: ganmax at narod.ru (Maxim Ganetsky) Date: Sat, 15 Apr 2023 01:19:33 +0300 Subject: [Lazarus] Cocoa maintainer and submitting patches In-Reply-To: <31536379-0489-ab08-ddd4-8f3297cdeaf2@scootersoftware.com> References: <31536379-0489-ab08-ddd4-8f3297cdeaf2@scootersoftware.com> Message-ID: <4067e397-6af2-0974-06ae-a4e8fdfdef74@narod.ru> 12.04.2023 21:57, Zo? Peterson via lazarus ?????: > As we're winding up preparations for our upcoming release, we've been > collecting all of our outstanding changes relative to Lazarus trunk and > splitting them into patches.? Outside some that are specific to us, we > currently have about 130 distinct patches, half of which are for > LCLCocoa, with the remainder being a mix of LCL core, LCLQt5, or > components.? Some of those would require significant effort to develop > example apps and bug write-ups for, which would be hard to justify if > they're unlikely to be merged. High quality patches, especially with good descriptions, will be merged indeed. > Dmitry hasn't been actively maintaining the Cocoa widgetset for quite a > while now, and my understanding is that he's stepped down. Alextp has Unfortunately, yes, due to lack of time. > been pinging me on a issues that impact him, but I'm not currently a > member of the Lazarus team.? I think I can do good job of evaluating Probably, it is time to become a member? > patches, but macOS has already taken up significantly more of my time > than I can justify, and I've already had to reduce my Cocoa efforts > here.? David Jenkins is our primary macOS/Linux developer and did at one > point have LCLCarbon commit access, but he's never been very active in > that capacity.? He doesn't want maintainership himself either, but we > can have him help, especially if it helps get our patches merged. BTW, a good start will be reviewing Cocoa-related merge requests, for example: https://gitlab.com/freepascal.org/lazarus/lazarus/-/merge_requests/117 https://gitlab.com/freepascal.org/lazarus/lazarus/-/merge_requests/118 > One concern I have with either of us is that an explicit design goal of > our app is that it feel as macOS-native as possible, and that has > involved considerable work to bypass the LCL in various ways.? We don't > use the LCL common dialogs, for example, so if those break, we're less > likely to notice.? We also don't use Lazarus on Windows, and David > doesn't have any significant Win32 experience, so cross-widgetset > functionality that we need on macOS/Linux could easily conflict with > things that the LCL needs elsewhere. This can always be discussed with other developers, your concerns in this regard are not unique. > Has there been any movement to replace Dmitry?? Are there any other Currently we don't have any Cocoa developers in the team. Historically I merged Dmitry's work on Cocoa since migration to Git, but note that I cannot even test these changes because I don't have a Mac. > developers who've expressed interest or even shown significant knowledge > on the LCLCocoa innards? Only you and David. :) -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From bo.berglund at gmail.com Sat Apr 15 13:41:57 2023 From: bo.berglund at gmail.com (Bo Berglund) Date: Sat, 15 Apr 2023 13:41:57 +0200 Subject: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1) Message-ID: I have a project that builds fine on one RPi4 where I have installed Lazarus 2.2.6/Fpc 3.2.2 from sources. This is a rather old device and I am trying to create a backup build unit to migrate into On this I have installed the same versions but using fpcupdeluxe for arm-linux. On the new unit some test projects work fine but the real target project seems to have some problems. I have retrieved the same project from our Subversion server so the project files are the same versions. On the original RPi4 I can compile/build/debug just fine. But when I try compiling or building the project on the newer RPi4 I get the output below in the messages log (the full log as copied from Lazarus attached). The problem seems to come from the Synapse package but this is installed via OnlinePackageManeger on both systems... What does this mean: undefined reference to `SYSTEM_$$_POS$CHAR$RAWBYTESTRING$$LONGINT' And what can I do? Is something missing in the fpcupdeluxe installation? This has not happened to me before. Log excerpt follows: First this happens in the output: ---------------------------------- Note: Duplicate unit "synautil" in "SSRemoteServerLx", orphaned ppu "/home/pi/projects/SSRemoteServer/source/lib/arm-linux/synautil.ppu" Note: Duplicate unit "synautil" in "laz_synapse 40.1", ppu="/home/pi/LazFpc/Laz_2.2.6/config_lazarus/onlinepackagemanager/packages/synapse40.1/lib/arm-linux/synautil.ppu", source="/home/pi/LazFpc/Laz_2.2.6/config_lazarus/onlinepackagemanager/packages/synapse40.1/synautil.pas" Note: Duplicate unit "synaser" in "SSRemoteServerLx", orphaned ppu "/home/pi/projects/SSRemoteServer/source/lib/arm-linux/synaser.ppu" Note: Duplicate unit "synaser" in "laz_synapse 40.1", ppu="/home/pi/LazFpc/Laz_2.2.6/config_lazarus/onlinepackagemanager/packages/synapse40.1/lib/arm-linux/synaser.ppu", source="/home/pi/LazFpc/Laz_2.2.6/config_lazarus/onlinepackagemanager/packages/synapse40.1/synaser.pas" Note: Duplicate unit "synafpc" in "SSRemoteServerLx", orphaned ppu "/home/pi/projects/SSRemoteServer/source/lib/arm-linux/synafpc.ppu" Note: Duplicate unit "synafpc" in "laz_synapse 40.1", ppu="/home/pi/LazFpc/Laz_2.2.6/config_lazarus/onlinepackagemanager/packages/synapse40.1/lib/arm-linux/synafpc.ppu", source="/home/pi/LazFpc/Laz_2.2.6/config_lazarus/onlinepackagemanager/packages/synapse40.1/synafpc.pas" Note: Duplicate unit "fpserialport" in "SSRemoteServerLx", orphaned ppu "/home/pi/projects/SSRemoteServer/source/lib/arm-linux/fpserialport.ppu" Note: Duplicate unit "fpserialport" in "fpserialpkg 0.0", ppu="/home/pi/LazFpc/Laz_2.2.6/config_lazarus/cmplaz/FpSerialPort/lib/arm-linux/fpserialport.ppu", source="/home/pi/LazFpc/Laz_2.2.6/config_lazarus/cmplaz/FpSerialPort/fpserialport.pas" Then some hints on unused variables for the units being compiled etc... Then this: ---------------------------------------- /home/pi/projects/SSRemoteServer/source/SSRemoteServerLx.lpr(32,5) Hint: (5023) Unit "BaseUnix" not used in SSRemoteServerLx (9022) Compiling resource /home/pi/projects/SSRemoteServer/source/lib/arm-linux/SSRemoteServerLx.or (9015) Linking /home/pi/projects/SSRemoteServer/source/SSRemoteServerLx /usr/bin/ld: //home/pi/projects/SSRemoteServer/source/lib/arm-linux/synautil.o: in function `SYNAUTIL_$$_finalize_implicit$': /home/pi/projects/SSRemoteServer/source/synautil.pas:(.text.n_synautil_$$_decodetimezone$ansistring$longint$$boolean+0x68): undefined reference to `SYSTEM_$$_POS$CHAR$RAWBYTESTRING$$LONGINT' /usr/bin/ld: /home/pi/projects/SSRemoteServer/source/synautil.pas:(.text.n_synautil_$$_decodetimezone$ansistring$longint$$boolean+0x7c): undefined reference to `SYSTEM_$$_POS$CHAR$RAWBYTESTRING$$LONGINT' /usr/bin/ld: /home/pi/projects/SSRemoteServer/source/synautil.pas:(.text.n_synautil_$$_decoderfcdatetime$ansistring$$tdatetime+0x1cc): undefined reference to `SYSTEM_$$_POS$CHAR$RAWBYTESTRING$$LONGINT' /usr/bin/ld: /home/pi/projects/SSRemoteServer/source/synautil.pas:(.text.n_synautil_$$_dump$ansistring$ansistring+0x60): undefined reference to `SYSUTILS_$$_FILEEXISTS$RAWBYTESTRING$$BOOLEAN' /usr/bin/ld: /home/pi/projects/SSRemoteServer/source/synautil.pas:(.text.n_synautil_$$_dumpex$ansistring$ansistring+0x60): undefined reference to `SYSUTILS_$$_FILEEXISTS$RAWBYTESTRING$$BOOLEAN' This goes on for a while until: -------------------------------- /home/pi/projects/SSRemoteServer/source/class_SSRemoteClientComm.pas(290,3) Hint: (5028) Local const "DLE" is not used /home/pi/projects/SSRemoteServer/source/class_SSRemoteClientComm.pas(283,3) Hint: (5023) Unit "IniFileFuncs" not used in class_SSRemoteClientComm /home/pi/projects/SSRemoteServer/source/SSRemoteServerLx.lpr(32,5) Hint: (5023) Unit "BaseUnix" not used in SSRemoteServerLx Now the compile is done an link starts -------------------------------------- (9022) Compiling resource /home/pi/projects/SSRemoteServer/source/lib/arm-linux/SSRemoteServerLx.or (9015) Linking /home/pi/projects/SSRemoteServer/source/SSRemoteServerLx /usr/bin/ld: //home/pi/projects/SSRemoteServer/source/lib/arm-linux/synautil.o: in function `SYNAUTIL_$$_finalize_implicit$': /home/pi/projects/SSRemoteServer/source/synautil.pas:(.text.n_synautil_$$_decodetimezone$ansistring$longint$$boolean+0x68): undefined reference to `SYSTEM_$$_POS$CHAR$RAWBYTESTRING$$LONGINT' /usr/bin/ld: /home/pi/projects/SSRemoteServer/source/synautil.pas:(.text.n_synautil_$$_decodetimezone$ansistring$longint$$boolean+0x7c): undefined reference to `SYSTEM_$$_POS$CHAR$RAWBYTESTRING$$LONGINT' /usr/bin/ld: /home/pi/projects/SSRemoteServer/source/synautil.pas:(.text.n_synautil_$$_decoderfcdatetime$ansistring$$tdatetime+0x1cc): undefined reference to `SYSTEM_$$_POS$CHAR$RAWBYTESTRING$$LONGINT' /usr/bin/ld: /home/pi/projects/SSRemoteServer/source/synautil.pas:(.text.n_synautil_$$_headerstolist$tstrings+0xb0): undefined reference to `SYSTEM_$$_POS$CHAR$RAWBYTESTRING$$LONGINT' /usr/bin/ld: /home/pi/projects/SSRemoteServer/source/synautil.pas:(.text.n_synautil_$$_listtoheaders$tstrings+0x98): undefined reference to `SYSTEM_$$_POS$CHAR$RAWBYTESTRING$$LONGINT' Until some 40-50 lines later: ----------------------------- /home/pi/projects/SSRemoteServer/source/SSRemoteServerLx.lpr(239,1) Error: (9013) Error while linking /home/pi/projects/SSRemoteServer/source/SSRemoteServerLx.lpr(239,1) Fatal: (10026) There were 1 errors compiling module, stopping Fatal: (1018) Compilation aborted Error: /home/pi/LazFpc/Laz_2.2.6/fpc/bin/arm-linux/ppcarm returned an error exitcode -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Sun Apr 16 10:58:18 2023 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 16 Apr 2023 10:58:18 +0200 Subject: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1) References: Message-ID: On Sat, 15 Apr 2023 13:41:57 +0200, Bo Berglund via lazarus wrote: >I have a project that builds fine on one RPi4 where I have installed Lazarus >2.2.6/Fpc 3.2.2 from sources. >This is a rather old device and I am trying to create a backup build unit to >migrate into >On this I have installed the same versions but using fpcupdeluxe for arm-linux. > >On the new unit some test projects work fine but the real target project seems >to have some problems. > >I have retrieved the same project from our Subversion server so the project >files are the same versions. >On the original RPi4 I can compile/build/debug just fine. > >But when I try compiling or building the project on the newer RPi4 I get the >output below in the messages log (the full log as copied from Lazarus attached). > >The problem seems to come from the Synapse package but this is installed via >OnlinePackageManeger on both systems... >What does this mean: > >undefined reference to `SYSTEM_$$_POS$CHAR$RAWBYTESTRING$$LONGINT' > >And what can I do? Is something missing in the fpcupdeluxe installation? >This has not happened to me before. So I gave up on this and decided to build a new development device using the same RPi4 but with a fresh SD-card with the latestr PiOS bullseye version. After setting up the pi itself and installing the build requirements for Lazarus/Fpc I could use fpcupdeluxe arm-linux to install the Lazarus 2.2.6/Fpc 3.2.2 combo and set it up using OLPM the way I always do. This includes installing Synapse40 as well as a number of other packages from my list, which I always use. And now the project as checked out via subversion builds fine and works as it should. It builds both on Windows10 and on RaspberryPi4. So the errors I had before must be related to the older operating system (buster) and some missing dependencies maybe. In any case I am good to go now. -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Sun Apr 16 11:15:04 2023 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 16 Apr 2023 11:15:04 +0200 Subject: [Lazarus] Is there a setting to include debug symbols when starting from Lazarus only? Message-ID: <1ben3i5crnaeeam1m1afphip4mbeju7nbj@4ax.com> Las 2.2.6/Fpc 3.2.2 I use the config item: Project/ProjectOptions/CompilerOptions/Debugging/GenerateInfoForTheDebugger in order to include symbols or not in the executable. Now I wonder if there is some way to configure this such that it works like this: - Use Run menu Build or Compile: no symbols should be included. - Click the green run arrow button then the symbols will be included. I know there is a button next to the green arrow that has a little red x and the hint: "Run without debugging" But I think this is just for the execution of the program without the debugger, right? Or is this working such that both green arrows will add the debug info but only the one without the x will actually *use* the debugger? I would like to be able to build the release without symbols from the Run menu but still use the green arrow to debug without having to change the setting above. Is this possible? -- Bo Berglund Developer in Sweden From lazarus at mfriebe.de Sun Apr 16 13:32:12 2023 From: lazarus at mfriebe.de (Martin Frb) Date: Sun, 16 Apr 2023 13:32:12 +0200 Subject: [Lazarus] Is there a setting to include debug symbols when starting from Lazarus only? In-Reply-To: <1ben3i5crnaeeam1m1afphip4mbeju7nbj@4ax.com> References: <1ben3i5crnaeeam1m1afphip4mbeju7nbj@4ax.com> Message-ID: <932739ff-cd3c-0fef-59f9-d925b4b28554@mfriebe.de> On 16/04/2023 11:15, Bo Berglund via lazarus wrote: > - Use Run menu Build or Compile: no symbols should be included. > - Click the green run arrow button then the symbols will be included. I think the closest you may get to this is build modes. But all and any button/key/menu always use the current mode. you have to change it via the drop down on the toolbutton. projectgroups may offer a direct "build mode xxx" From bo.berglund at gmail.com Sun Apr 16 14:00:24 2023 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 16 Apr 2023 14:00:24 +0200 Subject: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1) References: Message-ID: <59on3ideo8j7980td648r9bsm04joach0u@4ax.com> On Sun, 16 Apr 2023 10:58:18 +0200, Bo Berglund via lazarus wrote: >And now the project as checked out via subversion builds fine and works as it >should. It builds both on Windows10 and on RaspberryPi4. > >So the errors I had before must be related to the older operating system >(buster) and some missing dependencies maybe. Well, this was *not* the main reason it turns out... What I had done was to install the newest Lazarus/Fpc and opening the existing project in lazarus. When I use the Quick Compile it does apparently only compile the source files and finishes OK. But with Build/Compile it does the same but then it jumps into the linker without also compiling the dependencies, which are present in the lib directory but from the *earlier* versions... I ran into this also on the newly installed RPi4 with bullseye Linux and then realized what was going on because here I had two projects, one that had been built previously and one that hadn't and the latter worked just fine as reported above. Both were copied over from the old system SD-card... So what I did now was to delete the lib dir below the project dir and now the Build/Compile works just fine! It is recreated with fresh files. So to keep in mind: Make sure to remove any project subdirs autocreated by Lazarus/Fpc when migrating a project folder. -- Bo Berglund Developer in Sweden From jean.suzineau at wanadoo.fr Sun Apr 16 20:25:18 2023 From: jean.suzineau at wanadoo.fr (Jean SUZINEAU) Date: Sun, 16 Apr 2023 20:25:18 +0200 Subject: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1) In-Reply-To: <59on3ideo8j7980td648r9bsm04joach0u@4ax.com> References: <59on3ideo8j7980td648r9bsm04joach0u@4ax.com> Message-ID: <16857936-65cc-43e5-4ec1-eccef18002db@wanadoo.fr> Unfortunately my lazarus is installed in French , I don't have the exact label of the menu item in English, But usually for this kind of problem I use "Nettoyer et construire" in "Ex?cuter" menu. I imagine that in English it's something like "Clean and build" in "Run" menu. In this dialog you can tune what compiled files you want to delete in the various dependencies. From bo.berglund at gmail.com Mon Apr 17 08:15:54 2023 From: bo.berglund at gmail.com (Bo Berglund) Date: Mon, 17 Apr 2023 08:15:54 +0200 Subject: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1) References: <59on3ideo8j7980td648r9bsm04joach0u@4ax.com> <16857936-65cc-43e5-4ec1-eccef18002db@wanadoo.fr> Message-ID: On Sun, 16 Apr 2023 20:25:18 +0200, Jean SUZINEAU via lazarus wrote: >Unfortunately my lazarus is installed in French , I don't have the exact >label of the menu item in English, > >But usually for this kind of problem I use "Nettoyer et construire" in >"Ex?cuter" menu. > >I imagine that in English it's something like "Clean and build" in "Run" >menu. > >In this dialog you can tune what compiled files you want to delete in >the various dependencies. Right you are! :-) I should have looked further down in the Run menu... The English name is: Clean up and Build That should have done it in the first place... You never stop learning! -- Bo Berglund Developer in Sweden From giuliano.colla at fastwebnet.it Mon Apr 17 10:11:28 2023 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Mon, 17 Apr 2023 10:11:28 +0200 Subject: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1) In-Reply-To: References: <59on3ideo8j7980td648r9bsm04joach0u@4ax.com> <16857936-65cc-43e5-4ec1-eccef18002db@wanadoo.fr> Message-ID: <8262df63-9605-04d6-9bcd-f84920dc01c0@fastwebnet.it> Il 17/04/2023 08:15, Bo Berglund via lazarus ha scritto: > You never stop learning! Another thing I have learned with experience, is that sometimes the cleanup isn't perfect and leaves some dangling ppu which creates a problem like the one you had. It occurred to me when attempting to rebuild Lazarus, and I was getting an unexpected "undefined reference". I was trying to build a normal IDE, so I tried to build a "debug IDE" instead. With different compilation flags it was forced to rebuild everything, and it worked fine. Then I tried again a "normal IDE", and this time it went OK. Giuliano -- Do not do to others as you would have them do to you.They might have different tastes. From nc-gaertnma at netcologne.de Mon Apr 17 10:32:51 2023 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 17 Apr 2023 10:32:51 +0200 Subject: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1) In-Reply-To: <8262df63-9605-04d6-9bcd-f84920dc01c0@fastwebnet.it> References: <59on3ideo8j7980td648r9bsm04joach0u@4ax.com> <16857936-65cc-43e5-4ec1-eccef18002db@wanadoo.fr> <8262df63-9605-04d6-9bcd-f84920dc01c0@fastwebnet.it> Message-ID: <20230417103251.0f521fe6@limapholos> On Mon, 17 Apr 2023 10:11:28 +0200 Giuliano Colla via lazarus wrote: > Il 17/04/2023 08:15, Bo Berglund via lazarus ha scritto: > > > You never stop learning! > > Another thing I have learned with experience, is that sometimes the > cleanup isn't perfect and leaves some dangling ppu which creates a > problem like the one you had. It occurred to me when attempting to > rebuild Lazarus, and I was getting an unexpected "undefined > reference". Can happen when some unit is moved to another package. > I was trying to build a normal IDE, so I tried to build a > "debug IDE" instead. With different compilation flags it was forced > to rebuild everything, and it worked fine. Then I tried again a > "normal IDE", and this time it went OK. That's why there is "Clean all" radiobutton on the configure build lazarus dialog. It building fails, try that. Mattias From giuliano.colla at fastwebnet.it Tue Apr 18 12:25:09 2023 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Tue, 18 Apr 2023 12:25:09 +0200 Subject: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1) In-Reply-To: <20230417103251.0f521fe6@limapholos> References: <59on3ideo8j7980td648r9bsm04joach0u@4ax.com> <16857936-65cc-43e5-4ec1-eccef18002db@wanadoo.fr> <8262df63-9605-04d6-9bcd-f84920dc01c0@fastwebnet.it> <20230417103251.0f521fe6@limapholos> Message-ID: 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mkdkilikbiabfneg.png Type: image/png Size: 36091 bytes Desc: not available URL: From jmlandmesser at gmx.de Tue Apr 18 12:37:11 2023 From: jmlandmesser at gmx.de (John Landmesser) Date: Tue, 18 Apr 2023 12:37:11 +0200 Subject: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1) In-Reply-To: References: <59on3ideo8j7980td648r9bsm04joach0u@4ax.com> <16857936-65cc-43e5-4ec1-eccef18002db@wanadoo.fr> <8262df63-9605-04d6-9bcd-f84920dc01c0@fastwebnet.it> <20230417103251.0f521fe6@limapholos> Message-ID: <7aa7ed2c-f4c1-9653-1f2f-a89a50c90fd5@gmx.de> 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? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mkdkilikbiabfneg.png Type: image/png Size: 36091 bytes Desc: not available URL: From luca at wetron.es Tue Apr 18 15:41:42 2023 From: luca at wetron.es (Luca Olivetti) Date: Tue, 18 Apr 2023 15:41:42 +0200 Subject: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1) In-Reply-To: References: <59on3ideo8j7980td648r9bsm04joach0u@4ax.com> <16857936-65cc-43e5-4ec1-eccef18002db@wanadoo.fr> <8262df63-9605-04d6-9bcd-f84920dc01c0@fastwebnet.it> <20230417103251.0f521fe6@limapholos> Message-ID: <4f7e8768-6c57-e2bd-23a1-766ac22bc11b@wetron.es> El 18/4/23 a les 12:25, Giuliano Colla via lazarus ha escrit: > I did look in vain for that radiobutton. The only one available (Lazarus > 2.2.6) is "clean common files": Strange that it's a only checkbox and not a radiobutton. In 2.2.6 (win32/linux qt5) I see a radiobutton with the options "Automatically", "Clean common files", "Clean all", then there's a checkbox "Switch after building to automatically". Maybe it's a problem with gtk2? Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From luca at wetron.es Tue Apr 18 15:47:52 2023 From: luca at wetron.es (Luca Olivetti) Date: Tue, 18 Apr 2023 15:47:52 +0200 Subject: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1) In-Reply-To: <4f7e8768-6c57-e2bd-23a1-766ac22bc11b@wetron.es> References: <59on3ideo8j7980td648r9bsm04joach0u@4ax.com> <16857936-65cc-43e5-4ec1-eccef18002db@wanadoo.fr> <8262df63-9605-04d6-9bcd-f84920dc01c0@fastwebnet.it> <20230417103251.0f521fe6@limapholos> <4f7e8768-6c57-e2bd-23a1-766ac22bc11b@wetron.es> Message-ID: El 18/4/23 a les 15:41, Luca Olivetti via lazarus ha escrit: > El 18/4/23 a les 12:25, Giuliano Colla via lazarus ha escrit: > >> I did look in vain for that radiobutton. The only one available >> (Lazarus 2.2.6) is "clean common files": > > Strange that it's a only checkbox and not a radiobutton. > In 2.2.6 (win32/linux qt5) I see a radiobutton with the options > "Automatically", "Clean common files", "Clean all", then there's a > checkbox "Switch after building to automatically". > Maybe it's a problem with gtk2? Nope, I rebuild the ide with gtk2 and the radiobutton is still there. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From giuliano.colla at fastwebnet.it Tue Apr 18 20:19:23 2023 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Tue, 18 Apr 2023 20:19:23 +0200 Subject: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1) In-Reply-To: <20230418123338.373f829f@limapholos> References: <59on3ideo8j7980td648r9bsm04joach0u@4ax.com> <16857936-65cc-43e5-4ec1-eccef18002db@wanadoo.fr> <8262df63-9605-04d6-9bcd-f84920dc01c0@fastwebnet.it> <20230417103251.0f521fe6@limapholos> <20230418123338.373f829f@limapholos> Message-ID: Il 18/04/2023 12:33, Mattias Gaertner ha scritto: > Tools / Configure Build Lazarus / page Build / groupbox Clean up / > Clean all > > https://wiki.lazarus.freepascal.org/IDE_Window:_Configure_Build_Lazarus#Buttons > > Mattias I've found why the radio buttons aren't visible anymore in my setup. My installation is standard for Linux: lazarus in /usr/lib64 owned by root, build occurs in my local .lazarus folder. But there's some mix-up between source directory (read-only) and target directory (writable) In buildlazdialog.pas you find: > procedure TConfigureBuildLazarusDlg.ShowHideCleanup(aShow: Boolean); > // When target directory is read-only, hide Radiobuttons and show a > single checkbox. begin CleanAutoRadioButton.Visible:=aShow; > CleanCommonRadioButton.Visible:=aShow; > CleanAllRadioButton.Visible:=aShow; CleanOnceCheckBox.Visible:=aShow; > CleanCommonCheckBox.Visible:=not aShow; end; I just changed the ownership of /usr/lib64/lazarus, from root to me and the radiobuttons do show. The same mix-up occurs with the QT5 directory. When attempting to build a QT5 version it complains that it cannot create the QT5 directory in the /usr/lib64/etc directory, when actually it needs only to build in the local .lazarus directory. I'll investigate further. Giuliano -- Do not do to others as you would have them do to you.They might have different tastes. From bo.berglund at gmail.com Wed Apr 19 18:24:21 2023 From: bo.berglund at gmail.com (Bo Berglund) Date: Wed, 19 Apr 2023 18:24:21 +0200 Subject: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1) References: <59on3ideo8j7980td648r9bsm04joach0u@4ax.com> <16857936-65cc-43e5-4ec1-eccef18002db@wanadoo.fr> <8262df63-9605-04d6-9bcd-f84920dc01c0@fastwebnet.it> <20230417103251.0f521fe6@limapholos> Message-ID: On Mon, 17 Apr 2023 10:32:51 +0200, Mattias Gaertner via lazarus wrote: >On Mon, 17 Apr 2023 10:11:28 +0200 >Giuliano Colla via lazarus wrote: > >> Il 17/04/2023 08:15, Bo Berglund via lazarus ha scritto: >> >> > You never stop learning! >> >> Another thing I have learned with experience, is that sometimes the >> cleanup isn't perfect and leaves some dangling ppu which creates a >> problem like the one you had. It occurred to me when attempting to >> rebuild Lazarus, and I was getting an unexpected "undefined >> reference". > >Can happen when some unit is moved to another package. > >> I was trying to build a normal IDE, so I tried to build a >> "debug IDE" instead. With different compilation flags it was forced >> to rebuild everything, and it worked fine. Then I tried again a >> "normal IDE", and this time it went OK. > >That's why there is "Clean all" radiobutton on the configure build >lazarus dialog. It building fails, try that. > Please can you describe where exactly I can find this on Lazarus 2.2.6? I don't know where I find "Configure build", is it a project option or a global settings (Below menu Project or Tools)? If I look at the Run menu I see very far down "Configure Build+Run File...", but that does not sound like what you are discussing, right? -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Wed Apr 19 18:29:27 2023 From: bo.berglund at gmail.com (Bo Berglund) Date: Wed, 19 Apr 2023 18:29:27 +0200 Subject: [Lazarus] Code editor column mode does not work... Message-ID: <2e504ilpo2a9ui9hn4ea9lqc9urnoao3r0@4ax.com> I am coding on a headless RaspberryPi4B via RealVNC and it works rather well from my Windows 10 workstation. But there is one item I have yet to figure out: How can I enable column selection with the mouse? If I use the Alt key and click where I want to start the selection then when I move the mouse the whole editor window moves instead of creating a vertical selection... Is there someone here who has done this and can share the solution? -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Wed Apr 19 18:34:26 2023 From: bo.berglund at gmail.com (Bo Berglund) Date: Wed, 19 Apr 2023 18:34:26 +0200 Subject: [Lazarus] Is there a setting to include debug symbols when starting from Lazarus only? References: <1ben3i5crnaeeam1m1afphip4mbeju7nbj@4ax.com> <932739ff-cd3c-0fef-59f9-d925b4b28554@mfriebe.de> Message-ID: On Sun, 16 Apr 2023 13:32:12 +0200, Martin Frb via lazarus wrote: > >On 16/04/2023 11:15, Bo Berglund via lazarus wrote: >> - Use Run menu Build or Compile: no symbols should be included. >> - Click the green run arrow button then the symbols will be included. > > >I think the closest you may get to this is build modes. > > >But all and any button/key/menu always use the current mode. you have to >change it via the drop down on the toolbutton. > > >projectgroups may offer a direct "build mode xxx" Fixed it by creating two build modes (Debug and Release) on suggestion from Lazarus itself in the Release dialog from Project Options. Result: When I use Release the symbols are not added and when using Debug, then the symbols are added *and* the executable name is changed to originalname.dbg. This is of course on Linux, what happens on Windows I don't know. originalname.exe.dbg would not work of course... -- Bo Berglund Developer in Sweden From lazarus at mfriebe.de Wed Apr 19 19:24:45 2023 From: lazarus at mfriebe.de (Martin Frb) Date: Wed, 19 Apr 2023 19:24:45 +0200 Subject: [Lazarus] Code editor column mode does not work... In-Reply-To: <2e504ilpo2a9ui9hn4ea9lqc9urnoao3r0@4ax.com> References: <2e504ilpo2a9ui9hn4ea9lqc9urnoao3r0@4ax.com> Message-ID: On 19/04/2023 18:29, Bo Berglund via lazarus wrote: > How can I enable column selection with the mouse? > > If I use the Alt key and click where I want to start the selection then when I > move the mouse the whole editor window moves instead of creating a vertical > selection... > > Is there someone here who has done this and can share the solution? Sounds like the OS / desktop manager grabs the mouse first. 2 possibilities. 1) change the OS config (if possible / I don't know) 2) Tools > Options > Editor > Mouse: assign another combo for the column selection Either diff modifier keys; or diff button. From fpc at pascalprogramming.org Wed Apr 19 21:50:07 2023 From: fpc at pascalprogramming.org (Marco van de Voort) Date: Wed, 19 Apr 2023 21:50:07 +0200 Subject: [Lazarus] Code editor column mode does not work... In-Reply-To: References: <2e504ilpo2a9ui9hn4ea9lqc9urnoao3r0@4ax.com> Message-ID: <0806b6b9-fd5b-9f45-ef36-77bf3ff8396d@pascalprogramming.org> On 19-4-2023 19:24, Martin Frb via lazarus wrote: > > Sounds like the OS / desktop manager grabs the mouse first. > > 2 possibilities. > > 1) change the OS config (if possible / I don't know) > > 2) Tools > Options > Editor > Mouse: assign another combo for the > column selection > Either diff modifier keys; or diff button. 3) use kbd block selection (alt-shift cursor keys) From giuliano.colla at fastwebnet.it Thu Apr 20 00:10:07 2023 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Thu, 20 Apr 2023 00:10:07 +0200 Subject: [Lazarus] Strange linker messages "undefined reference" when building on RPi4 - CompileLog_2022-04-15.log (0/1) In-Reply-To: References: <59on3ideo8j7980td648r9bsm04joach0u@4ax.com> <16857936-65cc-43e5-4ec1-eccef18002db@wanadoo.fr> <8262df63-9605-04d6-9bcd-f84920dc01c0@fastwebnet.it> <20230417103251.0f521fe6@limapholos> Message-ID: Il 19/04/2023 18:24, Bo Berglund via lazarus ha scritto: > On Mon, 17 Apr 2023 10:32:51 +0200, Mattias Gaertner via lazarus > wrote: > >> On Mon, 17 Apr 2023 10:11:28 +0200 >> Giuliano Colla via lazarus wrote: >> >>> Il 17/04/2023 08:15, Bo Berglund via lazarus ha scritto: >>> >>>> You never stop learning! >>> Another thing I have learned with experience, is that sometimes the >>> cleanup isn't perfect and leaves some dangling ppu which creates a >>> problem like the one you had. It occurred to me when attempting to >>> rebuild Lazarus, and I was getting an unexpected "undefined >>> reference". >> Can happen when some unit is moved to another package. >> >>> I was trying to build a normal IDE, so I tried to build a >>> "debug IDE" instead. With different compilation flags it was forced >>> to rebuild everything, and it worked fine. Then I tried again a >>> "normal IDE", and this time it went OK. >> That's why there is "Clean all" radiobutton on the configure build >> lazarus dialog. It building fails, try that. >> >> > Please can you describe where exactly I can find this on Lazarus 2.2.6? > > I don't know where I find "Configure build", is it a project option or a global > settings (Below menu Project or Tools)? > > If I look at the Run menu I see very far down "Configure Build+Run File...", but > that does not sound like what you are discussing, right? > > It is under Tools. The last two line are about rebuilding Lazarus and changing the build options (different widgetset, different modes, etc.) The Run menu contains just options for the current project. No relation with rebuilding Lazarus. Giuliano -- Do not do to others as you would have them do to you.They might have different tastes. From giuliano.colla at fastwebnet.it Thu Apr 20 00:28:54 2023 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Thu, 20 Apr 2023 00:28:54 +0200 Subject: [Lazarus] Is there a setting to include debug symbols when starting from Lazarus only? In-Reply-To: References: <1ben3i5crnaeeam1m1afphip4mbeju7nbj@4ax.com> <932739ff-cd3c-0fef-59f9-d925b4b28554@mfriebe.de> Message-ID: <5794e683-5d87-c1b1-cafb-a68392058646@fastwebnet.it> Il 19/04/2023 18:34, Bo Berglund via lazarus ha scritto: > Result: > When I use Release the symbols are not added and when using Debug, then the > symbols are added*and* the executable name is changed to originalname.dbg. > This is of course on Linux, what happens on Windows I don't know. > originalname.exe.dbg would not work of course... No, you have misunderstood. The executable name is unchanged. Originalname.dbg is *added*. It contains only the debug symbols. If you check you'll see that both originalname and originalname.dbg have exactly the same timestamp. You have an option in Project->Options->Debugging, named "Use external debug symbols file". If checked you get two files: originalname and originalname.dbg. If you uncheck it you get only originalname, but much larger. With the external debug symbols file you may, if you want, deploy the debug version by releasing just originalname. It will be larger and less optimized than a release version, but it will be identical to the one you have debugged. The choice is yours. Giuliano -- Do not do to others as you would have them do to you.They might have different tastes. -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl-michael.schindler at physik.uni-halle.de Thu Apr 20 10:47:33 2023 From: karl-michael.schindler at physik.uni-halle.de (Karl-Michael Schindler) Date: Thu, 20 Apr 2023 10:47:33 +0200 Subject: [Lazarus] Color Palette of Timage Message-ID: Hi. I have an 8 bit grey value image without color palette in memory from a camera, which I want to display in a TImage, whereby, the color white has to be converted to red. I expected to do this by adding to the RawImage of TImage a color palette of size 256 and filling the palette with values to RGB values for grey, except the one for white, which will receive red. I tried different things, reading docs and so on, but did not manage to get this done. Could it be that palettes for not fully implemented or am I misreading the docs? Can someone give me some directions or is there an example how to modify pixels of an image by changing values in the color palette or exchanging the color palette. A second task is to replace a 8 or 16 bit grey scale palette by a specific color palette. I know exactly how the rgb values of the palette should be. I manage to do this with an TFPMemoryImage from fpimage and create png images with a TFPCustomImageWriter from fpwritepng, but failed to do the same with an TImage. I tried to assign the TFPMemoryImage to TImage, but that did not work either. Greetings - Karl-Michael Schindler. From lazarus2 at de-brouwerij.be Thu Apr 20 14:33:30 2023 From: lazarus2 at de-brouwerij.be (Koenraad Lelong) Date: Thu, 20 Apr 2023 14:33:30 +0200 Subject: [Lazarus] TLS connection to MySQL Message-ID: <1bdc7d7c-1231-a0de-0349-c40c0ca45d80@de-brouwerij.be> Hi, I'm updating an application that uses TSQLConnector to connect to MySQL 5.7. The MySQL server (5.7.42) will be restricted to use only TSLv1.2 (or higher). Is this possible with TSQLConnector ? TLSv1.1 works without configuring anything. With my test-server, it fails to connect when this is set to allow only TLSv1.2. The application will run on Windows 11 if that matters. My libmysql.dll is version 5.7.42.0, in the same directory as the application. Thanks, Koenraad From michael at freepascal.org Thu Apr 20 14:43:01 2023 From: michael at freepascal.org (Michael Van Canneyt) Date: Thu, 20 Apr 2023 14:43:01 +0200 (CEST) Subject: [Lazarus] TLS connection to MySQL In-Reply-To: <1bdc7d7c-1231-a0de-0349-c40c0ca45d80@de-brouwerij.be> References: <1bdc7d7c-1231-a0de-0349-c40c0ca45d80@de-brouwerij.be> Message-ID: On Thu, 20 Apr 2023, Koenraad Lelong via lazarus wrote: > Hi, > I'm updating an application that uses TSQLConnector to connect to MySQL 5.7. > The MySQL server (5.7.42) will be restricted to use only TSLv1.2 (or > higher). > Is this possible with TSQLConnector ? > TLSv1.1 works without configuring anything. > With my test-server, it fails to connect when this is set to allow only > TLSv1.2. > The application will run on Windows 11 if that matters. > My libmysql.dll is version 5.7.42.0, in the same directory as the > application. TSQLConnector will only pass on any connection parameters you set up to the mysql layer. If it fails for a particular TLS version, then I think it is more likely that the libmysql.dll is too old (or the openssl lib that it uses) and does not properly support TLSv1.2. Michael. From lazarus2 at de-brouwerij.be Thu Apr 20 15:07:55 2023 From: lazarus2 at de-brouwerij.be (Koenraad Lelong) Date: Thu, 20 Apr 2023 15:07:55 +0200 Subject: [Lazarus] TLS connection to MySQL In-Reply-To: References: <1bdc7d7c-1231-a0de-0349-c40c0ca45d80@de-brouwerij.be> Message-ID: Op 20/04/2023 om 14:43 schreef Michael Van Canneyt via lazarus: > TSQLConnector will only pass on any connection parameters you set up to the > mysql layer. So I can give parameters for the connection. Are those documented ? Like I said, to use TLSv1.1 I don't have to do anything. > > If it fails for a particular TLS version, then I think it is more likely > that the libmysql.dll is too old (or the openssl lib that it uses) and > does not properly support TLSv1.2. That is possible, but I just updated the server to the latest version 5.7.42, and I took the libmysql.dll from that. Is there a way to check the used/needed openssl version ? I'm using MySQL workbench, and that connects OK via TLSv1.2. So I copied it's libssl-1_1-x64.dll to the app-directory. No progress. Koenraad From lazarus2 at de-brouwerij.be Thu Apr 20 15:27:52 2023 From: lazarus2 at de-brouwerij.be (Koenraad Lelong) Date: Thu, 20 Apr 2023 15:27:52 +0200 Subject: [Lazarus] TLS connection to MySQL In-Reply-To: References: <1bdc7d7c-1231-a0de-0349-c40c0ca45d80@de-brouwerij.be> Message-ID: <0b71d03d-2e65-0b75-3cee-3421f6a20199@de-brouwerij.be> Please ignore. PEBKAC. I copied the dll to the wrong directory. Thanks anyway. Op 20/04/2023 om 15:07 schreef Koenraad Lelong via lazarus: > > Op 20/04/2023 om 14:43 schreef Michael Van Canneyt via lazarus: >> TSQLConnector will only pass on any connection parameters you set up >> to the >> mysql layer. > So I can give parameters for the connection. Are those documented ? > Like I said, to use TLSv1.1 I don't have to do anything. >> >> If it fails for a particular TLS version, then I think it is more >> likely that the libmysql.dll is too old (or the openssl lib that it >> uses) and does not properly support TLSv1.2. > That is possible, but I just updated the server to the latest version > 5.7.42, and I took the libmysql.dll from that. > Is there a way to check the used/needed openssl version ? > > I'm using MySQL workbench, and that connects OK via TLSv1.2. So I copied > it's libssl-1_1-x64.dll to the app-directory. No progress. > > Koenraad From lazarus2 at de-brouwerij.be Thu Apr 20 16:47:32 2023 From: lazarus2 at de-brouwerij.be (Koenraad Lelong) Date: Thu, 20 Apr 2023 16:47:32 +0200 Subject: [Lazarus] TSQLConnector for Mysql using certificates Message-ID: <30c7be9c-8d71-8bd7-7d93-206b6f2b7ae0@de-brouwerij.be> Hi, Now I have TLSv1.2 working I would like to use a certificate to verify the server. Using the mysql-command I have to use --ssl-mode=VERIFY_CA or --ssl-mode=VERIFY_IDENTITY and --ssl-ca=ca.pem. How do I set these in TSQLConnector ? I tried setting the params of TSQLconnector, but that seems to do nothing. I tried putting a wrong parameter in it, but nothing happens. Koenraad. From bo.berglund at gmail.com Sun Apr 23 13:09:20 2023 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 23 Apr 2023 13:09:20 +0200 Subject: [Lazarus] Code editor column mode does not work... References: <2e504ilpo2a9ui9hn4ea9lqc9urnoao3r0@4ax.com> <0806b6b9-fd5b-9f45-ef36-77bf3ff8396d@pascalprogramming.org> Message-ID: <8d4a4i1rl8enrahllj9r2vf4us8h200n5d@4ax.com> On Wed, 19 Apr 2023 21:50:07 +0200, Marco van de Voort via lazarus wrote: > >On 19-4-2023 19:24, Martin Frb via lazarus wrote: >> >> Sounds like the OS / desktop manager grabs the mouse first. >> >> 2 possibilities. >> >> 1) change the OS config (if possible / I don't know) >> >> 2) Tools > Options > Editor > Mouse: assign another combo for the >> column selection >> Either diff modifier keys; or diff button. > > >3) use kbd block selection (alt-shift cursor keys) Thanks, Alt-Shift works to get me the column selection! :-) -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Sun Apr 23 19:39:14 2023 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 23 Apr 2023 19:39:14 +0200 Subject: [Lazarus] Cannot use bookmarks in code window - why? Message-ID: <3eqa4ilrd4cqct2uph5aqmhpmq1okramts@4ax.com> I have started a new project in Lazarus 2.2.6/Fpc3.2.2 on a Linux machine (RaspberryPi4). I installed Laz/Fpc using fpcupdeluxe if that matters. Now I have gotten to a project size that really needs the ability to set/clear/jumpto bookmarks. But I have found no way to set a bookmark here! I am pretty sure they were there some years ago when I last worked on a sizable project with an earlier version of Lazarus on RPi. My environment is: Host: Linux on RaspberryPi4 with the latest version of PiOS (bullseye) VNC server is enabled on the RPi4 for desktop access. Desktop: The Rpi4 is headless (i.e. no monitor) and I access it via RealVNC from my Windows 10 workstation. This works well mostly. How can I: - Set a bookmark - Clear a bookmark - Jump to a bookmark I have looked at the same version of Lazarus on my Windows workstation and there when I right-click the gutter to the left of the code there is a popup menu with "Goto Bookmark" and "Toggle Bookmark" and when I click one of these a secondary menu pops up with further alternative of where to go etc. But on the RPi4 (via VNC) there is *nothing* happening if I click on any of the two bookmark related lines in the first pop-up menu.... No secondary menu shows up at all... Is there a setting somewhere, which I have missed, to enable bookmarks or such? -- Bo Berglund Developer in Sweden From lazarus at mfriebe.de Sun Apr 23 19:55:48 2023 From: lazarus at mfriebe.de (Martin Frb) Date: Sun, 23 Apr 2023 19:55:48 +0200 Subject: [Lazarus] Cannot use bookmarks in code window - why? In-Reply-To: <3eqa4ilrd4cqct2uph5aqmhpmq1okramts@4ax.com> References: <3eqa4ilrd4cqct2uph5aqmhpmq1okramts@4ax.com> Message-ID: <56d01ade-c52b-914d-17ce-d4ede3e2bc94@mfriebe.de> On 23/04/2023 19:39, Bo Berglund via lazarus wrote: > I have started a new project in Lazarus 2.2.6/Fpc3.2.2 on a Linux machine ... > I have looked at the same version of Lazarus on my Windows workstation and there > when I right-click the gutter to the left of the code there is a popup menu with > "Goto Bookmark" and "Toggle Bookmark" and when I click one of these a secondary > menu pops up with further alternative of where to go etc. > > But on the RPi4 (via VNC) there is *nothing* happening if I click on any of the > two bookmark related lines in the first pop-up menu.... > No secondary menu shows up at all... > There was an issue that has been fixed for Lazarus 2.4 (i.e. in 2.3). It is possible that the fix wasn't backported for some reason. Though currently we have reports? that there may be individual cases were the problem persists in 2.3. However despite lots of testing, this has not been reproducible. So the status is unknown. You can set bookmarks using ?? shift-ctrl-1? .. 0 and go to them ?? ctrl-1? .. 0 Assuming your OS/Desktop has no shortcuts on those combos. If there is a conflict, you can change the Desktop, or Lazarus. From bo.berglund at gmail.com Sun Apr 23 20:28:49 2023 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 23 Apr 2023 20:28:49 +0200 Subject: [Lazarus] Cannot use bookmarks in code window - why? References: <3eqa4ilrd4cqct2uph5aqmhpmq1okramts@4ax.com> <56d01ade-c52b-914d-17ce-d4ede3e2bc94@mfriebe.de> Message-ID: On Sun, 23 Apr 2023 19:55:48 +0200, Martin Frb via lazarus wrote: >On 23/04/2023 19:39, Bo Berglund via lazarus wrote: >> I have started a new project in Lazarus 2.2.6/Fpc3.2.2 on a Linux machine >... >> I have looked at the same version of Lazarus on my Windows workstation and there >> when I right-click the gutter to the left of the code there is a popup menu with >> "Goto Bookmark" and "Toggle Bookmark" and when I click one of these a secondary >> menu pops up with further alternative of where to go etc. >> >> But on the RPi4 (via VNC) there is *nothing* happening if I click on any of the >> two bookmark related lines in the first pop-up menu.... >> No secondary menu shows up at all... >> > > >There was an issue that has been fixed for Lazarus 2.4 (i.e. in 2.3). >It is possible that the fix wasn't backported for some reason. > >Though currently we have reports? that there may be individual cases >were the problem persists in 2.3. >However despite lots of testing, this has not been reproducible. So the >status is unknown. > >You can set bookmarks using > ?? shift-ctrl-1? .. 0 >and go to them > ?? ctrl-1? .. 0 > >Assuming your OS/Desktop has no shortcuts on those combos. >If there is a conflict, you can change the Desktop, or Lazarus. Thanks, that worked fine! Any timetable for Lazarus 2.4.0 release? -- Bo Berglund Developer in Sweden From steveg at nevets.com.au Mon Apr 24 09:13:11 2023 From: steveg at nevets.com.au (Steve Gatenby) Date: Mon, 24 Apr 2023 17:13:11 +1000 Subject: [Lazarus] Compiler default naming conventions Message-ID: Anybody know how to set project options to force OS conventions on libraries - .dll (windows) / .so(linux) WITHOUT changing case :) My current settings handle extensions ok, but lowercases filenames. Thanks - SteveG From giuliano.colla at fastwebnet.it Mon Apr 24 19:26:09 2023 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Mon, 24 Apr 2023 19:26:09 +0200 Subject: [Lazarus] Cannot use bookmarks in code window - why? In-Reply-To: References: <3eqa4ilrd4cqct2uph5aqmhpmq1okramts@4ax.com> <56d01ade-c52b-914d-17ce-d4ede3e2bc94@mfriebe.de> Message-ID: <646f53c1-e940-5ff2-40cf-4bdbd0d862b3@fastwebnet.it> Il 23/04/23 20:28, Bo Berglund via lazarus ha scritto: > Thanks, that worked fine! > > Any timetable for Lazarus 2.4.0 release? If you are impatient, you can get (via fpcupdeluxe or via git repository) the trunk version of Lazarus, where the problem has been fixed, and you'll get the popup menu you were used to! From lazarus2 at de-brouwerij.be Mon Apr 24 20:13:35 2023 From: lazarus2 at de-brouwerij.be (Koenraad Lelong) Date: Mon, 24 Apr 2023 20:13:35 +0200 Subject: [Lazarus] TSQLConnector for MySQL non-standard port Message-ID: <997dea44-9b1e-7f54-885b-e43162057556@de-brouwerij.be> Hi, I would like to use a non-standard port for my MySQL-connection. Is this possible ? If so, how ? Standard port is 3306. I tried to add my non-standard port to the hostname (:), but that does not work: 'TMySQL57Connection : Server connect failed.' Sniffing the network on that port gives nothing, so there is no attempt to connect. MySQLWorkbench with the same parameters works OK, so there is a server listening on that port. Koenraad. From lacak at zoznam.sk Tue Apr 25 07:17:05 2023 From: lacak at zoznam.sk (LacaK) Date: Tue, 25 Apr 2023 07:17:05 +0200 Subject: [Lazarus] TSQLConnector for MySQL non-standard port In-Reply-To: <997dea44-9b1e-7f54-885b-e43162057556@de-brouwerij.be> References: <997dea44-9b1e-7f54-885b-e43162057556@de-brouwerij.be> Message-ID: <2f4b28f3-2e13-8d77-c23c-c6ca41d9f3f2@zoznam.sk> Hello, try use "Params" and put there "Port=nnnn" -Laco. > Hi, > > I would like to use a non-standard port for my MySQL-connection. Is > this possible ? If so, how ? > Standard port is 3306. > I tried to add my non-standard port to the hostname > (:), but that does not work: 'TMySQL57Connection > : Server connect failed.' > Sniffing the network on that port gives nothing, so there is no > attempt to connect. > MySQLWorkbench with the same parameters works OK, so there is a server > listening on that port. > > Koenraad. From michael at freepascal.org Tue Apr 25 08:17:03 2023 From: michael at freepascal.org (Michael Van Canneyt) Date: Tue, 25 Apr 2023 08:17:03 +0200 (CEST) Subject: [Lazarus] TSQLConnector for MySQL non-standard port In-Reply-To: <997dea44-9b1e-7f54-885b-e43162057556@de-brouwerij.be> References: <997dea44-9b1e-7f54-885b-e43162057556@de-brouwerij.be> Message-ID: On Mon, 24 Apr 2023, Koenraad Lelong via lazarus wrote: > Hi, > > I would like to use a non-standard port for my MySQL-connection. Is this > possible ? If so, how ? > Standard port is 3306. > I tried to add my non-standard port to the hostname > (:), but that does not work: 'TMySQL57Connection : > Server connect failed.' > Sniffing the network on that port gives nothing, so there is no attempt to > connect. > MySQLWorkbench with the same parameters works OK, so there is a server > listening on that port. Try this: Params.Values['Port']:='3306' Michael. From lazarus2 at de-brouwerij.be Tue Apr 25 08:31:52 2023 From: lazarus2 at de-brouwerij.be (Koenraad Lelong) Date: Tue, 25 Apr 2023 08:31:52 +0200 Subject: [Lazarus] TSQLConnector for MySQL non-standard port (solved) In-Reply-To: References: <997dea44-9b1e-7f54-885b-e43162057556@de-brouwerij.be> Message-ID: Thanks, That works. Koenraad Op 25/04/2023 om 08:17 schreef Michael Van Canneyt via lazarus: > > > On Mon, 24 Apr 2023, Koenraad Lelong via lazarus wrote: > >> Hi, >> >> I would like to use a non-standard port for my MySQL-connection. Is >> this possible ? If so, how ? >> Standard port is 3306. >> I tried to add my non-standard port to the hostname >> (:), but that does not work: 'TMySQL57Connection >> : Server connect failed.' >> Sniffing the network on that port gives nothing, so there is no >> attempt to connect. >> MySQLWorkbench with the same parameters works OK, so there is a server >> listening on that port. > > Try this: > > Params.Values['Port']:='3306' > > Michael.