Page 1 of 1

Magick++ Decode Delegate Problem

Posted: 2009-02-18T13:54:54-07:00
by Hozer
I've successfully compiled the IM binaries on Ubuntu, 64-bit with libjpeg into a personal directory on my system (I have no root access).
I can run convert and mogrify on jpeg's successfully, but when I #include <Magick++.h> and attempt to read in a jpg file, I get the standard Magick::ErrorMissingDelegate.

Here's the code:
#include <Magick++.h>
int main(int argc, char** argv) {
Magick::Image image;
image.read("./img.jpg");
}

compiled as follows:
g++ -g -O2 -Wall -W -pthread -I/home/jim/Desktop/Magick++/include/ImageMagick/ -I/home/jim/Desktop/Magick++/include/ImageMagick/Magick++ -L/home/jim/Desktop/Magick++/lib/ -I/home/jim/Desktop/libjpeg/include/ -L/home/jim/Desktop/libjpeg/lib/ -lMagick++ -lMagickWand -lMagickCore -ljpeg test_img.cc -o test_img

Been working on this for a couple days, so any help is appreciated.

Re: Magick++ Decode Delegate Problem

Posted: 2009-02-18T14:25:14-07:00
by magick
Run the identify command like this:
  • identify -list format
Is rw- associated with the JPEG tag? If not, you did not build ImageMagick with support for JPEG. Rerun the configure script and pay close attention to the output. Make sure it validates the JPEG library before you compile the distribution.

Re: Magick++ Decode Delegate Problem

Posted: 2009-02-18T14:27:26-07:00
by Hozer
Yes indeed.

/home/jim/Desktop/Magick++/bin/identify -list format
output:
JPEG* JPEG rw- Joint Photographic Experts Group JFIF format (62)
JPG* JPEG rw- Joint Photographic Experts Group JFIF format

Re: Magick++ Decode Delegate Problem

Posted: 2009-02-18T15:09:21-07:00
by Hozer
Again, the issue is with Magick++ only. I can run the binaries without issue.
Anyone have _any_ suggestions?