All apps/pkg-config

pkg-config

pkg-config

Return metainformation about installed libraries.

Runs as pkg-config|macOS, Linux, Windows|www.freedesktop.org

Command form

ai-draft · 2 tasks · 10 fields

Print compile and link flags or test for a library. Pick one query flag per run.

Opens the form; the finished command lands at your prompt, unrun
otty gui pkg-config
Query librariesExample values, fixed in this page — nothing here reaches a terminal
Basic
Libraries*
string
Compile flags
--cflags
Link flags
--libs
TasksEach one presets the form for one job
Compile and link flags
cflagslibslibraries
Library exists?
existslibraries
ParametersOnly these flags are editable in the form
Libraries
string · positional 0 · repeatable
Compile flags
boolean
--cflags
Link flags
boolean
--libs
Module version
boolean
--mod-version
Test that the library exists
boolean
--exists
Require at least version
string
--atleast-version
Print a variable
string
--variable
Static linking output
boolean
--static
Print errors
boolean
--print-errors
List all modules
boolean
--list-all
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed pkg-config against its version. A form that does not match your version is not offered.