(Solved) Compiling Lazarus IDE 2 on Raspberry Pi lazarus / 1-Linux ---------------------------------------------------------------------- jdp · 2019-07-29 19:32 Hi all. I have been using Lazarus on the Pi for about 4 years now and all works 100%. I now got a new Pi 4 with the Buster OS. I did a apt-get install lazarus and it installed version 2 I need to add some visual componants to the IDE. If I add them from the online package manager and do a rebuild I get this error. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i lazarus.pp(1,1) Fatal: Cannot find fpdebug used by Lazarus. Check if package fpdebug creates fpdebug.ppu, check nothing deletes this file and check that no two packages have access to the unit source.. What could be the issue now ? Regards. ---------------------------------------------------------------------- pik33 · 2019-07-30 06:52 I have the same error. Also, the Intel based PC with Debian 10 /Buster does the same thing ---------------------------------------------------------------------- jdp · 2019-07-30 19:22 Aaaa this is sooo frustrating. I bought the book "LazarusHandbook" and followed all the steps to the letter. I got version 2.0.2 installed. Now if I add packages I get the error Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i lazarus.pp(167,1) Error: Can't call the resource compiler "/usr/local/bin/fpcres", switching to external mode Please help me....... ---------------------------------------------------------------------- jdp · 2019-07-30 19:55 OK so I had to make the swap file 1024 MB. It seems the compiler ran out of memory. Now When I want to install packages from the on-line package manager and now I get errors that the version of FPC is not supported. Aaaa I want to cry ....... ---------------------------------------------------------------------- Mi-Ki · 2019-08-23 05:05 Nobody solved yet? Will it help to install the older version? ---------------------------------------------------------------------- Thaddy · 2019-08-23 05:54 Quote from: jdp on July 30, 2019, 09:22:08 pmAaaa this is sooo frustrating. I bought the book "LazarusHandbook" and followed all the steps to the letter. I got version 2.0.2 installed. Now if I add packages I get the error Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i lazarus.pp(167,1) Error: Can't call the resource compiler "/usr/local/bin/fpcres", switching to external mode Please help me....... create a swap of 1 GB (1024MB) - Open /etc/dphys-swapfile as root : Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i sudo nano /etc/dphys-swapfileGoto the line that says CONF_SWAPSIZE=100 Change that to CONF_SWAPSIZE=1024 Save the file and reboot. ( ctrl-x and yes , sudo reboot) The reason is that the compiler runs out of available memory. We have already explained many times that Lazarus needs such a swap file to successfully build on a Raspberry Pi with 512 or 1024MB memory... If you have a Raspberry Pi 4 with 2 or 4 GB these steps are not necessary anymore. Note these steps are also necessary for large projects in other languages like clang or GNU C(++), e.g. building the kernel from source. This is not FPC/Lazarus specific. See screenshot ---------------------------------------------------------------------- Mi-Ki · 2019-08-23 07:50 Hi I have Raspberry 4 4GB RAM - raspbian-buster CONF_SWAPSIZE=1024 They don't add packers lazarus.pp(1,1) Fatal: Cannot find fpdebug used by Lazarus. packages => install/uninstall packages - fpdebug package not installed. add to install - save and rebuilg  IDE lazarus.pp(1,1) Fatal: Cannot find fpdebug used by Lazarus. Check if package fpdebug creates fpdebug.ppu, check nothing deletes this file and check that no two packages have access to the unit source.. How to solve? ---------------------------------------------------------------------- Linkat · 2019-08-23 16:27 I did'nt increase the swapfile, and I had no such problems. Read the tutorial here: https://forum.lazarus.freepascal.org/index.php/topic,46438.msg330919.h tml#msg330919 Good Luck ---------------------------------------------------------------------- comdora · 2021-08-21 16:28 "lazarus.pp(1,1) Fatal: Cannot find fpdebug used by Lazarus." Would you write how you solved the problem?