-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkg-config is not able to complete configuration #754
Comments
BB_PKG_CONFIG points to the script below: #!/bin/sh |
user@host: ls -l /path/to/sysroot/usr/lib/pkgconfig/ |
Are you sure you have included all the relevant .pc file directories? I know every build environment is different, but for my cross-compiler I have
|
I attached above the list of all the pc files I have installed. It seems to cover all required deps for bluealsa. |
btw, LIBS="-ltinfo" is required for libreadline , otherwise ld fails to link it. here is pc file for readline: prefix=/usr Name: Readline as you can see, tinfo.pc is referenced and should be handled appropriately |
Hmm, everything works just fine as it is in my cross-build environment (build: x86_64-linux-gnu, host: arm-linux-gnueabihf) $ arm-linux-gnueabihf-ldd ./rpi-bookworm/Build/bluealsa/utils/rfcomm/bluealsa-rfcomm
libdbus-1.so.3 => /lib/arm-linux-gnueabihf/libdbus-1.so.3 (0x8badf00d)
libsystemd.so.0 => /lib/arm-linux-gnueabihf/libsystemd.so.0 (0x8badf00d)
libcap.so.2 => /lib/arm-linux-gnueabihf/libcap.so.2 (0x8badf00d)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x8badf00d)
ld-linux-armhf.so.3 => /lib/ld-linux-armhf.so.3 (0x8badf00d)
libgcrypt.so.20 => /lib/arm-linux-gnueabihf/libgcrypt.so.20 (0x8badf00d)
libgpg-error.so.0 => /lib/arm-linux-gnueabihf/libgpg-error.so.0 (0x8badf00d)
liblzma.so.5 => /lib/arm-linux-gnueabihf/liblzma.so.5 (0x8badf00d)
libzstd.so.1 => /lib/arm-linux-gnueabihf/libzstd.so.1 (0x8badf00d)
liblz4.so.1 => /lib/arm-linux-gnueabihf/liblz4.so.1 (0x8badf00d)
libreadline.so.8 => /lib/arm-linux-gnueabihf/libreadline.so.8 (0x8badf00d)
libtinfo.so.6 => /lib/arm-linux-gnueabihf/libtinfo.so.6 (0x8badf00d)
libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x8badf00d) As you can see it has picked up libreadine and libtinfo, without needing me to define any environment variables for configure. If you are needing to define BLUEZ_LIBS and GIO2_LIBS then surely this suggests that you build environment is incomplete? |
No, everything is complete here. But you should not rely on the assumption that the binaries are built with rpath because this is not always the case |
Yes, good point. So as far as But for |
I think that there was no pkg-config support for readline when it was added as a project dependency. If the pkg-config for readline nowadays is widely supported among Linux distributions we should add it. |
Problem
pkg-config is not able to make the full configuration. In order to complete configuration I have to specify a lot of dependencies.
Reproduction steps
cross-compile for armhf/aarch64
Setup
Additional context
The text was updated successfully, but these errors were encountered: