Linux command
cups-config 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Get CUPS include directory
cups-config --cflags
Get CUPS library flags
cups-config --libs
Get CUPS version
cups-config --version
Get all configuration
cups-config --all
说明
cups-config provides configuration information for CUPS (Common Unix Printing System). It's primarily used by build systems to determine compiler and linker flags when building software that uses CUPS libraries.
参数
- --cflags
- Print compiler flags for CUPS headers.
- --libs
- Print linker flags for CUPS libraries.
- --version
- Print CUPS version.
- --ldflags
- Print linker directory flags.
- --serverbin
- Print server binary directory.
- --serverroot
- Print server root directory.
- --datadir
- Print data directory.
FAQ
What is the cups-config command used for?
cups-config provides configuration information for CUPS (Common Unix Printing System). It's primarily used by build systems to determine compiler and linker flags when building software that uses CUPS libraries.
How do I run a basic cups-config example?
Run `cups-config --cflags` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --cflags do in cups-config?
Print compiler flags for CUPS headers.