Page 1 of 1

Cannot find colors.xml?

Posted: 2018-10-13T19:03:27-07:00
by Gabriel_R
Hi, I am currently using visual studios to compile my Magick++ program. I have come across this error:

Code: Select all

Exception thrown at 0x00007FFEA63BA388 in StaticMagick++.exe: Microsoft C++ exception: Magick::WarningConfigure at memory location 0x0000004EF41DEF00.
Unhandled exception at 0x00007FFEA63BA388 in StaticMagick++.exe: Microsoft C++ exception: Magick::WarningConfigure at memory location 0x0000004EF41DEF00.
Upon closer look, it seems that it cannot find colors.xml.

Code: Select all

"Magick: UnableToOpenConfigureFile `colors.xml' @ warning/configure.c/GetConfigureOptions/714"
The code I wrote is two lines:

Code: Select all

	Image blank(Geometry(512, 512), Color("red"));
	blank.write("blank.png");
However, this can compile:

Code: Select all

	Image blank(Geometry(512, 512), Color(QuantumRange, 0, 0));
	blank.write("blank.png");
I found a previous post long ago detailing the same problem but in ImageMagick6, however it didn't really help me in solving the problem.

So how do I fix this problem?
I am currently using ImageMagick 7.0.8, compiled with visual studios (Using Debug x64). The platform is on windows.

Re: Cannot find colors.xml?

Posted: 2019-01-05T23:31:56-07:00
by Coder
Hi,

I am not sure this will help you or not. I have faced same kind of issue, you probably need to set environment variable "MAGICK_CONFIGURE_PATH".