Recent

Author Topic: Lazarus Release 3.0  (Read 146233 times)

JD

  • Hero Member
  • *****
  • Posts: 1913
Re: Lazarus Release 3.0
« Reply #60 on: December 25, 2023, 06:57:21 pm »
Thnaks a lot for your diligence & hard work.

JD
Linux Mint - Lazarus 4.6/FPC 3.2.2,
Windows - Lazarus 4.6/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

dbannon

  • Hero Member
  • *****
  • Posts: 3826
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release 3.0
« Reply #61 on: December 26, 2023, 12:52:06 am »
FPC and Lazarus sources were moved from the SVN server to GitLab. They don't exist in SVN any more. I see Alextpp removed the incorrect SVN references from that page. Thanks.
Quote

All good then. By the way, the svn instructions showed how to use svn to get code from github, not the old svn repo. Personally, I sure will not miss it either way.

Davo
Lazarus 4, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Nicola Gorlandi

  • Full Member
  • ***
  • Posts: 135
Re: Lazarus Release 3.0
« Reply #62 on: December 26, 2023, 09:59:33 am »
Hi all, thank you for the really good job. I just add a comment, the TVPlanIt components does not compile with the latest Lazarus release, the code ( VpXBase.pas ) still uses LazUTF8Classes and TFileStreamUTF8 classes now deprecated.
 

Jonax

  • Jr. Member
  • **
  • Posts: 53
    • Jonax stuff
Re: Lazarus Release 3.0
« Reply #63 on: December 26, 2023, 01:20:25 pm »
The DEB packages on Sourceforge had the wrong version.
They have been replaced.

Thanks all of you who replied and commented and helped fix that issue.  :)
The 3.0 is finally installed and seems to run nicely in one of my virtual machines.

I haven't yet done any project in 3.0 except for a Hello World but will use the 3.0 from now on

In case any Linux user wants to try my older software made on Lazarus 2.X dowloads available on my site.
Mainly simple games and logic puzzles. Very modest system requirements. Runs well in virtual machines.

For example a knight logic puzzle.

https://www.jonax.se/linux/knight.php

enjoy  :)




wp

  • Hero Member
  • *****
  • Posts: 13560
Re: Lazarus Release 3.0
« Reply #64 on: December 26, 2023, 02:06:08 pm »
I just add a comment, the TVPlanIt components does not compile with the latest Lazarus release, the code ( VpXBase.pas ) still uses LazUTF8Classes and TFileStreamUTF8 classes now deprecated.
Just installed TVPlanIt into a fresh installation of Lazv3.0 in Windows 11 (both 32 and 64 versions), and there was no issue. Did you install over a previous installation of TVPlanIt? Maybe a compiled unit is out-of-date and not detected as such. Try a clean recompilation of the IDE ("Tools" > "Configure Build Lazarus" > check "Clean all" and "Switch after building to automatically" > "Build").

Or, since you mention VpXBase: the unit LazUTF8Classes was removed from the development version here in mind-June, and then was release for OPM as v1.8.2. -> Reinstall from OPM.

Nicola Gorlandi

  • Full Member
  • ***
  • Posts: 135
Re: Lazarus Release 3.0
« Reply #65 on: December 27, 2023, 09:59:40 am »
OK many thanks,

I ran a new fresh installation of Lazarus and I downloaded TvPlanint from the On line package manager.

In any case I will check all the actions once again.

Espectr0

  • Full Member
  • ***
  • Posts: 240
Re: Lazarus Release 3.0
« Reply #66 on: December 27, 2023, 04:04:33 pm »
I installed Lazarus 3.0 for macOS from scratch,
but I have a problem rebuilding the IDE, I get the error "can't find unit DateTimePicker used by DateTimeCtrls".

How do I correct it?

Another thing I noticed on macOS is that the title says "Lazarus IDE v3.0 r", I guess the "r" shouldn't be in this version.

ogaere

  • Newbie
  • Posts: 1
