Project

General

Profile

Tasks #2789

pkgconfig files for libraries

Added by Wido den Hollander about 7 years ago. Updated about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
librados
Target version:
-
Start date:
07/17/2012
Due date:
% Done:

0%

Spent time:
Tags:
Reviewed:
Affected Versions:
Pull request ID:

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?

0001-Generate-pkg-config-files.patch View (3.93 KB) Wido den Hollander, 07/19/2012 05:09 AM

History

#1 Updated by Sage Weil about 7 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 7 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.

Also available in: Atom PDF