Page 1 of 1

how to setup magickwand c api (newbie question)

Posted: 2011-07-19T14:01:09-07:00
by spectre
Hello :)

I want to start to use the magickwand c api.

I work with codeblocks 10 and windows xp sp2

can you tell me what I need to download / configure in order to compile a simple c image-magick example ?

it's not clear for me

thanks and best regards

Spectre

Re: how to setup magickwand c api (newbie question)

Posted: 2011-07-19T15:42:33-07:00
by el_supremo
Download the Win32 dynamic binary version (pick Q8 or Q16) of the ImageMagick DLL installation file.
http://studio.imagemagick.org/script/bi ... hp#windows
Execute it, and in the dialog make sure you select to install the headers.

When you compile a program, codeblocks will need to know the following information. I use MSVC so I don't know how to set it in codeblocks but I presume you can figure that out.
- Add the path to your include directory in the compiler - something like "C:\Program Files\ImageMagick-6.7.1-Q8\include"
- for the linker stage, add the additional library directory C:\Program Files\ImageMagick-6.7.1-Q8\lib
- also for the linker, add the Additional Dependencies CORE_RL_magick_.lib CORE_RL_wand_.lib
and if you're using C++ also add CORE_RL_Magick++_.lib

Pete

Re: how to setup magickwand c api (newbie question)

Posted: 2011-07-20T00:09:44-07:00
by spectre
Dear Mr. el_supremo,

thanks for the exhaustive reply :) it works!

best regards

spectre