Tasks #2789
open
pkgconfig files for libraries
Added by Wido den Hollander almost 12 years ago.
Updated almost 12 years ago.
Description
From the libvirt mailinglist I got the message that they'd like to see pkg-config for at least librbd and librados.
It shouldn't be that hard to generate these I think?
It requires a version thought, so we need to put a version in there for librados. Extract from the header file?
Files
There is a librados-config in librados-dev. Does that mean we just need a librbd-config too?
No, I'm talking about: http://en.wikipedia.org/wiki/Pkg-config
I added a patch which adds these files, but I'm not that good with Makefiles, so that is still lacking.
The files should end up in $prefix/lib/pkgconfig, user could then do:
root@amd:~# pkg-config --libs librados
-lrados -lcrypto
root@amd:~# pkg-config --libs librbd
-lrbd -lrados -lcrypto
root@amd:~# pkg-config --libs libcephfs
-lcephfs
root@amd:~#
Or something like:
gcc -o testrados testrados.cpp $(pkg-config --libs librados)
These files should work, they should just end up in the -dev packages for Debian and the -devel packages for RHEL.
Also available in: Atom
PDF