Page 1 of 1

trouble installing Magick ++

Posted: 2010-08-29T23:07:05-07:00
by Puff_the_dragon
I'm not much of a programmer unfortunately, and any help would be appreciated.

I installed Magick++ from the windows binaries.

I copy pasted this into QT creator, it coudn't find Magick++.h at first so I just copy/pasted the relevant headers + folders from source into my project :

Code: Select all

#include <iostream>
#include <Magick++.h>
#include <string>

using namespace std;
using namespace Magick;


int main( int /*argc*/, char ** argv)
{

  // Initialize ImageMagick install location for Windows
  InitializeMagick(*argv);

    cout << "Hello World";
    cin.get();

   return 0;
}
The compiler gives me a undefined reference Magick::InitializeMagick(const char*) error.

Re: trouble installing Magick ++

Posted: 2010-08-30T02:20:53-07:00
by Puff_the_dragon
Okay, so I add this to the .pro file of my project:


INCLUDEPATH += "C:\Program Files\ImageMagick-6.6.3-Q16\include"
INCLUDEPATH += "C:\Program Files\ImageMagick-6.6.3-Q16\lib"

LIBS += "C:\Program Files\ImageMagick-6.6.3-Q16\lib\CORE_RL_magick_.lib"
LIBS += "C:\Program Files\ImageMagick-6.6.3-Q16\lib\CORE_RL_Magick++_.lib"

LIBS += "C:\Program Files\ImageMagick-6.6.3-Q16\lib\CORE_RL_wand_.lib"

Is there something I am missing here? I can't figure out for the life of me what else the problem might be other than having not included the right paths/library!

(Sorry for bad grammar, early in the morning and english is my second language)