Using old LCL lazarus / 3-General ---------------------------------------------------------------------- dodi · 2023-02-06 16:04 I've just found a very old LCL (0.8.5.2) that I would like to use with a current Lazarus IDE. Last installed is IDE 2.0.12. How can I swap the old LCL for the new one in the IDE? For the curious: I'm searching for a component base without AnchorDocking. ---------------------------------------------------------------------- Thaddy · 2023-02-06 18:00 Old versions of any software is not maintained. Use the old software. ---------------------------------------------------------------------- Martin_fr · 2023-02-06 19:37 Quote from: dodi on February 06, 2023, 05:04:13 pmFor the curious: I'm searching for a component base without AnchorDocking. Just don't use it? Don't install it. Don't add it to any project. If needs must, delete the folder... Any (such) old LCL will not be able to read forms (lfm files) by any newer IDE. Also, it will not compile with current FPC. So you would need an ages old fpc. And likely tons of other issues. Probably not working with current versions of Windows or Linux. ---------------------------------------------------------------------- Thaddy · 2023-02-06 19:40 Indeed. ---------------------------------------------------------------------- KodeZwerg · 2023-02-06 19:48 Quote from: Thaddy on February 06, 2023, 07:00:03 pmUse the old software.Better not do, Quote from: Martin_fr on February 06, 2023, 08:37:23 pmJust don't use itand listen there! ---------------------------------------------------------------------- dodi · 2023-02-06 22:56 Quote from: Martin_fr on February 06, 2023, 08:37:23 pmAny (such) old LCL will not be able to read forms (lfm files) by any newer IDE. Also, it will not compile with current FPC. We'll see. Unfortunately I don't remember and cannot find how to install the entire Lazarus/fpc version. Can somebody help with *.rpm files based distribution? Otherwise for a first attack can I simply replace the newer LCL source folder by the old one? Or where can I change the Lazarus source folder? ---------------------------------------------------------------------- dbannon · 2023-02-06 23:11 Hi Dodi, did you read the comments above ?  Mixing old with new will lead certainly fail !  Using just the old ones, that is at least the old FPC, the old Lazarus and possibly the old Linux might get you going but why on earth would you want to ? https://wiki.freepascal.org/Installing_Lazarus_on_Linux  shows you how to install properly in several different ways.  Your distro provided one is probably easiest but will get you a slightly older version probably. My (always) recommended model is to check you distro's package manager and if it provides FPC 3.2.2 (and its likely) then install that and the lazarus dependencies and then build Lazarus from source. Its all documented in the above wiki page, if you run into problems after reading that wiki page, come back. Davo ---------------------------------------------------------------------- TRon · 2023-02-07 05:17 Quote from: dodi on February 06, 2023, 11:56:56 pmQuote from: Martin_fr on February 06, 2023, 08:37:23 pmAny (such) old LCL will not be able to read forms (lfm files) by any newer IDE. Also, it will not compile with current FPC. We'll see. Just a heads up: You'll fail  QuoteUnfortunately I don't remember and cannot find how to install the entire Lazarus/fpc version. Can somebody help with *.rpm files based distribution? Use the source Luke ! QuoteOtherwise for a first attack can I simply replace the newer LCL source folder by the old one? Or where can I change the Lazarus source folder? Oh boy. Don't take my word for it and for sure do not take it personally but if you ask such type of questions then you are in over your head and have no idea about what others just tried to tell you and the implications that your idea has/will have. Just use the old source-code for compiler and Lazarus and build your own (custom) setup. Mixing the new with old /will/ fail. ---------------------------------------------------------------------- dodi · 2023-02-09 05:18 Quote from: dbannon on February 07, 2023, 12:11:12 amif you run into problems after reading that wiki page, come back. Now I tried to install Lazarus on MintFX from gitlab repository. Make fails with
Free Pascal Compiler version 3.0.4+dfsg-18ubuntu2 [2018/08/29]
for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling fcllaz.pas
/home/dodi/lazarus/packager/registration/fcllaz.pas(11,3) Fatal:
(10022) Can't find unit db used by fcllaz
What's wrong? ---------------------------------------------------------------------- marcov · 2023-02-09 08:26 Quote from: dodi on February 09, 2023, 06:18:53 am (3104) Compiling fcllaz.pas /home/dodi/lazarus/packager/registration/fcllaz.pas(11,3) Fatal: (10022) Can't find unit db used by fcllaz What's wrong? Db is a standard FPC unit. Wrong or partial install of FPC. Make sure you install all the fpc-* packages. ---------------------------------------------------------------------- MarkMLl · 2023-02-09 08:58 You're going to have problems, both technical and- as you're seeing- otherwise. I don't think you'll manage to use a very old LCL with an IDE which is grossly newer. There have been a couple of inflection points: a relatively recent change in the IDE's .lfm format (with an option to use the older format added after enough users had squealed) plus one somewhere around Lazarus v1 where it started embedding version numbers. There was also a major reorganisation of the various tabbed controls, and of Synedit. If my memory is correct, there's been at least one IDE change which had to be paralleled by a compiler change (not necessarily on all platforms): TFrame support somewhere around FPC 2.6.4. There's the perennial problem of the widget set supported by the IDE being obsoleted or having an underlying library change, e.g. GTK1 being obsoleted plus occasional problems with Qt. There were changes around FPC 3 related to the linker's -T warning. And there's probably still a current linker foulup affecting Debian testing/sid/Bookworm, and it was the hostile way that was handled that resulted in my spending far less time on the forum than I used to. The oldest Lazarus+FPC that I'm currently running is 0.9.24 2.2.4 on Debian "Lenny" i386. I might have had slightly older versions running in the past, but if one tries to work back much further one has problems with the FPC release which Does Not Exist. I believe that I have in the past managed to run Debian "Lenny" i386 is a Docker container on a much newer x86_64 system: with a bit of setup one can ssh into it hence run a version of the IDE which requires older underlying libraries etc. Failing that Qemu etc. will obviously work. MarkMLl ---------------------------------------------------------------------- marcov · 2023-02-09 09:04 There are so many things, just from the top of my head: $Mode objfpc requiring properties to be sorted, taking the address of properties that refer to a field is no longer allowed. ---------------------------------------------------------------------- MarkMLl · 2023-02-09 09:30 Quote from: marcov on February 09, 2023, 10:04:43 amThere are so many things, just from the top of my head: $Mode objfpc requiring properties to be sorted, taking the address of properties that refer to a field is no longer allowed. True. And of course the point that I omitted was that a specific Lazarus version typically had a very small number of FPC versions that it could be built with (and with which it would work happily), and that the FPC sources typically requires the previous stable FPC to build. The result of that is that working backwards towards an older version that one want to use is tricky: one really has to start off with a very old FPC binary from FTP etc. and then work forwards. I used to keep the full range on i386 and test various things regularly, but the move to x86_64 has introduced another inflection. Hats off to Linux+Docker here for generally being pretty good about old distreaux on a modern kernel. MarkMLl ---------------------------------------------------------------------- dodi · 2023-02-09 10:37 Quote from: marcov on February 09, 2023, 09:26:36 amDb is a standard FPC unit. Wrong or partial install of FPC. Make sure you install all the fpc-* packages. I installed (again) both the fpc and fpc-source packages of fpc 3.0.4 and run into Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Fatal: (10026) There were 50 errors compiling module, stoppingFatal: (1018) Compilation abortedMakefile:3354: recipe for target 'lazutils.ppu' failedmake[1]: *** [lazutils.ppu] Error 1make[1]: Leaving directory '/home/dodi/lazarus/components/lazutils'Makefile:1964: recipe for target 'lazutils' failedmake: *** [lazutils] Error 2 From which source can I obtain a current and working fpc/Lazarus system? ---------------------------------------------------------------------- KodeZwerg · 2023-02-09 10:43 Quote from: dodi on February 09, 2023, 11:37:47 amFrom which source can I obtain a current and working fpc/Lazarus system?You can experiment with Fcpupdeluxe which is a GUI installer for FPC and Lazarus in one easy to use app. Good luck! ---------------------------------------------------------------------- MarkMLl · 2023-02-09 11:24 Quote from: KodeZwerg on February 09, 2023, 11:43:16 amYou can experiment with Fcpupdeluxe which is a GUI installer for FPC and Lazarus in one easy to use app. Good luck! It's pretty good, but knowing that DoDi is another "old hand" and allowing for the old versions etc. I'd work from the FTP etc. sites i.e. https://www.freepascal.org/down/source/sources.html https://sourc eforge.net/projects/lazarus/files/Lazarus%20Zip%20_%20GZip/ MarkMLl ---------------------------------------------------------------------- marcov · 2023-02-09 12:22 Quote from: dodi on February 09, 2023, 11:37:47 amFrom which source can I obtain a current and working fpc/Lazarus system? Git(lab).  If you still have an old config in ~/.lazarus backup/move away first. Just in case. Then run "make bigide" in the lazarus source directory. Note: that your starting compiler (3.0.4) is still very old (3.2.0 is from may/june 2020), note2: Your cut-out doesn't show the actual errors, just the aftermath. ---------------------------------------------------------------------- TRon · 2023-02-09 12:49 Is it even known which versions of FPC work in conjunction with LCL v0.8.5.2 ? (the Lazarus release thread on the forum doesn't even go back that far) ---------------------------------------------------------------------- dodi · 2023-02-09 13:55 Quote from: KodeZwerg on February 09, 2023, 11:43:16 amYou can experiment with Fcpupdeluxe which is a GUI installer for FPC and Lazarus in one easy to use app. Good luck! I seem to be too stupid for using Lazarus on Linux. No chance to install it on my MintFX system, regardless of which method I try. Back to Win8, Lazarus installed without problems :-) In my first (docking) example I encounter the same problem as in the previous (XP) installation, a NIL pointer reference in Themes on program shutdown. In addition dragged windows seem to disappear in a black hole when docked. Now I wonder how to use git with Lazarus. Should I clone the repository or can I make the current installation work with git? After a couple of tries it looks like I have a normally installed Lazarus and a git version. Now I can start fixing the docking bugs. ---------------------------------------------------------------------- dbannon · 2023-02-10 23:28 Quote from: dodi on February 09, 2023, 06:18:53 amQuote from: dbannon on February 07, 2023, 12:11:12 amif you run into problems after reading that wiki page, come back. Now I tried to install Lazarus on MintFX from gitlab repository. Make fails with
Free Pascal Compiler version 3.0.4+dfsg-18ubuntu2 [2018/08/29]
for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling fcllaz.pas
/home/dodi/lazarus/packager/registration/fcllaz.pas(11,3) Fatal:
(10022) Can't find unit db used by fcllaz
What's wrong? My instructions were quite clear, I said if your disro has FPC322, use it. Implied but not clearly stated, I guess, if your distro has a quite old version of FPC, don't use it. Sigh ... Remove the distro supplied FPC and install the ones from the Lazarus binary repository. Then try again. Again, I suggest you read the wiki page on the subject, pointed to previously. I also suggest you consider upgrading your Linux install.  But most of all, read the wiki page, PLEASE ! Davo ---------------------------------------------------------------------- VTwin · 2023-02-11 00:08 I use Ubuntu, but have not had any problems installing using the standard download links, maybe 100 times. As has been said, don't use the distro supplied versions. Probably clean out any existing versions and do a clean install. EDIT: It sounds like you made a successful install. Great!