Build and Clean lazarus / 21-General ---------------------------------------------------------------------- Middlecope · 2023-09-05 14:56 Lazarus 2.2.4   FPC 3.2.2 I tried on a program and the program is build When I try I get an error:QuoteUnable to delete file "/usr/lib64/lazarus/packager/units/x86_64-linux/FCL.compiled".Any idea how to repair? ---------------------------------------------------------------------- cdbc · 2023-09-06 07:01 Hi By the looks of the path, you're in "SU"/"SUDO" country, i.e.: standard location for most distro's. Mine were as well, until I rebuilt lazarus with qt instead of gtk, then laz repositioned itself to /home/bc/.lazarus/ (bc being me) to be able to recompile itself. I think OPM takes advantage of this fact too, maybe some people more in the know, can chime in... Regards Benny ---------------------------------------------------------------------- Middlecope · 2023-09-06 13:32 I changed my OpenSUSE OS from 15.3 to 15.4 and after that reinstalled Lazarus/fpc. When in compiler options I changed Gtk2 to Qt4 that did not work The compiler can't find the Qt lbrary. In build lazarus I changed in target directory to home/myself/.lazarus That also does not work I wiil delete fpc and lazarus from my computer and de;ete /home/myself/.lazarus  restart and install again I will let you know if it helped ---------------------------------------------------------------------- Middlecope · 2023-09-06 14:39 Unfortunately that did not work All the same Should I try running lazarus as root? Any suggestion is welcome ---------------------------------------------------------------------- robert rozee · 2023-09-06 14:57 Quote from: Middlecope on September 06, 2023, 04:39:05 pmUnfortunately that did not work All the same Should I try running lazarus as root? from past experience, running lazarus (the IDE) as root ends in tears; any files created or changed while doing this are then 'owned' by root, and when you go back to running lazarus as a normal user those files can not be written to. the 'correct' solution would be modification of lazarus so that when rebuilding itself it uses pkexec (temporarily elevate privileges) to reinstall the newly compiled parts. to date the developers seem to have shied away from this. cheers, rob   :-) ---------------------------------------------------------------------- zeljko · 2023-09-06 18:59 Quote from: Middlecope on September 06, 2023, 03:32:27 pmI changed my OpenSUSE OS from 15.3 to 15.4 and after that reinstalled Lazarus/fpc. When in compiler options I changed Gtk2 to Qt4 that did not work The compiler can't find the Qt lbrary. In build lazarus I changed in target directory to home/myself/.lazarus That also does not work I wiil delete fpc and lazarus from my computer and de;ete /home/myself/.lazarus  restart and install again I will let you know if it helped You are missing libQt4Pas package (or qt4pas, depends how distro named that package). Besides that you can install libQt5Pas (or qt5pas) if your distro is Qt5 based and then rebuild lazarus for qt5.