caca-config(1)

✨ caca-config β€” the manual, but make it cute ✨

okay so bestie, this is the General Commands Manual page for caca-config, and honestly? it's giving "elder millennial who still knows all the tricks" πŸ’…


🌸 NAME 🌸

caca-config β€” a script that tells you stuff about the version of libcaca that's actually installed on your machine πŸ¦‹


🌈 SYNOPSIS 🌈

caca-config [ --prefix= DIR] [ --exec-prefix= DIR] [ --version ] [
--libs ] [ --cflags ]

πŸ’– DESCRIPTION πŸ’–

caca-config is that one tool you use to configure things and figure out the compiler and linker flags you need in order to compile and link programs, libraries, and plugins that use libcaca. iconic behaviour, no notes ✨

⚠️ okay so real talk β€” using caca-config is deprecated. the more generic tool pkg-config is the one you should be using instead. periodt πŸ’€

πŸŽ€ OPTIONS πŸŽ€

  • --cflags β€” prints the compiler flags you need to compile a program or library that uses libcaca. your "please compile bestie" starter pack 🫢
  • --exec-prefix=DIR β€” if you specify this, it uses DIR instead of the installation exec prefix that libcaca was built with when it's computing the output for the --cflags and --libs options. 🚨 this option has to come BEFORE any of the --cflags and --libs options β€” order matters, don't play yourself 🚨
  • --libs β€” prints the linker flags you need to link a program or library that uses libcaca. the "and now we link it up" moment πŸ”—
  • --prefix=DIR β€” if you specify this, it uses PREFIX instead of the installation prefix that libcaca was built with when it's computing the output for the --cflags and --libs options. it's also used for the exec prefix if --exec-prefix wasn't specified. and yes β€” this one also has to come before any of the --cflags and --libs options, same energy as above 🌟
  • --version β€” prints the currently installed version of libcaca to standard output. the "who even are you" check πŸ‘‘

🌟 EXAMPLES 🌟

gcc -o main.o $(caca-config --cflags) -c main.c

is how you might use caca-config to compile a C source file into an executable program. main character build energy πŸ’œ

gcc -o my_app $(caca-config --libs) main.o util.o

is how you might use caca-config to link compiled objects into an executable program. and that's how the app gets born πŸ¦‹


πŸ‘€ SEE ALSO πŸ‘€


πŸ’Œ AUTHOR πŸ’Œ

the libcaca library was written by Sam Hocevar <sam@hocevar.net> 🌈

this manual page was written for sdl-config by Branden Robinson, originally for Progeny Linux Systems, Inc., and the Debian Project. it was then adapted to libcaca by Sam Hocevar. a whole glow-up arc, we love to see it πŸ’…


🌸 the sign-off 🌸

this page comes to you from libcaca, dated 2003-11-22 β€” an absolute vintage queen, still slaying in caca-config(1) πŸŽ€βœ¨

mwah, go read pkg-config(1) bestie, it's the moment πŸ’–

πŸ“¦ where this page comes from