pkgconfig files for libraries
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?
#2 Updated by Wido den Hollander about 11 years ago
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.