Tasks #2789
pkgconfig files for libraries
0%
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?
History
#1 Updated by Sage Weil about 11 years ago
There is a librados-config in librados-dev. Does that mean we just need a librbd-config too?
#2 Updated by Wido den Hollander about 11 years ago
- File 0001-Generate-pkg-config-files.patch View added
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.