An hour ago, I stumbled across this useful thread.
5 min ago I realized that it was me how started it
This project was paused for ......... quite a whilte. And I was able to use the same trick posted by Thaddy
pi@raspberry:/lib/i386-linux-gnu $ sudo cp libdbus-1.so.3 libdbus-1.so
to compile a project that includes dbus on
- Raspbian Buster Desktop i386 running in a VM using
- a fpcdeluxe installed
- Lazarus 2.0.12 and
- FPC 3.2.2
so I guess my specific bug from 2019 is still present.
HOWEVER, I want to use this VM to cross compile for Raspberry Pi as well using, which so far worked flawless - but trying to include dbus I've encountered a new problem.
I've tried to solve this error:
Debug: /home/pi/fpcupdeluxe/cross/bin/arm-linux/arm-linux-gnueabihf-ld: cannot find -ldbus-1
by replicating the solution I did for the i386 compiling project and doing:
pi@raspberry:~/fpcupdeluxe/cross/lib/arm-linux $ sudo cp libdbus-1.so.3 libdbus-1.so
This unfortunately results in another error when I try to cross compile for armhf linux:
Compile Project, Mode: ARM, CPU: arm, Target: VM_test_arm: Exit code 1, Errors: 1, Hints: 2
Hint: Start of reading config file /home/pi/fpcupdeluxe/fpc/bin/i386-linux/fpc.cfg
Hint: End of reading config file /home/pi/fpcupdeluxe/fpc/bin/i386-linux/fpc.cfg
Verbose: Free Pascal Compiler version 3.2.2-r49371 [2021/06/23] for arm
Verbose: Copyright (c) 1993-2021 by Florian Klaempfl and others
Verbose: Target OS: Linux for ARMHF
Verbose: Compiling VM_test.lpr
Verbose: Compiling resource /media/git_ARM_PI_VM_test/lib/arm-linux/VM_test.or
Verbose: Linking /media/git_ARM_PI_VM_test/VM_test_arm
Debug: /home/pi/fpcupdeluxe/cross/bin/arm-linux/arm-linux-gnueabihf-ld: warning: libsystemd.so.0, needed by /home/pi/fpcupdeluxe/cross/lib/arm-linux//libdbus-1.so, not found (try using -rpath or -rpath-link)
Debug: /home/pi/fpcupdeluxe/cross/bin/arm-linux/arm-linux-gnueabihf-ld: /home/pi/fpcupdeluxe/cross/lib/arm-linux//libdbus-1.so: undefined reference to `sd_listen_fds@LIBSYSTEMD_209'
Debug: /home/pi/fpcupdeluxe/cross/bin/arm-linux/arm-linux-gnueabihf-ld: /home/pi/fpcupdeluxe/cross/lib/arm-linux//libdbus-1.so: undefined reference to `sd_is_socket@LIBSYSTEMD_209'
VM_test.lpr(43,1) Error: Error while linking
VM_test.lpr(43,1) Verbose: There were 1 errors compiling module, stopping
Verbose: Compilation aborted
Verbose: /home/pi/fpcupdeluxe/fpc/bin/i386-linux/ppcrossarm returned an error exitcode
Any help is highly appreciated as I'm stuck for a while now trying to solve this