Skip to content
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 issue on Raspberry Pi bullseye #2990

Open
maxim-sloyko-yohana opened this issue Feb 1, 2024 · 0 comments
Open

pkg-config issue on Raspberry Pi bullseye #2990

maxim-sloyko-yohana opened this issue Feb 1, 2024 · 0 comments

Comments

@maxim-sloyko-yohana
Copy link

I'm not sure this is the right place to report the packaging problem, so my apologies if it's not.
The libmosquitto.pc file in Raspberry Pi bullseye distribution currently looks like this:

prefix=/usr
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib

Name: mosquitto
Description: mosquitto MQTT library (C bindings)
Version: 2.0.11
Cflags: -I${includedir}
Libs: -L${libdir} -lmosquitto

However, libmosquitto.so is actually installed at /usr/lib/aarch64-linux-gnu/libmosquitto.so.
This can lead to -lmosquitto not found linking error. On my system I had to change the libdir= line above to

libdir=${exec_prefix}/lib/aarch64-linux-gnu

for my pkg-config based build to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant