Hello. I am getting started with Magic++ and am having a problem getting a basic program to run. Here is the code.
Code: Select all
#include <iostream>
#include <Magick++.h>
using namespace std;
using namespace Magick;
int main()
{
Image hello_image;
hello_image.read("/media/[myUserName]/Data/test.bmp");
hello_image.display();
return 0;
}
I am compiling with Code::Blocks GCC compiler running under Linux Mint, and have successfully gotten the program to compile; however, the program crashes when run giving the following error.
Code: Select all
ImageMagicTest: magick/semaphore.c:531: LockSemaphoreInfo: Assertion `semaphore_info != (SemaphoreInfo *) ((void *)0)' failed.
Aborted
Process returned 134 (0x86) execution time : 0.006 s
Press ENTER to continue.
I haven't been able to figure out what is going on since googling Magic++ and the error will only give a handful of results, however, I have pinned the issue down to the line where I try to read in the image. I was confident with the code since it matches the examples given, but obviously something isn't working. Can anyone help me with this?
Thanks.