pkg 常用命令

1 查看pkg 版本信息

$ pkg-config --modversion bluez
5.53

2 查看库名

$ pkg-config --libs bluez
-lbluetooth

3 查看库的头文件路径

$ pkg-config --cflags bluez

// 返回空
// 如果返回为空,说明头文件路径不在 /include 或者 /usr/include 下
// 引用头文件需要添加对应的路径文件夹 bluetooth
// #inlcude 

你可能感兴趣的:(常用命令工具,linux)