Hi
I somehow realized that the directory structure of the release is not
equivalent to the Debug I compiled myself. Rearranging the files helped,
such that the debug-dll's was kept together with the xml files (this is
not the case in the release version, which I tried to "copy") - still
don't know why the binary release didn't work (clean all - compile
seemed to help).
Best regards
Preben Holm
Preben skrev:
> Hi
>
> I'm trying to print some text on an image using ImageMagick (Magick++)
> from my C++ program. However I get an exception:
> ---------------
> UnableToOpenConfigureFile 'type.xml' @ configure.c/GetConfigureOptions/553
> ---------------
>
>
> Here's my code sample (the class where the code is written inherits from
> Magick::Image):
> ---------------
> // Set font
> string fontname = "Arial";
> fontPointsize( 16 );
> font( fontname );
> strokeColor(Magick::Color(255, 0, 0));
> fillColor(Magick::Color(255, 0, 0));
> strokeWidth(2);
>
> // Specify text
> std::ostringstream ost; ost << i;
>
> // Drawable class
> Magick::DrawableFont font("Arial");
> Magick::DrawableText text(pos.GetX() + _center.GetX(), pos.GetY() +
> _center.GetY(), ost.str());
>
> // Draw to image
> draw(font);
> draw(text);
> ---------------
>
> The error seem to happen on "draw(text)".
>
>
> I can't really see what's wrong.
>
> If I put similar code into the example project (demo) I don't get this
> error. However everything else in my own project seems to work. I can't
> find the difference between the projects except their location.
>
> I used InitializeMagick(NULL), InitializeMagick(magick-home-directory),
> InitializeMagick(*argv) and none of the above seem to change anything.
>
>
> Do I need to set up some specific variables to get it working! What am I
> missing?
>
>
>
> Best regards,
>
> Preben Holm
> _______________________________________________
> Magick-users mailing list
> [email protected]
> http://studio.imagemagick.org/mailman/listinfo/magick-users
>
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users