Static build xmpp
-
and when he say this: Note: by default QXmpp is built as a shared library. If you decide to build a static library instead, you will need to pass -DQXMPP_STATIC when building your programs against QXmpp.
I need to include this too? with qmake or only build all sorry and thx
-
in your .pro file you'll need to add
DEFINES += QXMPP_STATICthe rest is just the usual including of 3rd party libraries:General: http://doc.qt.io/qt-5/third-party-libraries.html
With Qt Creator: http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html -
from http://doc.qt.io/qtcreator/creator-project-qmake-libraries.html#to-add-libraries
In the Projects pane, right-click the project name to open the context menu and select Add Library.
Follow the instructions of the wizard