GTK+(1)
π GTK+(1) β the gtk-config era, bestie π
okay so real talk, this is the gtk-config manual page from way back β GTK+ version 1.2.10, dated 25 October 1998 β and yes she's vintage but she still slays. Let's get into it π
β¨ NAME β¨
gtk-config β a lil script that tells you everything about the GTK+ you've got installed π
πΈ SYNOPSIS πΈ
gtk-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs]
[--cflags]
look at her. so compact. so iconic. π
π¦ DESCRIPTION π¦
okay so picture this: you're building a program that uses GTK+ and you need to know what compiler flags and linker flags to feed your build system. that's literally the whole job. gtk-config is the tool you run to figure out the compiler and linker flags that should be used to compile and link programs that use GTK+. π«Ά
and ngl, she's not just out here for you β she's also used internally by the .m4 macros for GNU autoconf that ship with GTK+. so she's basically the backbone of the whole build situation. main character energy, fr fr. π
π OPTIONS π
gtk-config accepts the following options:
--versionβ prints the currently installed version of GTK+ straight to standard output. cute, quick, informative. β¨--libsβ prints the linker flags you need to link a GTK+ program. this is the one you want when your linker is mad at you. π₯--cflagsβ prints the compiler flags you need to compile a GTK+ program. your compiler will thank you. πΈ--prefix=PREFIXβ if you specify this, usePREFIXinstead of the installation prefix that GTK+ was built with when computing the output for the--cflagsand--libsoptions. this option is also used for the exec prefix if--exec-prefixwasn't specified. π¨ important: this option must be specified before any--libsor--cflagsoptions. order matters, bestie, don't play yourself. π--exec-prefix=PREFIXβ if you specify this, usePREFIXinstead of the installation exec prefix that GTK+ was built with when computing the output for the--cflagsand--libsoptions. same deal as above: this option must be specified before any--libsor--cflagsoptions. β
lowkey the biggest trap here is the ordering thing. if you put--prefixafter--cflagsshe will simply not do the thing you wanted. put her first. periodt. π
π§ SEE ALSO π§
go read those too, iykyk π
π COPYRIGHT π
Copyright Β© 1998 Owen Taylor
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. π
that's the whole page bestie, no cap. every flag, every caveat, all of it. π
Version 1.2.10 Β· dated 25 October 1998 Β· that's the source and the date right there, mwah, bye bestie πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- fedora 43: gtk+-devel 1:1.2.10-111.fc43 Β· LGPL-2.0-or-later
- fedora 43: gtk+-devel 1:1.2.10-111.fc43 Β· LGPL-2.0-or-later
- fedora 44: gtk+-devel 1:1.2.10-112.fc44 Β· LGPL-2.0-or-later
- fedora 44: gtk+-devel 1:1.2.10-112.fc44 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms