Cannot find colors.xml?
Posted: 2018-10-13T19:03:27-07:00
Hi, I am currently using visual studios to compile my Magick++ program. I have come across this error:
Upon closer look, it seems that it cannot find colors.xml.
The code I wrote is two lines:
However, this can compile:
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.
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.
Code: Select all
"Magick: UnableToOpenConfigureFile `colors.xml' @ warning/configure.c/GetConfigureOptions/714"
Code: Select all
Image blank(Geometry(512, 512), Color("red"));
blank.write("blank.png");
Code: Select all
Image blank(Geometry(512, 512), Color(QuantumRange, 0, 0));
blank.write("blank.png");
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.