Hi,
I am using lazarus on Raspberry Pi 3 Raspbian Jessie with sources from trunk. To be able to build a service application I wanted to install lazdeamon package. I have failed to compile both under GUI or from command line to compile. Error details are as follows:
make[2]: Entering directory '/home/pi/lazarus/source/ide'
/home/pi/fpc-3.1/bin/fpc -gl -vbqewnhi -Sci -dlclgtk2 -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../components/custom -Fuframes -Fu. -Fiinclude -Fiinclude/linux -Fi../images -FE.. -FU../units/arm-linux/gtk2 -Fl/usr/lib/gcc/arm-linux-gnueabihf/4.9 -Flinclude -Fl/etc/ld.so.conf.d/*.conf @/root/.lazarus/idemake.cfg -darm lazarus.pp
Hint: (11030) Start of reading config file /root/.fpc.cfg
Hint: (11031) End of reading config file /root/.fpc.cfg
Hint: (11030) Start of reading config file /root/.lazarus/idemake.cfg
Hint: (11031) End of reading config file /root/.lazarus/idemake.cfg
Free Pascal Compiler version 3.1.1 [2017/02/22] for arm
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Linux for ARMHF
(3104) Compiling lazarus.pp
(9022) Compiling resource /home/pi/lazarus/source/units/arm-linux/gtk2/lazarus.or
/home/pi/lazarus/source/ide/lazarus.pp(159,1) Error: (9030) Can't call the resource compiler "/home/pi/fpc-3.1/bin/fpcres", switching to external mode
/home/pi/lazarus/source/ide/lazarus.pp(159,1) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
make[2]: *** [lazarus] Error 1
make[1]: *** [idepkg] Error 2
make: *** [idepkg] Error 2
Error: /home/pi/fpc-3.1/bin/ppcarm returned an error exitcode
Makefile:3961: recipe for target 'lazarus' failed
make[2]: Leaving directory '/home/pi/lazarus/source/ide'
Makefile:4383: recipe for target 'idepkg' failed
make[1]: Leaving directory '/home/pi/lazarus/source/ide'
Makefile:3160: recipe for target 'idepkg' failed
make: Leaving directory '/home/pi/lazarus/source'
Error: (lazarus) Build IDE: stopped with exit code 512
Error: (lazarus) Building IDE: Building IDE failed.
root@raspberrypi:/home/pi/lazarus/source# /home/pi/fpc-3.1/bin/fpcres
fpcres - resource file converter, version 2.0 [2017/02/22], FPC 3.1.1
Host platform: Linux - arm
Copyright (c) 2008 by Giulio Bernardi.
Syntax: fpcres [options] <inputfile> [<inputfile>...] [-o <outputfile>]
Options:
--help, -h, -? Show this screen.
--version, -V Show program version.
--verbose, -v Be verbose.
--input, -i <x> Ignored for compatibility.
--output, -o <x> Set the output file name.
-of <format> Set the output file format. Supported formats:
res, elf, coff, mach-o, external
--arch, -a <name> Set object file architecture. Supported architectures:
i386, x86_64, arm (coff)
i386, x86_64, powerpc, powerpc64, arm, armeb, m68k,
sparc, alpha, ia64, mips, mipsel (elf)
i386, x86_64, powerpc, powerpc64, arm, aarch64 (mach-o)
bigendian, littleendian (external)
--subarch, -s <name> Set object file sub-architecture. Supported values:
arm: all, v4t, v6, v5tej, xscale, v7
other architectures: all
@<file> Read more options from file <file>
Default output target: arm - elf-all
root@raspberrypi:/home/pi/lazarus/source#
As you can see in the last part, fpcres is perfectly in the search path and can be executed.
I could not understand the main reason behind and appreciate any help.
Thanks.