Magick++ Decode Delegate Problem
Posted: 2009-02-18T13:54:54-07:00
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.
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.