pkg-config使用

pkg-config可用与列举出某个库的相关信息,比如此库的路径、相关头文件路径,以及依赖文件

pkg-config --libs gio-2.0
-L/home/xxx/host/usr/aarch64-linux-gnu/sysroot/usr/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0  

pkg-config --cflags gio-2.0
-I/xxx/output/mesongxl_p241_kernel49/host/usr/aarch64-linux-gnu/sysroot/usr/include/glib-2.0 -I/xxx/output/mesongxl_p241_kernel49/host/usr/aarch64-linux-gnu/sysroot/usr/lib/glib-2.0/include -I/xxx/output/mesongxl_p241_kernel49/host/usr/aarch64-linux-gnu/sysroot/usr/include -pthread


https://blog.csdn.net/bryce_xiao/article/details/70787810

https://blog.csdn.net/absurd/article/details/599813

https://blog.csdn.net/ccf19881030/article/details/9042733


你可能感兴趣的:(总结)