Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

21
pkg-config Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pkg-config
> Provide the details of installed libraries for compiling applications.
> More information: <https://www.freedesktop.org/wiki/Software/pkg-config/>.
- 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`