qtmodbus library installation
-
I'm trying to install the qtmodbus library and having a hard time doing it, I am new to qt creator can some help me access the these functions?
-
Hi and welcome to devnet,
Where did you get it from ?
What did you try ?
What failure did you get ?
What version of Qt are you using ?
On what platform ? -
I thought you had to enter some of these commands in the make file
QT += serialbus
TARGET = modbusmasterand when I use
#include <QModbusDevice>
#include <QModbusRtuSerialMaster>in my program it says it cant recognize these files?
I am running qt 4.2.1 community on windows
-
@musclemania05
the more important question is do you use Qt 5.8?QModbus class is not available pre 5.8Also did you rerun qmake after adding QT += serialbus to your project file?
-
I guess I am?? What should I been running and is the make file the .pro extension?
-
@musclemania05
in the top menubar selectBuild
->CleanAll
and when that is done:Build
->Run qmake
. This gives you, in 95% of all cases, a clean build.I had at least 2 cases where I had to change the build path too, or changes done in the Designer were not recognized, deleting the build folder had no effect either. But thats not related to your issue.
If you don't run qmake after adding a new module, the classes will not find the references.
-
what version of Qt do I need to download?
-
The latest and you should be good