On Thu, 21 Feb 2019 19:06:48 +0100, Joe via lazarus <lazarus@lists.lazarus-ide.org> wrote:
>But unfortunately, this Lazarus didn't compile my test programs. Error >message: >"Project1.lpr(23,0): Error: resource compiler "fpcres" not found, >switching to external mode" > >Steps to reproduce: >Create a new Raspian Stretch (Nov 2018) system, switch locale to German, >create Lazarus 2.0.0 with Bo's script. >with this Lazarus create a new project. Put a ToggleBox ToggleBox1 on >Form1; Create an On Change >event handler for ToggleBox1, content "ShowMessage ('Hello')". Try to >compile. > >'sum'-Checksum of the script: 12667 >Hardware: Pi 3B+ >Result of 'sudo find / -name fpcres': >/home/pi/dev/fpc/3.0.4/utils/fpcres >/home/pi/bin/fpcres >/home/pi/share/src/fpc-3.0.4/fpc/utils/fpcres As I have written in the script it deposits the fpc and lazarus entirely within the users home dir, thus not polluting the system. So /home/pi/bin is on path and where the binaries built by make all and deposited by make install results in using this dir. On my test machine: $ which fpcres /home/pi/bin/fpcres I.e. exactly like you have. So I proceeded to do what you described to replicate. Compile messages: Compile Project, Target: /home/pi/tmp/project1: Success, Warnings: 2 project1.lpr(23,0) Warning: "crtbegin.o" not found, this will probably cause a linking failure project1.lpr(23,0) Warning: "crtend.o" not found, this will probably cause a linking failure (I have seen this crtbegin-crtend warning before, but have forgotten how to fix it, it is caused by something inside fpc.conf, I believe.) And finally if I hit the green arrow to run the project it compiles again and then runs and shows the form with the togglebox. When clicked the message is show normally. The only difference from your steps is that I have not changed locale of my Pi.... And Raspbian is what I already have: $ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 9.6 (stretch) Release: 9.6 Codename: stretch I don't know any command to use to get any more info regarding Raspbian... -- Bo Berglund Developer in Sweden -- _______________________________________________ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus