Hello,
My hardware: Bananapi m3
pi@bpi-iot-ros-ai:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
pi@bpi-iot-ros-ai:~$ uname -a
Linux bpi-iot-ros-ai 3.4.39-BPI-M3-Kernel #1 SMP PREEMPT Tue May 3 13:47:01 UTC 2016 armv7l armv7l armv7l GNU/Linux
I freshly installed Lazarus with
apt-get install fp-compiler-3.0.0
apt-get install lazarus-1.6
Trying to compile a test program results in:
Compile Project, Target: project1: Exit code 256, Errors: 1, Warnings: 2
project1.lpr(22,0) Warning: "crtbegin.o" not found, this will probably cause a linking failure
project1.lpr(22,0) Warning: "crtend.o" not found, this will probably cause a linking failure
/usr/bin/ld.bfd: warning: link.res contains output sections; did you forget -T?
//usr/lib/arm-linux-gnueabihf/libgdk-x11-2.0.so: undefined reference to `XRRFreeMonitors'
//usr/lib/arm-linux-gnueabihf/libgdk-x11-2.0.so: undefined reference to `XRRGetMonitors'
project1.lpr(22,0) Error: Error while linking
Yes, about the "crtbegin.o" I know I have to edit the GCC library path in /etc/fpc.cfg - I will do that (later).
What really gets me clueless is the
//usr/lib/arm-linux-gnueabihf/libgdk-x11-2.0.so: undefined reference to `XRRFreeMonitors'
//usr/lib/arm-linux-gnueabihf/libgdk-x11-2.0.so: undefined reference to `XRRGetMonitors'
I did not fail to miss these double slashes "//" at the beginning. Some config file or other must be wrong.
Can you help me to fix that, please?