Compiling QtMqtt in 6.5.0 version
-
Hi last year i have installed QT 6.2.3 open source with Qt Mainteance tool,
i need qtmqtt module and i found a procedure to compiling from source downloaded with QtMaintenance tool.
Now i like to install 6.5.0 version so i downloaded all distribution with sources without uninstall 6.2.3.
Well i am not able to compile and install qtmqtt module for new version.
Is there someone that can halp me?Thank a lot !!!
Bye!! -
Hi,
Can you explain what issue you are getting ?
-
Probably is a misconfiguration of the environment.
I read the readme file in Src folder and i followed the istruction
to compile entire QT but i don't need to recompile
all QT but only the qtmqtt module.
I have installed visual studio community 2022
and, as i said, 6.2.3 and 6.5.0 of Qt.
I 'don't know if there is a sort of guideline to compile and
install only a module.
Thank in advance. -
The simple way:
- open the module in Qt Creator
- add a custom step to install the result
- build and install
Do it twice, once for release and once for debug
The usually way
- open a terminal
- create a build directory
- go into it
- use the qt-cmake from the Qt 6 version you want to build your module for
- build
- install
Do it once for release and once for debug.
-
Sorry but there isn't any .pro file in Src/qtmqtt folder so how have i to do to open in QtCreator ?
-
Sorry but there isn't any .pro file in Src/qtmqtt folder so how have i to do to open in QtCreator ?
@MarioFromAlassio Then there should be CMakeLists.txt file (Qt6 switched to CMake).
-
Yes it is. Sorry i didn't know that was possible to load project in QtCreator via CMakeList.txt.
I'm 55 years old but i'm a baby in QT.
Thank a lot!
I'm going to try ;-)
Bye -
Yes it works :
1 load QtCreator -> Load Project c:\Qt\6.5.0.Src\QtMqtt\CMakeList.txt
2 Build Release and Debug
3 Exit QtCreator
4 Go to C:\Qt\Src\6.5.0\build-qtmqtt-Desktop_Qt_6_5_0_MinGW_64_bit-Release
5 cmake --install . (see the point at the end)
DoneThank to all!!!!
Bye!