Static build xmpp
-
Hi i am trying to do static build with xmpp, i used this command:
nmake qxmpp.pro -DQXMPP_STATICpage:
https://github.com/qxmpp-project/qxmppBut anyways doesnt work and when i do static build with my static compilation and show me this message:
Qdnslookup require a Qcoreapplication
and take me obviously xmpp.dllSo please someone with more experience or know more about this library. thx.
-
from the page you linked: https://github.com/qxmpp-project/qxmpp#building-qxmpp
You can pass the following arguments to qmake:
QXMPP_LIBRARY_TYPE=staticlib to build a static version of QXmppalso you normally do not use make on the pro file directly but use qmake to generate the makefile
-
-
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_STATIC
the 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