Installing ImageMagick for C(++) on Ubuntu 12.10

Posted by user167747 on Ask Ubuntu See other posts from Ask Ubuntu or by user167747
Published on 2013-06-16T19:31:47Z Indexed on 2013/06/27 22:29 UTC
Read the original article Hit count: 198

Filed under:
|
|

I'm having a hard time installing the ImageMagick software for Ubuntu 12.10.

So, I want the C and C++ API, not much more. Now when I go to imagemagick.org, they have a binary package for unix, namely an rpm. When I download and launch it, RPM complains that firstly I should be using alien, and secondly there are like 10000 missing dependencies. If I use alien to create a deb file, and the install it via the software center, the package does indeed install, but only the command line interface - no includes, anything. Same with apt-get imagemagick. (BTW - wtf, they don't have support for ubuntu?)

I tried compiling from source (which I shoudn't be doing anyway - I'm not expecting much customization am I?), and then the includes are present, but the programs won't compile complaining about "undefined reference" and then a list of everything that isn't pure C (and I'm using the command imagemagick.org told me to use, namely cc -o wand pkg-config --cflags --libs MagickWand wand.c) so clearly I'm doing something wrong.

Any help would be much appreciated.

© Ask Ubuntu or respective owner

Related posts about installation

Related posts about 12.10