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.
/usr/lib/pkgconfig/
there are some. The man page also includes one. – Braiam May 15 '14 at 12:57