在QT6中安装qtmqtt、qtopcua控件的方法
发表于 : 周六 5月 13, 2023 1:13 pm
一、将QT6的4个目录回到系统搜索路径中:
1.编译代码
2.安装控件
3.安装过程如下:===============================================================
二、开始安装:1.编译代码
Code: [全选] [Expand/Collapse]
- D:\Qt\Packages\qtmqtt-6.5.0>D:\Qt\6.5.0\mingw_64\bin\qt-configure-module.bat .
- D:\Qt\Packages\qtmqtt-6.5.0>cmake --build .
Code: [全选] [Expand/Collapse]
- D:\Qt\Packages\qtmqtt-6.5.0>cmake --install . --verbose
Code: [全选] [Expand/Collapse]
- D:\Qt\Packages\qtmqtt-6.5.0>D:\Qt\6.5.0\mingw_64\bin\qt-configure-module.bat .
- 'D:\Qt\6.5.0\mingw_64\bin\\qt-cmake-private.bat' '.'
- -- The CXX compiler identification is GNU 11.2.0
- -- The C compiler identification is GNU 11.2.0
- -- Detecting CXX compiler ABI info
- -- Detecting CXX compiler ABI info - done
- -- Check for working CXX compiler: D:/Qt/Tools/mingw1120_64/bin/c++.exe - skipped
- -- Detecting CXX compile features
- -- Detecting CXX compile features - done
- -- Detecting C compiler ABI info
- -- Detecting C compiler ABI info - done
- -- Check for working C compiler: D:/Qt/Tools/mingw1120_64/bin/gcc.exe - skipped
- -- Detecting C compile features
- -- Detecting C compile features - done
- -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
- -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
- -- Found Threads: TRUE
- -- Performing Test HAVE_STDATOMIC
- -- Performing Test HAVE_STDATOMIC - Success
- -- Found WrapAtomic: TRUE
- -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
- -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)
- -- Configuring done
- -- Generating done
- -- Build files have been written to: D:/Qt/Packages/qtmqtt-6.5.0
- D:\Qt\Packages\qtmqtt-6.5.0>cmake --build .
- [24/24] Linking CXX shared library bin\Qt6Mqtt.dll
- D:\Qt\Packages\qtmqtt-6.5.0>cmake --install . --verbose
- -- Install configuration: "RelWithDebInfo"
- -- Installing: /Qt/6.5.0/mingw_64/./metatypes/qt6mqtt_relwithdebinfo_metatypes.json
- -- Installing: /Qt/6.5.0/mingw_64/lib/cmake/Qt6Mqtt/Qt6MqttConfig.cmake
- -- Installing: /Qt/6.5.0/mingw_64/lib/cmake/Qt6Mqtt/Qt6MqttConfigVersion.cmake
- -- Installing: /Qt/6.5.0/mingw_64/lib/cmake/Qt6Mqtt/Qt6MqttConfigVersionImpl.cmake
- -- Installing: /Qt/6.5.0/mingw_64/lib/libQt6Mqtt.a
- -- Installing: /Qt/6.5.0/mingw_64/bin/Qt6Mqtt.dll
- -- Installing: /Qt/6.5.0/mingw_64/lib/cmake/Qt6Mqtt/Qt6MqttTargets.cmake
- -- Installing: /Qt/6.5.0/mingw_64/lib/cmake/Qt6Mqtt/Qt6MqttTargets-relwithdebinfo.cmake
- -- Installing: /Qt/6.5.0/mingw_64/lib/cmake/Qt6Mqtt/Qt6MqttVersionlessTargets.cmake
- -- Installing: /Qt/6.5.0/mingw_64/bin/Qt6Mqtt.debug
- -- Installing: /Qt/6.5.0/mingw_64/./modules/Mqtt.json
- -- Installing: /Qt/6.5.0/mingw_64/lib/cmake/Qt6Mqtt/Qt6MqttAdditionalTargetInfo.cmake
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/QMqttAuthenticationProperties
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/QMqttClient
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/QMqttConnectionProperties
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/QMqttLastWillProperties
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/QMqttMessage
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/QMqttMessageStatusProperties
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/QMqttPublishProperties
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/QMqttServerConnectionProperties
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/QMqttStringPair
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/QMqttSubscription
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/QMqttSubscriptionProperties
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/QMqttTopicFilter
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/QMqttTopicName
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/QMqttUnsubscriptionProperties
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/QMqttUserProperties
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/QtMqtt
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/QtMqttVersion
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/qtmqttversion.h
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/qtmqttexports.h
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/qmqttauthenticationproperties.h
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/qmqttclient.h
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/qmqttconnectionproperties.h
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/qmqttglobal.h
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/qmqttmessage.h
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/qmqttpublishproperties.h
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/qmqttsubscription.h
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/qmqttsubscriptionproperties.h
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/qmqtttopicfilter.h
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/qmqtttopicname.h
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/qmqtttype.h
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/QtMqttDepends
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/6.5.0/QtMqtt/private/qmqttclient_p.h
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/6.5.0/QtMqtt/private/qmqttconnection_p.h
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/6.5.0/QtMqtt/private/qmqttconnectionproperties_p.h
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/6.5.0/QtMqtt/private/qmqttcontrolpacket_p.h
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/6.5.0/QtMqtt/private/qmqttmessage_p.h
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/6.5.0/QtMqtt/private/qmqttpublishproperties_p.h
- -- Installing: /Qt/6.5.0/mingw_64/include/QtMqtt/6.5.0/QtMqtt/private/qmqttsubscription_p.h
- -- Installing: /Qt/6.5.0/mingw_64/mkspecs/modules/qt_lib_mqtt.pri
- -- Installing: /Qt/6.5.0/mingw_64/mkspecs/modules/qt_lib_mqtt_private.pri
- -- Installing: /Qt/6.5.0/mingw_64/lib/pkgconfig/Qt6Mqtt.pc
- -- Installing: /Qt/6.5.0/mingw_64/lib/cmake/Qt6Mqtt/Qt6MqttDependencies.cmake
- -- Installing: /Qt/6.5.0/mingw_64/lib/cmake/Qt6BuildInternals/StandaloneTests/QtMqttTestsConfig.cmake
- -- Up-to-date: /Qt/6.5.0/mingw_64/lib
- -- Up-to-date: /Qt/6.5.0/mingw_64/lib/cmake
- -- Up-to-date: /Qt/6.5.0/mingw_64/lib/cmake/Qt6BuildInternals
- -- Up-to-date: /Qt/6.5.0/mingw_64/lib/cmake/Qt6BuildInternals/StandaloneTests
- -- Up-to-date: /Qt/6.5.0/mingw_64/lib/cmake/Qt6Mqtt
- -- Up-to-date: /Qt/6.5.0/mingw_64/lib/pkgconfig
- -- Installing: /Qt/6.5.0/mingw_64/lib/Qt6Mqtt.prl
- D:\Qt\Packages\qtmqtt-6.5.0>