Recent

Author Topic: Lazarus Release 2.0.6  (Read 21083 times)

zeljko

  • Hero Member
  • *****
  • Posts: 1089
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazarus Release 2.0.6
« Reply #30 on: November 03, 2019, 04:05:32 pm »
You must install libQt4Pas (or qt4pas) , don't know how it's named under ubuntu.
Also for Qt5 you must build your own libQt5Pas v.1.2.7 from lcl/interfaces/qt5/cbindings since distros aren't updated
for latest libQt5Pas

mischi

  • Full Member
  • ***
  • Posts: 124
Re: Lazarus Release 2.0.6
« Reply #31 on: November 03, 2019, 04:57:24 pm »
@jwdietrich:  Did you recompile as 32Bit Carbon-based or  64bit Cocoa based IDE?
If 64 Bit, how are your experiences on MacOS Mojave?
Pull requests for Fink packages for carbon, cocoa, gtk2, Qt4 and Qt5 are out. According to my minimal tests on Mojave, all work.

Zvoni

  • Sr. Member
  • ****
  • Posts: 301
Re: Lazarus Release 2.0.6
« Reply #32 on: November 04, 2019, 11:31:20 am »
Regretfully couldn't manage to be so glad with new Lazarus 2.0.6 at my Ubuntu 19.10.

I have downloaded all 3 files from SourceForge via your link, installed FPC 3.0.4 and its sources then installed "lazarus-project_2.0.6-0_amd64.deb" and started Lazarus. And Lazarus IDE had immediately frozen my desktop at all. I had to switch to another one with Ctrl-Alt-F8 and restart. Tried then to recompile Lazarus to Qt widgetset with "make clean all LCL_PLATFORM=qt" but had finally just a fatal error:

    ...
    (9022) Compiling resource ../units/x86_64-linux/qt/lazarus.or
    (9015) Linking ../lazarus
    /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
    /usr/bin/ld: cannot find -lQt4Pas
    /usr/share/lazarus/2.0.6/ide/lazarus.pp(165,1) Error: (9013) Error while linking
    /usr/share/lazarus/2.0.6/ide/lazarus.pp(165,1) Fatal: (10026) There were 1 errors compiling module, stopping
    Fatal: (1018) Compilation aborted
    make[2]: *** [Makefile:4144: lazarus] Error 1
    make[2]: Leaving directory '/usr/share/lazarus/2.0.6/ide'
    make[1]: *** [Makefile:4572: ide] Error 2
    make[1]: Leaving directory '/usr/share/lazarus/2.0.6/ide'
    make: *** [Makefile:3381: ide] Error 2

So I must assume, new Lazarus is not happy with GTK2 and GTK3 (my current distro provided GTK 2.24.32 and GTK 3.24.12) and also it's not friendly with some Qt5 (namely Qt 5.12 with 5.62 libs as it comes with distro). For there's only Qt5 at my system, lQt4Pas can't be found in /usr/bin/ld which is a link to x86_64-linux-gnu-ld.bfd, I guess.

So what can you suggest for the case?
Do I need to downgrade to older GTK or Qt or there is a fix? I'd not like to dig into all these makefiles myself :(

I had the same, but with older Lazarus. Steps should still apply
https://forum.lazarus.freepascal.org/index.php/topic,44607.0.html
One System to rule them all, One IDE to find them,
One Code to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
People call me crazy, because i'm jumping out of perfectly fine aircrafts

dbannon

  • Hero Member
  • *****
  • Posts: 788
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release 2.0.6
« Reply #33 on: November 04, 2019, 11:47:40 am »
Regretfully couldn't manage to be so glad with new Lazarus 2.0.6 at my Ubuntu 19.10.

I have downloaded all 3 files from SourceForge via your link, installed FPC 3.0.4 and its sources then installed "lazarus-project_2.0.6-0_amd64.deb" and started Lazarus. And Lazarus IDE had immediately frozen my desktop at all. I had to switch to another one with Ctrl-Alt-F8 and restart. Tried then to recompile Lazarus to Qt widgetset with "make clean all LCL_PLATFORM=qt" but had finally just a fatal error:

