How to create Makefile for magick wand

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
erotavlas_turbo

How to create Makefile for magick wand

Post by erotavlas_turbo »

Hi all,

I have written a C code that use magick wand libraries. It compiles and works well. How can i add this part of code to existing program?This program is compiled with a Makefile.
How can i add the compilation parameters to Makefile?

Code: Select all

 EXAMPLE cc `MagickWand-config --cflags --cppflags` -o wand wand.c `MagickWand-config --ldflags --libs`
PS I'm not expert programmer...

Thank you
erotavlas_turbo

Re: How to create Makefile for magick wand

Post by erotavlas_turbo »

I have solved my question. It's necessary to add two flag at compiler input.

Code: Select all

CFLAGS += `MagickWand-config --cflags --cppflags`

CFLAGS += `MagickWand-config --ldflags --libs`
Now the whole program compiles well, but it doesn't work...
Post Reply