Building the source


Linux

Ubuntu (18.04)

In the terminal enter the below via command line:

sudo apt-get install libgraphicsmagick++-dev, libc6-dev, libqt5core5a, libqt5gui5, libqt5widgets5, libomp-9-dev, 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.

qmake Photoflare.pro

Mac

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.

Windows

Download and install Visual Studio 2017:
https://www.visualstudio.com/downloads/

Download the latest Graphicsmagick source code (zipped folder, filename ending in windows-source):
ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/windows/

In the Graphicsmagick source code enter the VisualMagick/configure folder. Open the .sln file and compile with SDK 10.

If successfully compiled then launch configure.exe. This dialog will allow you to configure the build options.

Now click OK and open the generated .sln file.

Build the magick++ project with SDK 10 in release mode.

Next download Qt Community Edition:
https://www.qt.io/download

Select a version to install. Latest version would be recommend with MSVC to match the Visual Studio version.

Open the .pro file and change the paths in the magick folder source as required for the Qt project. (alternatively you could do this in your favourite text editor)

To change include paths to be correct level follow the example below:

# include "magick/magick_config.h"
changes to
# include "../../../magick/magick_config.h"

Fix all paths inside this directory. (header paths)
VisualMagick/magick/