1Magick-Config(1) General Commands Manual Magick-Config(1)
2
3
4
6 Magick-config - get information about the installed version of
7 ImageMagick
8
10 Magick-config [--cflags] [--cppflags] [--exec-prefix] [--ldflags]
11 [--libs] [--prefix] [--version]
12
14 Magick-config prints the compiler and linker flags required to compile
15 and link programs that use the ImageMagick Application Programmer
16 Interface.
17
19 To print the version of the installed distribution of ImageMagick, use:
20
21 Magick-config --version
22
23 To compile a program that calls the ImageMagick Application Programmer
24 Interface, use:
25
26 cc `Magick-config --cflags --cppflags --ldflags --libs` program.c
27
28
30 --cflags
31 Print the compiler flags that were used to compile libMagick.
32
33 --cppflags
34 Print the preprocessor flags that are needed to find the
35 ImageMagick C include files and defines to ensure that the
36 ImageMagick data structures match between your program and the
37 installed libraries.
38
39 --exec-prefix
40 Print the directory under which target specific binaries and
41 executables are installed.
42
43 --ldflags
44 Print the linker flags that are needed to link with the
45 ImageMagick library.
46
47 --libs Print the linker flags that are needed to link a program with
48 libMagick.
49
50 --version
51 Print the version of the ImageMagick distribution to standard
52 output.
53
55 See http://www.imagemagick.org/script/license.php
56
58 John Cristy, ImageMagick Studio LLC
59
60
61
62ImageMagick 2 May 2002 Magick-Config(1)