opening an image in c++ results in MissingDelegateError

Bug #389680 reported by Idokus
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cimg (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I am using CImg-dev icm. ImageMagick++ to open a file:

using namespace cimg_library;
CImg<unsigned char> comp = CImg<unsigned char>( "image.png" );

it compiles, but it results in a Error::MissingDelegate

Description: Ubuntu 9.04
Release: 9.04

Versions of the packages are recent downloaded. Magic version 6.4.5

What I found peculiar: in the Delegates it states jpeg and png (amongst others) but at the LIBS it does load -ljpeg but not -lpng
identify -list configure:
(..)
DELEGATES bzlib djvu freetype gvc jpeg jp2 lcms openexr png tiff x11 xml wmf zlib
(..)
LIBS -lMagickCore -llcms -ltiff -lfreetype -ljpeg -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lpthread -lltdl

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

reassigning from imagemagick to cimg

affects: imagemagick (Ubuntu) → cimg (Ubuntu)
Revision history for this message
Dimitrios Symeonidis (azimout) wrote :
Revision history for this message
Idokus (maarten-albers) wrote :

I actually tried that, but the recompiling/configuring ImageMagick did not work for me: I couldn't get it to compile with the png/jpeg options.

I tried several options, I even tried to compile more recent releases from the respective software developers, but I could not get it to compile satisfactory, with the enabled png/jpeg support. (I even tried editing the makefiles... but that was more out of disparation, then anything else.)

I also tried several different approaches in compiling cImg.

(I was lucky to find a program which more or less did what I had programmed, and compiled/used to run using the repositories of ubuntu 8.10/8.04)

I think it is an ImageMagick-development problem because, it did compile and run using the repositories of ubuntu 8.10. (More accurately, I think it's a dependency problem between the current build/repository ImageMagick-dev and CImg-dev)

Revision history for this message
Andreas Moog (ampelbein) wrote : Still an issue?

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Changed in cimg (Ubuntu):
status: New → Incomplete
Revision history for this message
Idokus (maarten-albers) wrote :

Close it, I'm using ImageMagick 6.6.2-6 at the moment, and a newer version of CImg. (Kubuntu 11.04) And I don't seem to have this problem anymore.

Revision history for this message
Andreas Moog (ampelbein) wrote : Closing the report.

Thanks, changing to Fixed.

Changed in cimg (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.