Fpcres related error when building Lazarus from sources lazarus / 1-Linux ---------------------------------------------------------------------- BOSHU · 2021-02-27 10:24 In a linux OS, freepascal has been installed in a user directory using the official installation script. Apparently, the installation script doesn't add the directory which contains the binary executables to the OS path environment. This is very good for me.    The consequence is that the "make clean all" command leads to the following 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 make: -iVSPTPSOTO: No such file or directorymake -C ide cleanidemake[1]: Entering directory '/home/guest/lazarus/ide'make[1]: -iVSPTPSOTO: No such file or directory/bin/rm -f /bin/rm -f /bin/rm -f /bin/rm -f /bin/rm -f /bin/rm -f /bin/rm -f /bin/rm -f /bin/rm -f /bin/rm -f /bin/rm -f /bin/rm -f /bin/rm -f /bin/rm -f /bin/rm -f /bin/rm -f /bin/rm -f /bin/rm -f /bin/rm -f make[1]: Leaving directory '/home/guest/lazarus/ide'make -C packager/registration cleanmake[1]: Entering directory '/home/guest/lazarus/packager/registration'make[1]: -iVSPTPSOTO: No such file or directory/bin/rm -f fpcmade.- *-.fpm Package.fpc *.s/bin/rm -f   script*.res link*.res *_script.res *_link.res/bin/rm -f ./ppas.sh *_ppas.bat ppas.bat ppaslink.batmake[1]: Leaving directory '/home/guest/lazarus/packager/registration'make -C lcl cleanallmake[1]: Entering directory '/home/guest/lazarus/lcl'make[1]: -iVSPTPSOTO: No such file or directory/bin/rm -f fpcmade.- *-.fpm Package.fpc *.s/bin/rm -f   script*.res link*.res *_script.res *_link.res/bin/rm -f ./ppas.sh *_ppas.bat ppas.bat ppaslink.batmake -C interfaces cleanmake[2]: Entering directory '/home/guest/lazarus/lcl/interfaces'make[2]: -iVSPTPSOTO: No such file or directorymake[2]: *** No rule to make target 'gtk2_clean', needed by 'clean'.  Stop.make[2]: Leaving directory '/home/guest/lazarus/lcl/interfaces'make[1]: *** [Makefile:5175: cleanall] Error 2make[1]: Leaving directory '/home/guest/lazarus/lcl'make: *** [Makefile:3723: cleanlaz] Error 2    The fpc executable can't be found but that's not a problem because it can be passed as a parameter(make clean all FPC=/home/guest/fpc/bin/fpc). The problem is that building Lazarus from sources with the additional parameter leads to another error. This time fpcres can't be found.   ... 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 /home/guest/lazarus/ide/lazbuild.lpr(106,39) Hint: (5024) Parameter "DlgType" not used/home/guest/lazarus/ide/lazbuild.lpr(106,66) Hint: (5024) Parameter "Buttons" not used/home/guest/lazarus/ide/lazbuild.lpr(107,45) Hint: (5024) Parameter "HelpKeyword" not used/home/guest/lazarus/ide/lazbuild.lpr(397,9) Warning: (6060) Case statement does not handle all possible cases/home/guest/lazarus/ide/lazbuild.lpr(629,97) Hint: (5091) Local variable "InheritedOptionStrings" of a managed type does not seem to be initialized/home/guest/lazarus/ide/lazbuild.lpr(1482,3) Warning: (6060) Case statement does not handle all possible cases/home/guest/lazarus/ide/lazbuild.lpr(1878,1) Error: (9021) Resource compiler "fpcres" not found, switching to external mode/home/guest/lazarus/ide/lazbuild.lpr(1878,1) Fatal: (10026) There were 1 errors compiling module, stoppingFatal: (1018) Compilation abortedError: /home/guest/fpc/bin/ppcx64 returned an error exitcodemake[2]: *** [Makefile:4673: lazbuild] Error 1make[2]: Leaving directory '/home/guest/lazarus/ide'make[1]: *** [Makefile:5112: lazbuilder] Error 2make[1]: Leaving directory '/home/guest/lazarus/ide'make: *** [Makefile:3712: lazbuild] Error 2 Without adding the fpc directory to the OS path environment, not even temporary using "export PATH=...", how can fpcres be passed as a parameter to have a successful build? ---------------------------------------------------------------------- BOSHU · 2021-03-02 15:21 Well, partially I've managed to solve the problem of building Lazarus. I've added an PPC_EXEC_PATH parameter. make clean all FPC=/home/guest/fpc/bin/fpc PPC_EXEC_PATH=/home/guest/fpc/bin/ The problem is that each and every time I try to compile a Lazarus project, even the default empty form, I get a message like: project1.lpr(24,1) Error: Resource compiler "fpcres" not found, switching to external mode. It's the same error. How do I force Lazarus to use this PPC_EXEC_PATH parameter when compiling any project, including rebuilding Lazarus using the entry in the "Tools" menu?