0

user2702245 said

pkg-config --clibs --flags <package> is good enough to provide linker and include information.

I tried to find out such information about libgoogle-perftools-dev I installed from software center in Ubuntu 12.04.

$ pkg-config --libs --cflags libgoogle-perftools-dev
Package libgoogle-perftools-dev was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgoogle-perftools-dev.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgoogle-perftools-dev' found

Not found for libgoogle-perftools, libgoogle, or perftools either.

So I wonder how to find the correct name of libgoogle-perftools-dev so that pkg-config --libs --cflags can return something? Thanks.

1 Answer 1

1

I checked the libgoogle-perftools-dev list of files and is right. That package doesn't include any pkg-config file to list the headers and libraries of the packages.

You can fill a bug report if you feel this isn't correct.

5
  • what files should the package include so that pkg-config can find it?
    – Tim
    May 15, 2014 at 12:44
  • @Tim pkg-config ones, the man has an example to make one yourself.
    – Braiam
    May 15, 2014 at 12:49
  • what do "pkg-config ones" look like?
    – Tim
    May 15, 2014 at 12:52
  • @Tim in /usr/lib/pkgconfig/ there are some. The man page also includes one.
    – Braiam
    May 15, 2014 at 12:57
  • .pc files? /usr/lib/pkgconfig/ only has very few pc files. What other files did you look for in packages.debian.org/wheezy/amd64/libgoogle-perftools-dev/…?
    – Tim
    May 15, 2014 at 12:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .