Recent

Author Topic: Rebuild Lazarus with qt and "can't call the resource compiler"  (Read 2213 times)

tomek1

  • New Member
  • *
  • Posts: 16
Rebuild Lazarus with qt and "can't call the resource compiler"
« on: December 02, 2020, 02:50:32 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 11351
  • FPC developer.
Re: Rebuild Lazarus with qt and "can't call the resource compiler"
« Reply #1 on: December 02, 2020, 02:53:09 pm »
Permissions, apparmor etc.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1738
Re: Rebuild Lazarus with qt and "can't call the resource compiler"
« Reply #2 on: December 02, 2020, 03:11:41 pm »
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

  • New Member
  • *
  • Posts: 16
Re: Rebuild Lazarus with qt and "can't call the resource compiler"
« Reply #3 on: December 02, 2020, 03:28:30 pm »
@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

  • Hero Member
  • *****
  • Posts: 1738
Re: Rebuild Lazarus with qt and "can't call the resource compiler"
« Reply #4 on: December 02, 2020, 03:35:06 pm »
Quote
Do 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

  • Hero Member
  • *****
  • Posts: 6646
Re: Rebuild Lazarus with qt and "can't call the resource compiler"
« Reply #5 on: December 02, 2020, 04:11:44 pm »
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
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Thaddy

  • Hero Member
  • *****
  • Posts: 14157
  • Probably until I exterminate Putin.
Re: Rebuild Lazarus with qt and "can't call the resource compiler"
« Reply #6 on: December 02, 2020, 09:35:14 pm »
and 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+
Specialize a type, not a var.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6646
Re: Rebuild Lazarus with qt and "can't call the resource compiler"
« Reply #7 on: December 02, 2020, 10:05:42 pm »
and 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.html#msg384623

Still an issue as of 4th December r64169.

MarkMLl
« Last Edit: December 04, 2020, 11:21:02 am by MarkMLl »
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

tomek1

  • New Member
  • *
  • Posts: 16
Re: Rebuild Lazarus with qt and "can't call the resource compiler"
« Reply #8 on: December 03, 2020, 11:13:40 am »
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've added to path whole /root/fpcupdeluxe/fpc/bin/x86_64-linux - not helped.

mig-31

  • Sr. Member
  • ****
  • Posts: 305
Re: Rebuild Lazarus with qt and "can't call the resource compiler"
« Reply #9 on: December 03, 2020, 03:42:01 pm »
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.
Lazarus 2.2.6 - OpenSuse Leap 15.4, Mageia 8, CentOS 7

MarkMLl

  • Hero Member
  • *****
  • Posts: 6646
Re: Rebuild Lazarus with qt and "can't call the resource compiler"
« Reply #10 on: December 03, 2020, 03:57:18 pm »
@mig-31 Good point. In my case I'm on Debian "Buster" but had to get libqt4pas from the preceding release.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

tomek1

  • New Member
  • *
  • Posts: 16
Re: Rebuild Lazarus with qt and "can't call the resource compiler"
« Reply #11 on: December 04, 2020, 04:21:01 pm »
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

  • Hero Member
  • *****
  • Posts: 6646
Re: Rebuild Lazarus with qt and "can't call the resource compiler"
« Reply #12 on: December 04, 2020, 05:43:18 pm »
It's good to hear that you've had some level of success, but this whole business is still unfortunate.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018