Rebuild Lazarus with qt and "can't call the resource compiler" lazarus / 1-Linux ---------------------------------------------------------------------- tomek1 · 2020-12-02 13:50 Hi I'm trying to rebuild lazarus with qt (I need it for FastReport) and get the following error: lazarus.pp(165,1) Error: Can't call the resource compiler "/root/fpcupdeluxe/fpc/bin/x86_64-linux/fpcres", switching to external mode. Lazarus 2.0.1, FPC 3.2.0 (build from fpcupdeluxe) Centos 7 on VirtualBox, qt package installed, memory: [root@localhost ~]# free -m               total        used        free      shared  buff/cache   available Mem:     1838         493        1042           7         301        1150 Swap:     1283         305         978 Any ideas? Regards ---------------------------------------------------------------------- marcov · 2020-12-02 13:53 Permissions, apparmor etc. ---------------------------------------------------------------------- DonAlfredo · 2020-12-02 14:11 And also running out of RAM memory can cause this error. You need much RAM to compile Lazarus. Most often, this error occurs on RPI's. ---------------------------------------------------------------------- tomek1 · 2020-12-02 14:28 @marcov It's vanilla Centos 7 VM - for lazarus only. No apparmor. Build/rebuild with root acount, fpcres owned by root:root 755 (just like any other bin's). @DonAlfredo I saw posts related with memory issues, that's why I've pasted free -m output. Do you think it may be not enough? ---------------------------------------------------------------------- DonAlfredo · 2020-12-02 14:35 QuoteDo you think it may be not enough?To be honest: that should be enough. Building as root is something I have never done, but that should not be a problem I guess. ---------------------------------------------------------------------- MarkMLl · 2020-12-02 15:11 Not a problem that I've seen on Debian. The one thing that I'd add though is that while I move most FPC utilities off the path, the three that /do/ have to be on the path are fpc, ppcXXX and fpcres. I got into deep water a couple of weeks ago when it turned out that my fpc binary was accidentally 32-bit with everything else 64-bit, and one of the things that that affected was Qt. However that was Lazarus trunk + 3.2.0, and I had to back off that combination for some other reason that escapes me. MarkMLl ---------------------------------------------------------------------- Thaddy · 2020-12-02 20:35 Quote from: MarkMLl on December 02, 2020, 04:11:44 pmand I had to back off that combination for some other reason that escapes me. Plz report back when you remember: I have no issues at all with 3.2.0+ ---------------------------------------------------------------------- MarkMLl · 2020-12-02 21:05 Quote from: Thaddy on December 02, 2020, 09:35:14 pmQuote from: MarkMLl on December 02, 2020, 04:11:44 pmand I had to back off that combination for some other reason that escapes me. Plz report back when you remember: I have no issues at all with 3.2.0+ https://forum.lazarus.freepascal.org/index.php/topic,52202.msg384623.h tml#msg384623 Still an issue as of 4th December r64169. MarkMLl ---------------------------------------------------------------------- tomek1 · 2020-12-03 10:13 Quote from: MarkMLl on December 02, 2020, 04:11:44 pmThe one thing that I'd add though is that while I move most FPC utilities off the path, the three that /do/ have to be on the path are fpc, ppcXXX and fpcres. I've added to path whole /root/fpcupdeluxe/fpc/bin/x86_64-linux - not helped. ---------------------------------------------------------------------- mig-31 · 2020-12-03 14:42 Hi, you don't mention a qt version. Because there is CentOS 7, it's should be qt 4. I have worked Lazarus installation qt4 rebuilded. Lazarus was downloaded from official web site. I installed libqt4pas, I think from Fedora repository and some addition qt4 package from repository. Rebuilded Lazarus for qt4 widget set under root. ---------------------------------------------------------------------- MarkMLl · 2020-12-03 14:57 @mig-31 Good point. In my case I'm on Debian "Buster" but had to get libqt4pas from the preceding release. MarkMLl ---------------------------------------------------------------------- tomek1 · 2020-12-04 15:21 Just for the record - after many tries of rebuilding IDE with different configurations lazarus died - stopped launch at all. In the meantime it turned out, that new FastReport uses gtk2, so I don't need qt. I've built brand new VM, Centos 8 with 4GB RAM, new Lazarus+FPC from fpcupdeluxe and FastReport was successfully installed. Regards ---------------------------------------------------------------------- MarkMLl · 2020-12-04 16:43 It's good to hear that you've had some level of success, but this whole business is still unfortunate. MarkMLl