GraphicsMagick-Config(1)

✨ GraphicsMagick-Config(1) ✨

Bestie, this is the page for GraphicsMagick-config πŸŽ€ It's a General Commands Manual command, so you run it straight from your terminal πŸ’…


✨ NAME ✨

GraphicsMagick-config, get info about the installed version of GraphicsMagick 🧚

✨ SYNOPSIS ✨

GraphicsMagick-config [--cflags] [--cppflags] [--exec-prefix]
[--ldflags] [--libs] [--prefix] [--version]

✨ DESCRIPTION ✨

okay so GraphicsMagick-config is literally the helper that prints the compiler and linker flags you need to compile and link programs that use the GraphicsMagick Application Programmer Interface πŸ’– It's giving main character energy for your build πŸ”₯

✨ EXAMPLES ✨

First, to print the version of the GraphicsMagick distribution you have installed, just do:

GraphicsMagick-config --version

And to compile a program that calls the GraphicsMagick Application Programmer Interface, do this 🫢

cc `GraphicsMagick-config --cflags --cppflags --ldflags --libs` program.c

✨ OPTIONS ✨

  • --cflags β€” prints the compiler flags that were used to compile libMagick 🌸
  • --cppflags β€” prints the preprocessor flags your program needs so it can find the GraphicsMagick C include files and defines. This keeps the GraphicsMagick data structures matching between your program and the installed libraries, so nothing gets weird πŸ¦‹
  • --exec-prefix β€” prints the directory where target-specific binaries and executables get installed 🧚
  • --ldflags β€” prints the linker flags needed to link with the GraphicsMagick library ⭐
  • --libs β€” prints the linker flags needed to link a program with libGraphicsMagick πŸ’œ
  • --version β€” prints the GraphicsMagick distribution version to standard output ✨
Heads up: --prefix is in the SYNOPSIS, but this page doesn't have its own entry for it, so I'm not gonna guess what it does πŸ™ˆ

Copyright (C) 2002 GraphicsMagick Group

Copyright (C) 2002 ImageMagick Studio

✨ AUTHORS ✨

Bob Friesenhahn πŸ‘‘


That's a wrap on GraphicsMagick-Config(1) 🌈 It's from the GraphicsMagick source, dated 4 December 2002. Stay iconic! πŸ’œπŸ’