https://tracker.ceph.com/https://tracker.ceph.com/favicon.ico2012-07-17T08:48:40ZCeph Ceph - Tasks #2789: pkgconfig files for librarieshttps://tracker.ceph.com/issues/2789?journal_id=118362012-07-17T08:48:40ZSage Weilsage@newdream.net
<ul></ul><p>There is a librados-config in librados-dev. Does that mean we just need a librbd-config too?</p> Ceph - Tasks #2789: pkgconfig files for librarieshttps://tracker.ceph.com/issues/2789?journal_id=118592012-07-19T05:09:58ZWido den Hollanderwido@42on.com
<ul><li><strong>File</strong> <a href="/attachments/download/479/0001-Generate-pkg-config-files.patch">0001-Generate-pkg-config-files.patch</a> <a class="icon-only icon-magnifier" title="View" href="/attachments/479/0001-Generate-pkg-config-files.patch">View</a> added</li></ul><p>No, I'm talking about: <a class="external" href="http://en.wikipedia.org/wiki/Pkg-config">http://en.wikipedia.org/wiki/Pkg-config</a></p>
<p>I added a patch which adds these files, but I'm not that good with Makefiles, so that is still lacking.</p>
<p>The files should end up in $prefix/lib/pkgconfig, user could then do:</p>
<pre>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:~#</pre>
<p>Or something like:</p>
<pre>gcc -o testrados testrados.cpp $(pkg-config --libs librados)</pre>
<p>These files should work, they should just end up in the -dev packages for Debian and the -devel packages for RHEL.</p>