how to add library(qmqtt.h) in qmqtt client for windows
-
@raven-worx
can u give any link to read? and where .lib will be created? in same folder?@shravani
Getting started.
Probably you should consider buying a book about Qt also -
@shravani
Getting started.
Probably you should consider buying a book about Qt also@raven-worx
but using qtcreator also, run qmake is possible right?why am i not getting .lib file file?can you see screenshots of my debug folder (above)after building. -
@raven-worx
but using qtcreator also, run qmake is possible right?why am i not getting .lib file file?can you see screenshots of my debug folder (above)after building.@shravani
yes, but especially when you are not completley sure what you are doing there are some pitfalls.
You can try to build using QtCreator, but then do not press the Run/Debug button, but the Build button below. -
@shravani
yes, but especially when you are not completley sure what you are doing there are some pitfalls.
You can try to build using QtCreator, but then do not press the Run/Debug button, but the Build button below.@raven-worx
hi,
after building i came to know qmqtt.lib was created(5th line from last).but i could not find it inorder to add that path to .pro file.can u please tell by default where it will be stored? in build/debug also it is not present(see above post).thank you
-
Most easiest way is to hit windows search button, search that file and find that directory. Specify this directory in pro file.
-
@raven-worx
hi,
after building i came to know qmqtt.lib was created(5th line from last).but i could not find it inorder to add that path to .pro file.can u please tell by default where it will be stored? in build/debug also it is not present(see above post).thank you
@shravani
according to this log in the \bin directory. -
@shravani
according to this log in the \bin directory.@raven-worx
thank you very much. now i added that .lib file to .pro file and build all is successful.but as the program start executing im getting this error while debugging.can u please look into it?
i dont understand which dll file is missing and where to add it? -
@raven-worx
thank you very much. now i added that .lib file to .pro file and build all is successful.but as the program start executing im getting this error while debugging.can u please look into it?
i dont understand which dll file is missing and where to add it?@shravani How do you start the app? From QtCreator?
On Windows you can use http://www.dependencywalker.com/ to find out which libraries an application needs.
If you want to start your app outside of QtCreator then you first need to deploy it: http://doc.qt.io/qt-5/windows-deployment.html -
@shravani How do you start the app? From QtCreator?
On Windows you can use http://www.dependencywalker.com/ to find out which libraries an application needs.
If you want to start your app outside of QtCreator then you first need to deploy it: http://doc.qt.io/qt-5/windows-deployment.html -
@shravani In QtCreator it should work. Use http://www.dependencywalker.com to see what is missing.
Besides the lib file - do you have the DLL? Lib file is needed for linking, but DLL is needed at runtime.
Also can you show how you added the lib to pro file? -
@shravani In QtCreator it should work. Use http://www.dependencywalker.com to see what is missing.
Besides the lib file - do you have the DLL? Lib file is needed for linking, but DLL is needed at runtime.
Also can you show how you added the lib to pro file? -
-
@shravani
Again: you need the DLL file to be able to execute your app. Where is qmqtt.dll (or libqmqtt.dll)? -
-
@shravani The DLL must be in a directory where the operating system is looking for shared libraries when loading an app. Fastest way is to copy it to the build directory of your app (where your executable is).
-
@shravani The DLL must be in a directory where the operating system is looking for shared libraries when loading an app. Fastest way is to copy it to the build directory of your app (where your executable is).
-
Hi,
You can't start an application like that from explorer, you first have to follow the same steps you would before deploying your application on another computer.
-
Hi,
You can't start an application like that from explorer, you first have to follow the same steps you would before deploying your application on another computer.
@SGaist
In Qt creator also I'm getting same error after adding ucrtbased.dll to debug folder.
i tried executing examples given in qt but getting same error.
recently i installed this qt 5.8.1 msvc2015 new version because in qt 5.0 it(mqtt) is not working. -
@SGaist
In Qt creator also I'm getting same error after adding ucrtbased.dll to debug folder.
i tried executing examples given in qt but getting same error.
recently i installed this qt 5.8.1 msvc2015 new version because in qt 5.0 it(mqtt) is not working. -
@shravani Which DLLs exactly did you copy and from where? No need to copy ucrtbased.dll when starting from QtCreator.