Recent

Author Topic: Lazarus is not working  (Read 1198 times)

Amir61

  • New Member
  • *
  • Posts: 38
    • http://Amir.Aavani.net
Lazarus is not working
« on: March 25, 2025, 05:07:26 am »
Hi all,

 I recently upgraded my machine to FC41 (from FC40) and it broke Lazarus! I cannot run the program through lazarus (and most of the time, the buttons are not clickable!).

  Have a look at the screen recording here (https://drive.google.com/file/d/1gDNifAbwIG_U254UcVuNbGrwn97PP2NZ).

I build lazarus from source using
Code: Text  [Select][+][-]
  1. make clean bigide  LCL_PLATFORM=gtk3
  2.  

The clicks are working better. But I do not see the components on lazarus (https://drive.google.com/file/d/18425XFDpn3yVi1jOggyiiEdy5WbZy0Lp). Lazarus is showing error message when trying to compile/save my code (https://drive.google.com/file/d/1NsKp1TjErBTJMvYRDqoU6z0qMyG_Wde_).

 

Alexx2000

  • New Member
  • *
  • Posts: 15
Re: Lazarus is not working
« Reply #1 on: March 25, 2025, 07:37:32 am »
GTK3 is not fully supported yet, see this topic. Use Qt5/Qt6 or GTK2.

Thaddy

  • Hero Member
  • *****
  • Posts: 16783
  • Ceterum censeo Trump esse delendam
Re: Lazarus is not working
« Reply #2 on: March 25, 2025, 08:18:33 am »
There have been quite a lot of commits for Gtk3 the last few days so you can try Laz trunk/main.
Zejlko commented in one of the commits: "Is not Alpha anymore"..  :D :o

Commit 287fbaaa

And after that statement there were quite some more commits.

THIS IS ONLY VALID FOR LAZ 4.99 I.E. TRUNK/MAIN
« Last Edit: March 25, 2025, 04:35:33 pm by Thaddy »
Changing servers. thaddy.com may be temporary unreachable but restored when the domain name transfer is done.

Amir61

  • New Member
  • *
  • Posts: 38
    • http://Amir.Aavani.net
Re: Lazarus is not working
« Reply #3 on: March 27, 2025, 06:28:49 am »
I built lazarus with "LCL_PLATFORM=gtk2", and the clicks did not work! :(
I built it with "LCL_PLATFORM=gtk3" and still see "Access Violation" message! :(




 
 

TRon

  • Hero Member
  • *****
  • Posts: 4296
Re: Lazarus is not working
« Reply #4 on: March 27, 2025, 06:37:53 am »
Today is tomorrow's yesterday.

Amir61

  • New Member
  • *
  • Posts: 38
    • http://Amir.Aavani.net
Re: Lazarus is not working
« Reply #5 on: March 27, 2025, 06:55:54 am »
Thank you TRon!

So it means I need to go back to FC40?

Thaddy

  • Hero Member
  • *****
  • Posts: 16783
  • Ceterum censeo Trump esse delendam
Re: Lazarus is not working
« Reply #6 on: March 27, 2025, 07:10:04 am »
Not really. As the link contains info that you can still install X on 41.
(The same is the case for e.g. Rasberri Pi's, where there is even a switch for that)
Wayland is a bag of cow dung at the moment and not mature.
That is not something that the fpc/lazarus team can or should solve.

At this moment in time TRon is right.
Changing servers. thaddy.com may be temporary unreachable but restored when the domain name transfer is done.

TRon

  • Hero Member
  • *****
  • Posts: 4296
Re: Lazarus is not working
« Reply #7 on: March 27, 2025, 07:15:05 am »
There are different paths that one could take:
- persevere with wayland
- persevere with X11

The former means update as much as possible, for fedora there is (if not mistaken) v42 which would hopefully remove a lot of the bugs that wayland introduced (it is a gamble, I do not know the outcome. But at least it is the same for every distribution that decided to go wayland). The same goes for your Lazarus installation as the developers try their best to accommodate wayland incompatibilities but that does require to use the latest, e.g. trunk/main.

Some distributions offer a X11 compatibility transition period which allows for the user to be able to use old-style x11 sessions (raspios for example has an option to switch between X11 (xwayland) and wayland. As already mentioned by Thaddy). I do not know the details about Fedora but the article that was linked to does not sound very promising in that regards (though Thaddy is right that there seem to be an option it is just that the article seem to suggest that fedora devs want to get rid of it asap).

Which brings us to the latter option, trying to stick with X11. I do not know how feasible it is to accomplish that with fedora 41. I would advise to try read into the subject and see how other fedora users handle this (if possible at all) or if they switched back to v40 or otherwise.

On the long run wayland seem inevitable so it might be worth the effort to bite the bullit right away to be able to familiarize yourself with it. In which case be prepared to run into bugs, report them and wait for them to be addressed (in case possible). Or better yet try to fix yourself and help the other developers out.

Either way it is a very unpleasant situation for serious production.

PS: the QT widgetset seem to have far less issues with wayland so Alexx2000 was right about that.
« Last Edit: March 27, 2025, 07:30:15 am by TRon »
Today is tomorrow's yesterday.

Amir61

  • New Member
  • *
  • Posts: 38
    • http://Amir.Aavani.net
Re: Lazarus is not working
« Reply #8 on: March 28, 2025, 06:57:42 am »
Thank you. I have installed
Code: Text  [Select][+][-]
  1. gnome-session-xsession
and logged in with X11.

 

TinyPortal © 2005-2018