From 856f93704e2c04a59718137498464cae499e635c Mon Sep 17 00:00:00 2001 From: Hojjat Date: Thu, 14 May 2020 11:23:32 -0600 Subject: [PATCH] pkg-config: add page (#4045) --- pages/linux/pkg-config.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/linux/pkg-config.md diff --git a/pages/linux/pkg-config.md b/pages/linux/pkg-config.md new file mode 100644 index 0000000000..7b85a504ea --- /dev/null +++ b/pages/linux/pkg-config.md @@ -0,0 +1,16 @@ +# pkg-config + +> Provide the details of installed libraries for compiling applications. +> More information: . + +- Get the list of libraries and their dependencies: + +`pkg-config --libs {{library1 library2 ...}}` + +- Get the list of libraries, their dependencies, and proper cflags for gcc: + +`pkg-config --cflags --libs {{library1 library2 ...}}` + +- Compile your code with libgtk-3, libwebkit2gtk-4.0 and all their dependencies: + +`c++ example.cpp $(pkg-config --cflags --libs gtk+-3.0 webkit2gtk-4.0) -o example`