Magick++ Decode Delegate Problem

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
Hozer

Magick++ Decode Delegate Problem

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Magick++ Decode Delegate Problem

Post 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.
Hozer

Re: Magick++ Decode Delegate Problem

Post 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
Hozer

Re: Magick++ Decode Delegate Problem

Post by Hozer »

Again, the issue is with Magick++ only. I can run the binaries without issue.
Anyone have _any_ suggestions?
Post Reply