- Install qt
To build on debian you need to execute
sudo apt-get install qt5-default git curl make g++ libboost-dev libgraphicsmagick-dev graphicsmagick-libmagick-dev-compat
qmake with-magick.pro
make
Done
To build on debian you need to execute
sudo apt-get install qt5-default git curl make g++ libboost-dev libgraphicsmagick-dev graphicsmagick-libmagick-dev-compat
qmake with-magick.pro
make
Done
#include <iostream> | |
#include <QString> | |
#include <boost/property_tree/ptree.hpp> | |
#include <QApplication> | |
int main(int argc, char** argv) { | |
QApplication app(argc, argv); | |
QString qstr = "Hello world\n"; | |
std::cout << qstr.toStdString(); | |
return 0; | |
} |
unix { | |
QMAKE_CXXFLAGS += -std=c++17 | |
} | |
win32 { | |
INCLUDEPATH *= C:\boost | |
} | |
QT *= xml widgets core gui | |
TEMPLATE = app | |
SOURCES = no-magick.cpp |
#include <iostream> | |
#include <QString> | |
#include <boost/property_tree/ptree.hpp> | |
#include <QApplication> | |
#include <Magick++.h> | |
int main(int argc, char** argv) { | |
Magick::InitializeMagick(*argv); | |
QApplication app(argc, argv); | |
QString qstr = "Hello world\n"; | |
std::cout << qstr.toStdString(); | |
Magick::Image image; | |
return 0; | |
} |
unix { | |
QMAKE_CXXFLAGS += -std=c++17 | |
QT *= webenginewidgets | |
} | |
win32 { | |
QT *= webengine | |
INCLUDEPATH *= C:\boost | |
} | |
QT *= xml widgets core gui | |
TEMPLATE = app | |
SOURCES = with-magick.cpp | |
INCLUDEPATH += /usr/include/GraphicsMagick | |
LIBS += \ | |
-L/usr/lib \ | |
-lGraphicsMagick++ \ | |
-lGraphicsMagick \ | |
-llcms2 \ | |
-lfreetype \ | |
-lXext \ | |
-lSM \ | |
-lICE \ | |
-lX11 \ | |
-llzma \ | |
-lbz2 \ | |
-lz \ | |
-lltdl \ | |
-lm \ | |
-lgomp \ | |
-lpthread \ |