Re: Lazarus Release 3.0
« Reply #67 on: December 28, 2023, 01:43:29 pm »
Awesome Job!

dtoffe

  • Jr. Member
  • **
  • Posts: 66
Re: Lazarus Release 3.0
« Reply #68 on: December 28, 2023, 02:17:24 pm »
Just wanted to say... Thank you very much Lazarus Team !!!

dbannon

  • Hero Member
  • *****
  • Posts: 3826
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release 3.0
« Reply #69 on: December 29, 2023, 06:57:35 am »
I installed Lazarus 3.0 for macOS from scratch,
but I have a problem rebuilding the IDE, I get the error "can't find unit DateTimePicker used by DateTimeCtrls".

I am using Lazarus 3.0 on MacOS (Monterey) without any difficulties. I suggest you try downloading the 3.0 source and building that. If you can build a Lazarus project, you can build Lazarus itself, its easy.

Davo
Lazarus 4, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

VTwin

  • Hero Member
  • *****
  • Posts: 1227
  • Former Turbo Pascal 3 user
Re: Lazarus Release 3.0
« Reply #70 on: December 30, 2023, 05:40:48 pm »
Many thanks!

Best for the New Year
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 15.3.2: Lazarus 3.8 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 3.8 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 3.8 (64 bit on VBox)

TCH

  • Sr. Member
  • ****
  • Posts: 275
    • Oldschool computer
Re: Lazarus Release 3.0
« Reply #71 on: December 30, 2023, 09:53:08 pm »
Under macOS, i386 building of apps does not work (x86_64 is OK):
Code: [Select]
(3104) Compiling translations.pas
/Applications/Lazarus/components/lazutils/translations.pas(252,13) Error: (3026) Wrong number of parameters specified for call to "CompareText"
/usr/local/lib/fpc/3.2.2/units/i386-darwin/univint/MacOSAll.ppu:StringCompare.pas(381,10) Error: (5088) Found declaration: CompareText(Pointer;Pointer;SmallInt;SmallInt;Handle):SmallInt;
/Applications/Lazarus/components/lazutils/translations.pas(853,7) Error: (3026) Wrong number of parameters specified for call to "CompareText"
/usr/local/lib/fpc/3.2.2/units/i386-darwin/univint/MacOSAll.ppu:StringCompare.pas(381,10) Error: (5088) Found declaration: CompareText(Pointer;Pointer;SmallInt;SmallInt;Handle):SmallInt;
/Applications/Lazarus/components/lazutils/translations.pas(870,19) Hint: (5091) Local variable "s" of a managed type does not seem to be initialized
translations.pas(1936) Fatal: (10026) There were 4 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /usr/local/bin/ppc386 returned an error exitcode
Error: (lazarus) Compile package LazUtils 1.0: stopped with exit code 1
Error: (lazarus) [TLazPackageGraph.CompileRequiredPackages] "Exit code 1"
Error: (lazbuild) Project dependencies of /private/tmp/ytfe/ytfe.lpi
Update: by commenting the affected lines, the problem can be workarounded.
« Last Edit: December 30, 2023, 10:10:19 pm by TCH »

TCH

  • Sr. Member
  • ****
  • Posts: 275
    • Oldschool computer
Re: Lazarus Release 3.0
« Reply #72 on: December 30, 2023, 11:46:21 pm »
On Linux-i386, it is impossible to install the DEB package. It stucks at
Code: [Select]
Unpacking lazarus-project (3.0.0) over (2.2.6) ... forever. No disk activity, the CPU load went back to zero, it simply died without error messages. /var/log/dpkg.log contains these messages:
Code: [Select]
2023-12-30 23:40:54 startup archives install
2023-12-30 23:40:55 upgrade lazarus-project:i386 2.2.6 3.0.0
2023-12-30 23:40:55 status half-configured lazarus-project:i386 2.2.6
2023-12-30 23:40:55 status unpacked lazarus-project:i386 2.2.6
2023-12-30 23:40:55 status half-installed lazarus-project:i386 2.2.6
2023-12-30 23:40:55 status triggers-pending shared-mime-info:i386 1.8-1+deb9u1
2023-12-30 23:40:55 status triggers-pending man-db:i386 2.7.6.1-2
2023-12-30 23:41:25 status triggers-pending mime-support:all 3.60
But i do not understand what is it talking about 2.2.6 being half-configured; it worked perfectly...