Ariador, are your trying QT because of the freeze-ups ?  The problem is not the widget set, there is "some issue" with U1910 I am afraid. GTK2 works fine on other distros and even other Ubuntu desktops but is very prone to do this freeze up on the default Gnome Desktop. People have found it works better using Wayland as display server (click the small gear symbol under the password field during log on and select Ubuntu on Wayland. GTK3 is experimental and quite a bit dodgy on Wayland by the way.

https://forum.lazarus.freepascal.org/index.php/topic,47240.0/topicseen.html

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

Zvoni

  • Sr. Member
  • ****
  • Posts: 301
Re: Lazarus Release 2.0.6
« Reply #34 on: November 04, 2019, 12:11:52 pm »
Ariador, are your trying QT because of the freeze-ups ?  The problem is not the widget set, there is "some issue" with U1910 I am afraid. GTK2 works fine on other distros and even other Ubuntu desktops but is very prone to do this freeze up on the default Gnome Desktop. People have found it works better using Wayland as display server (click the small gear symbol under the password field during log on and select Ubuntu on Wayland. GTK3 is experimental and quite a bit dodgy on Wayland by the way.

https://forum.lazarus.freepascal.org/index.php/topic,47240.0/topicseen.html

Davo
AFAIK, with U1910 they switched Gnome to GTK3 as the "standard"-widget-set.
On the other hand it would mean: any other Desktop/Window-Manager not using GTK3 as its standard should not have those issues.
One System to rule them all, One IDE to find them,
One Code to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
People call me crazy, because i'm jumping out of perfectly fine aircrafts

zeljko

  • Hero Member
  • *****
  • Posts: 1089
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Lazarus Release 2.0.6
« Reply #35 on: November 04, 2019, 02:52:16 pm »

Ariador, are your trying QT because of the freeze-ups ?  The problem is not the widget set, there is "some issue" with U1910 I am afraid. GTK2 works fine on other distros and even other Ubuntu desktops but is very prone to do this freeze up on the default Gnome Desktop. People have found it works better using Wayland as display server (click the small gear symbol under the password field during log on and select Ubuntu on Wayland. GTK3 is experimental and quite a bit dodgy on Wayland by the way.

https://forum.lazarus.freepascal.org/index.php/topic,47240.0/topicseen.html

Davo

I've tested qt and qt5 under ubuntu 19.10 today and all I can say it works out of the box (default ubuntu 19.10) installation. Haven't tested with wayland since x11 is started as default. Even libQt5Pas is recent 1.2.7 version :)

Zvoni

  • Sr. Member
  • ****
  • Posts: 301
Re: Lazarus Release 2.0.6
« Reply #36 on: November 04, 2019, 03:56:50 pm »

Ariador, are your trying QT because of the freeze-ups ?  The problem is not the widget set, there is "some issue" with U1910 I am afraid. GTK2 works fine on other distros and even other Ubuntu desktops but is very prone to do this freeze up on the default Gnome Desktop. People have found it works better using Wayland as display server (click the small gear symbol under the password field during log on and select Ubuntu on Wayland. GTK3 is experimental and quite a bit dodgy on Wayland by the way.

https://forum.lazarus.freepascal.org/index.php/topic,47240.0/topicseen.html

Davo

I've tested qt and qt5 under ubuntu 19.10 today and all I can say it works out of the box (default ubuntu 19.10) installation. Haven't tested with wayland since x11 is started as default. Even libQt5Pas is recent 1.2.7 version :)

FPC/Laz installed from Repo or from deb's?
Asking because i don't know if install from deb's forces dependency-install of libqt5pas
One System to rule them all, One IDE to find them,
One Code to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
People call me crazy, because i'm jumping out of perfectly fine aircrafts

BIT

  • Jr. Member
  • **
  • Posts: 73
Re: Lazarus Release 2.0.6
« Reply #37 on: November 04, 2019, 08:49:25 pm »
Just Thank You!

dbannon

  • Hero Member
  • *****
  • Posts: 788
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release 2.0.6
« Reply #38 on: November 05, 2019, 12:11:41 am »
AFAIK, with U1910 they switched Gnome to GTK3 as the "standard"-widget-set.
GTK3 has been the 'standard' widgetset for some time. Its just that they are now no longer also including GTK2 in there. It needs to be added by you or as a result of a dependency check. Easy to resolve at the expense of a short download.

If you install using the debs, then they know they need GTK2 and it will be installed as a dependency. But only if you use an installer that resolves dependencies !  I strongly suggest gdebi. If you use the Gnome supplied "software installer" it will not resolve dependencies (and lies to you about anything not from its repos being proprietary).

If you plan to build Lazarus from source, then you are still advised to install FPC and FPC-SRC from a deb. And, again, using gdebi all dependencies will be resolved.  (Thats how I recommend every one install by the way!).

Neither FPC nor Lazarus have formal dependencies on QT, if you want to work with QT, you need to install its specific dependencies manually.

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

ermeneuta

  • New Member
  • *
  • Posts: 34
Re: Lazarus Release 2.0.6
« Reply #39 on: November 08, 2019, 12:16:01 am »
It would be nice if somebody could write an installer for Raspbian (the Debian incarnation for the Raspberry)...
I would do it myself, but lack the needed skills...

TNX

Alberto
 

dbannon

  • Hero Member
  • *****
  • Posts: 788
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release 2.0.6
« Reply #40 on: November 08, 2019, 03:38:34 am »
Quote
...Raspbian...

Install FPC, FPC-Src and subversion (for the svn command) all from Buster repository.

You probably need to increase swap space, see a previous post on the subject, probably by Thaddy.

Download the lazarus source and type "make bigide"

Details on the "installing Lazarus on linux" wiki page. https://wiki.freepascal.org/Installing_Lazarus_on_Linux

Please report how you go, maybe update that wiki page ?  Please especially report if my advice is wrong!

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

Thaddy

  • Hero Member
  • *****
  • Posts: 9293
Re: Lazarus Release 2.0.6
« Reply #41 on: November 08, 2019, 07:19:17 am »
It would be nice if somebody could write an installer for Raspbian (the Debian incarnation for the Raspberry)...
I would do it myself, but lack the needed skills...

TNX

Alberto
Raspbian Buster has already fpc3.0.4 and Laz 2.0 in the repositories.
Simply sudo apt-get install lazarus That's all. This will install Lazarus, FPC and all dependencies. Increase the swap file to 512MB or higher.
But indeed, if you want to build from source afterwards (this is not necessary!) , increase the swapfile to 1 GB. This is not necessary for a RPi 4 with 2 or 4 GB memory.
This is the recommended way, unless you absolutely want fpc 3.2.0 or higher and / or Lazarus 2.0.6 or higher. Then you still install from apt first, install subversion and checkout the versions you want. Then build make clean all install useride. useride will keep any changes you have already made for installed packages.
bigide is also OK but is a bit overkill for most.

Basically, what you asked is already done: Buster has - good and recent -  installers by default. Raspbian always contained FPC and Lazarus.
To increase the swap file follow these steps: https://www.bitpi.co/2015/02/11/how-to-change-raspberry-pis-swapfile-size-on-rasbian/

I might add it is a good idea to add backports to your apt configuration: Debian updates come usually rather conservative, but the Debian package maintainers seem to be fond of Lazarus and FPC, so the newer versions usually come - for Debian - pretty quick into backports.  :D 8-)
« Last Edit: November 08, 2019, 07:44:22 am by Thaddy »
also related to equus asinus.

dbannon

  • Hero Member
  • *****
  • Posts: 788
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release 2.0.6
« Reply #42 on: November 08, 2019, 08:09:21 am »
Ah, thanks Thaddy (swap space issues).  If you don't mind, I might push those notes to the wiki page ?
Quote
....
Then build make clean all install useride.

Disagree, 'install' is quite unnecessary, from memory it wants to push everything up unto /usr/ again. And thats really not useful. And 'bigide' gets you the OnlinePackage Manager (unless I am mistaken). I would suggest everyone will want the Onlinepackage Manager sooner or later !  'useride' is a new one on me. I find that when starting a newly compiled (fixes) IDE, as long as you point to the same config, that config gets 'imported' and all previous packages are still there. I think ...

Davo

Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

Thaddy

  • Hero Member
  • *****
  • Posts: 9293
Re: Lazarus Release 2.0.6
« Reply #43 on: November 08, 2019, 08:29:17 am »

Disagree, 'install' is quite unnecessary, from memory it wants to push everything up unto /usr/ again.
Actually /usr/local where it belongs! e.g. fpcdeluxe has a non-conformant install... Follow the guidelines  unless you need multiple parallel installs, usually advanced users. And even that is debatable because FPC installs to a versioned directory.
Quote
And 'bigide' gets you the OnlinePackage Manager (unless I am mistaken).
Bigide installs way too much and OPM can be installed afterwards. Two clicks away. Bigide is not a good idea on very basic, resource starved platforms like a Raspberry Pi, unless you have a Pi4 with 4 GB.
Do not install things you never need. But OPM is indeed useful and easily installed aftwards, just like the sparta packages and sqldb and the likes.
bigide also slows down building after package installs that alone is a reason not do use bigide. E.g. on RPi 1 and 2. or Pi zero it hampers rather than aids. And it is a memory hog install.
Go ahead, make your machine only able to compile hello world....
Quote
'useride' is a new one on me.
Now you know. It is usually the better option for existing installs.

If you are actually using Raspberry Pi's you will know this is sound advice.
It simply gives you a better user experience.

Of course you can do bigide and then remove things afterwards, but I suggest adding packages to an existing basic install is way more appropriate.
« Last Edit: November 08, 2019, 08:45:14 am by Thaddy »
also related to equus asinus.

dbannon

  • Hero Member
  • *****
  • Posts: 788
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release 2.0.6
« Reply #44 on: November 08, 2019, 12:22:36 pm »
Actually /usr/local where it belongs
Think you are confusing fpc and lazarus, never mind.
Bigide installs way too much and OPM can be installed afterwards. Two clicks away.
OK, that makes sense. Thanks
If you are actually using Raspberry Pi's you will know this is sound advice.
While I know its probably sound advice, I have never tried to use a Pi interactively. I have a couple running some 'housekeeping tasks' written in Python but never tried FPC on there. Thats why I am trying, politely, to collect some information about how to do it. And get that information on the wiki.

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng