Cannot find colors.xml?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Gabriel_R
Posts: 1
Joined: 2018-10-13T18:37:53-07:00
Authentication code: 1152

Cannot find colors.xml?

Post 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.
Coder
Posts: 15
Joined: 2019-01-05T11:15:30-07:00
Authentication code: 1152

Re: Cannot find colors.xml?

Post 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".
Post Reply