Recent

Author Topic: Fpcres related error when building Lazarus from sources  (Read 536 times)

BOSHU

  • New member
  • *
  • Posts: 8
Fpcres related error when building Lazarus from sources
« on: February 27, 2021, 11:24:16 am »
   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][+][-]
  1. make: -iVSPTPSOTO: No such file or directory
  2. make -C ide cleanide
  3. make[1]: Entering directory '/home/guest/lazarus/ide'
  4. make[1]: -iVSPTPSOTO: No such file or directory
  5. /bin/rm -f
  6. /bin/rm -f
  7. /bin/rm -f
  8. /bin/rm -f
  9. /bin/rm -f
  10. /bin/rm -f
  11. /bin/rm -f
  12. /bin/rm -f
  13. /bin/rm -f
  14. /bin/rm -f
  15. /bin/rm -f
  16. /bin/rm -f
  17. /bin/rm -f
  18. /bin/rm -f
  19. /bin/rm -f
  20. /bin/rm -f
  21. /bin/rm -f
  22. /bin/rm -f
  23. /bin/rm -f
  24. make[1]: Leaving directory '/home/guest/lazarus/ide'
  25. make -C packager/registration clean
  26. make[1]: Entering directory '/home/guest/lazarus/packager/registration'
  27. make[1]: -iVSPTPSOTO: No such file or directory
  28. /bin/rm -f fpcmade.- *-.fpm Package.fpc *.s
  29. /bin/rm -f   script*.res link*.res *_script.res *_link.res
  30. /bin/rm -f ./ppas.sh *_ppas.bat ppas.bat ppaslink.bat
  31. make[1]: Leaving directory '/home/guest/lazarus/packager/registration'
  32. make -C lcl cleanall
  33. make[1]: Entering directory '/home/guest/lazarus/lcl'
  34. make[1]: -iVSPTPSOTO: No such file or directory
  35. /bin/rm -f fpcmade.- *-.fpm Package.fpc *.s
  36. /bin/rm -f   script*.res link*.res *_script.res *_link.res
  37. /bin/rm -f ./ppas.sh *_ppas.bat ppas.bat ppaslink.bat
  38. make -C interfaces clean
  39. make[2]: Entering directory '/home/guest/lazarus/lcl/interfaces'
  40. make[2]: -iVSPTPSOTO: No such file or directory
  41. make[2]: *** No rule to make target 'gtk2_clean', needed by 'clean'.  Stop.
  42. make[2]: Leaving directory '/home/guest/lazarus/lcl/interfaces'
  43. make[1]: *** [Makefile:5175: cleanall] Error 2
  44. make[1]: Leaving directory '/home/guest/lazarus/lcl'
  45. 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][+][-]
  1. /home/guest/lazarus/ide/lazbuild.lpr(106,39) Hint: (5024) Parameter "DlgType" not used
  2. /home/guest/lazarus/ide/lazbuild.lpr(106,66) Hint: (5024) Parameter "Buttons" not used
  3. /home/guest/lazarus/ide/lazbuild.lpr(107,45) Hint: (5024) Parameter "HelpKeyword" not used
  4. /home/guest/lazarus/ide/lazbuild.lpr(397,9) Warning: (6060) Case statement does not handle all possible cases
  5. /home/guest/lazarus/ide/lazbuild.lpr(629,97) Hint: (5091) Local variable "InheritedOptionStrings" of a managed type does not seem to be initialized
  6. /home/guest/lazarus/ide/lazbuild.lpr(1482,3) Warning: (6060) Case statement does not handle all possible cases
  7. /home/guest/lazarus/ide/lazbuild.lpr(1878,1) Error: (9021) Resource compiler "fpcres" not found, switching to external mode
  8. /home/guest/lazarus/ide/lazbuild.lpr(1878,1) Fatal: (10026) There were 1 errors compiling module, stopping
  9. Fatal: (1018) Compilation aborted
  10. Error: /home/guest/fpc/bin/ppcx64 returned an error exitcode
  11. make[2]: *** [Makefile:4673: lazbuild] Error 1
  12. make[2]: Leaving directory '/home/guest/lazarus/ide'
  13. make[1]: *** [Makefile:5112: lazbuilder] Error 2
  14. make[1]: Leaving directory '/home/guest/lazarus/ide'
  15. 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

  • New member
  • *
  • Posts: 8
Re: Fpcres related error when building Lazarus from sources
« Reply #1 on: March 02, 2021, 04:21:32 pm »
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?

 

TinyPortal © 2005-2018