But i restored the backup disk image and uninstalled 2.2.6 and then retried, but then it stucks at
Code: [Select]
Unpacking lazarus-project (3.0.0) .../var/log/dpkg.log:
Code: [Select]
2023-12-30 23:28:42 startup archives install
2023-12-30 23:28:46 install lazarus-project:i386 2.2.6 3.0.0
2023-12-30 23:28:46 status half-installed lazarus-project:i386 2.2.6
2023-12-30 23:28:47 status triggers-pending shared-mime-info:i386 1.8-1+deb9u1
2023-12-30 23:28:47 status triggers-pending man-db:i386 2.7.6.1-2
2023-12-30 23:29:17 status triggers-pending mime-support:all 3.60
Again, half-installed? It is fully uninstalled...

dbannon

  • Hero Member
  • *****
  • Posts: 3826
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release 3.0
« Reply #73 on: December 31, 2023, 12:38:25 am »
"half-installed" means, I think, files physically in place but application not yet configured.

When you uninstalled 2.2.6, it will have removed all the Lazarus components in read-only diskspace but not your local configuration. Is it possible that the new install of 3.0 is trying to update and use that 2.2.6 config ?  As I understand it, the answer is 'no' (that happens when you start lazarus) but you are seeing some strange things.

You have not, at any time, run lazarus as root have you ? I sure hope not.

I'd be looking in ~/.lazarus to see if there are any root owned files in there.  But a far cleaner and safer approach would be to completely remove ~/.lazarus  and  try again, perhaps with -

Code: [Select]
sudo apt install --reinstall lazarus-project
As usual, my real advice is to just install Lazarus from source, Lazarus, by its nature, is not happy up in read-only space. The devs have done a wonderful job of "behind the scenes" stuff to make it appear it is comfortable but it is NOT.

Davo
Lazarus 4, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

TCH

  • Sr. Member
  • ****
  • Posts: 275
    • Oldschool computer
Re: Lazarus Release 3.0
« Reply #74 on: December 31, 2023, 02:12:20 am »
When you uninstalled 2.2.6, it will have removed all the Lazarus components in read-only diskspace but not your local configuration. Is it possible that the new install of 3.0 is trying to update and use that 2.2.6 config ?  As I understand it, the answer is 'no' (that happens when you start lazarus) but you are seeing some strange things.
The installer does not at all touches the config files. They are updated when the new Lazarus is started for the first time. But i've removed them anyway, so this is not the case.
You have not, at any time, run lazarus as root have you ? I sure hope not.

I'd be looking in ~/.lazarus to see if there are any root owned files in there.
I did, i do. All the time. I only use all my machines as root. And i have never had any problems with Lazarus before. So, ~ is /root and /root/.lazarus have/had only root owned files, but since i've run the installer as root either it cannot be the problem.
But a far cleaner and safer approach would be to completely remove ~/.lazarus  and  try again, perhaps with -

Code: [Select]
sudo apt install --reinstall lazarus-project
I cannot do that. It is an old Debian Stretch, it has no lazarus-project in the repos. I always installed the latest Lazarus via the DEB packages from sf.net.
As usual, my real advice is to just install Lazarus from source, Lazarus, by its nature, is not happy up in read-only space. The devs have done a wonderful job of "behind the scenes" stuff to make it appear it is comfortable but it is NOT.
Until now i did not have to do that for Linux; the DEB packages were always working without problems.

 

TinyPortal © 2005-2018