In the terminal enter the below via command line:
sudo apt-get install libgraphicsmagick++-dev, qt5-default, qtcreator
Open .pro file with Qt Creator. Select Release as the mode and click run. Alternatively you can use qmake passing in the location of the .pro file.
Install brew by running the below via command line:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install graphicsmagick with brew via the command line:
brew install graphicsmagick
Install Qt Creator and open the .pro file. Run the project in Release mode with the Clang compiler.
Compile Qt 5 using MinGW. Rough guide can be found here
Compile GraphicsMagick using Visual Studio 12. Start by downloading the Windows GraphicsMagick src
Run it after installing. Next in the shell cd to the directory. Afterwards run this command.
sh configure prefix=$GMQ8_PREFIX --build $MACHTYPE --enable-shared --disable-static --with-quantum-depth=8 --without-perl --disable-installed
When its finished go into the directory .\Magick++\lib there should be some files with extension *.la *lai. These are executable files you can use in your project (similar to DLL). Now with the compiled libraries you have to include this in your Qt project
Open the .pro file. To include the .la files add a row starting with INCLUDEPATH += “here put the path of the directory where the la files are. Add another row starting with LIBS+= -L “here you have to put the path where the headers files are. These files should be in the subdirectory \Magick++\lib\Magick++.
Install Qt Creator. Run the project in release mode.