Unsolved Static build xmpp
-
-
as mentoned above, you need to run qmake with that option, not nmake and no -
-
This post is deleted! -
you need to run qtenv2.bat something like
"C:\Qt\5.7\msvc2013\bin\qtenv2.bat"
-
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
-
first you need the library, when you use it in your application then you need to include that definition, not when you build the library itself
-
Ok the library works very well but i now want to include to my project you can finish me saying how? You said that i need to include this? -DQXMPP_STATIC in my project thanks in advance.
-
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 -
so with this way i can add libraries to my Project. any library. Ok i have question with qtcreator where is the menĂº to add these libraries. sorry and thx
-
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 -
Ok so for adding one library i only take the steps i put if it's static or dynamic and add to my Project ok thx alot