﻿{"id":1336,"date":"2023-06-03T16:21:51","date_gmt":"2023-06-03T08:21:51","guid":{"rendered":"http:\/\/www.tansoo.cn\/?p=1336"},"modified":"2023-06-03T16:24:47","modified_gmt":"2023-06-03T08:24:47","slug":"%e5%9c%a8qt6%e4%b8%ad%e5%ae%89%e8%a3%85qtmqtt%e3%80%81qtopcua%e6%8e%a7%e4%bb%b6%e7%9a%84%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"http:\/\/www.tansoo.cn\/?p=1336","title":{"rendered":"\u5728QT6\u4e2d\u5b89\u88c5qtmqtt\u3001qtopcua\u63a7\u4ef6\u7684\u65b9\u6cd5"},"content":{"rendered":"\r\n<p class=\"wp-block-paragraph\"><strong>\u4e00\u3001\u5c06QT6\u76844\u4e2a\u76ee\u5f55\u56de\u5230\u7cfb\u7edf\u641c\u7d22\u8def\u5f84\u4e2d\uff1a<\/strong><\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"http:\/\/bbs.atoo.top:8081\/download\/file.php?id=90\" alt=\"\"\/><\/figure>\r\n\r\n<!--more-->\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>\u4e8c\u3001\u5f00\u59cb\u5b89\u88c5\uff1a<\/strong><br \/><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-blue-color\">1.\u7f16\u8bd1\u4ee3\u7801<\/mark><\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>D:\\Qt\\Packages\\qtmqtt-6.5.0&gt;D:\\Qt\\6.5.0\\mingw_64\\bin\\qt-configure-module.bat .\r\nD:\\Qt\\Packages\\qtmqtt-6.5.0&gt;cmake --build .<\/code><\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-blue-color\">2.\u5b89\u88c5\u63a7\u4ef6<\/mark><\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>D:\\Qt\\Packages\\qtmqtt-6.5.0&gt;cmake --install . --verbose<\/code><\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-blue-color\">3.\u5b89\u88c5\u8fc7\u7a0b\u5982\u4e0b\uff1a<\/mark><\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>D:\\Qt\\Packages\\qtmqtt-6.5.0&gt;D:\\Qt\\6.5.0\\mingw_64\\bin\\qt-configure-module.bat .\r\n'D:\\Qt\\6.5.0\\mingw_64\\bin\\\\qt-cmake-private.bat' '.'\r\n-- The CXX compiler identification is GNU 11.2.0\r\n-- The C compiler identification is GNU 11.2.0\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\n-- Check for working CXX compiler: D:\/Qt\/Tools\/mingw1120_64\/bin\/c++.exe - skipped\r\n-- Detecting CXX compile features\r\n-- Detecting CXX compile features - done\r\n-- Detecting C compiler ABI info\r\n-- Detecting C compiler ABI info - done\r\n-- Check for working C compiler: D:\/Qt\/Tools\/mingw1120_64\/bin\/gcc.exe - skipped\r\n-- Detecting C compile features\r\n-- Detecting C compile features - done\r\n-- Performing Test CMAKE_HAVE_LIBC_PTHREAD\r\n-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success\r\n-- Found Threads: TRUE\r\n-- Performing Test HAVE_STDATOMIC\r\n-- Performing Test HAVE_STDATOMIC - Success\r\n-- Found WrapAtomic: TRUE\r\n-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)\r\n-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR)\r\n \r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: D:\/Qt\/Packages\/qtmqtt-6.5.0\r\n \r\nD:\\Qt\\Packages\\qtmqtt-6.5.0&gt;cmake --build .\r\n&#91;24\/24] Linking CXX shared library bin\\Qt6Mqtt.dll\r\n \r\nD:\\Qt\\Packages\\qtmqtt-6.5.0&gt;cmake --install . --verbose\r\n-- Install configuration: \"RelWithDebInfo\"\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/.\/metatypes\/qt6mqtt_relwithdebinfo_metatypes.json\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/lib\/cmake\/Qt6Mqtt\/Qt6MqttConfig.cmake\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/lib\/cmake\/Qt6Mqtt\/Qt6MqttConfigVersion.cmake\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/lib\/cmake\/Qt6Mqtt\/Qt6MqttConfigVersionImpl.cmake\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/lib\/libQt6Mqtt.a\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/bin\/Qt6Mqtt.dll\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/lib\/cmake\/Qt6Mqtt\/Qt6MqttTargets.cmake\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/lib\/cmake\/Qt6Mqtt\/Qt6MqttTargets-relwithdebinfo.cmake\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/lib\/cmake\/Qt6Mqtt\/Qt6MqttVersionlessTargets.cmake\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/bin\/Qt6Mqtt.debug\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/.\/modules\/Mqtt.json\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/lib\/cmake\/Qt6Mqtt\/Qt6MqttAdditionalTargetInfo.cmake\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/QMqttAuthenticationProperties\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/QMqttClient\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/QMqttConnectionProperties\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/QMqttLastWillProperties\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/QMqttMessage\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/QMqttMessageStatusProperties\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/QMqttPublishProperties\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/QMqttServerConnectionProperties\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/QMqttStringPair\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/QMqttSubscription\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/QMqttSubscriptionProperties\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/QMqttTopicFilter\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/QMqttTopicName\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/QMqttUnsubscriptionProperties\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/QMqttUserProperties\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/QtMqtt\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/QtMqttVersion\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/qtmqttversion.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/qtmqttexports.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/qmqttauthenticationproperties.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/qmqttclient.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/qmqttconnectionproperties.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/qmqttglobal.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/qmqttmessage.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/qmqttpublishproperties.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/qmqttsubscription.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/qmqttsubscriptionproperties.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/qmqtttopicfilter.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/qmqtttopicname.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/qmqtttype.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/QtMqttDepends\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/6.5.0\/QtMqtt\/private\/qmqttclient_p.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/6.5.0\/QtMqtt\/private\/qmqttconnection_p.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/6.5.0\/QtMqtt\/private\/qmqttconnectionproperties_p.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/6.5.0\/QtMqtt\/private\/qmqttcontrolpacket_p.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/6.5.0\/QtMqtt\/private\/qmqttmessage_p.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/6.5.0\/QtMqtt\/private\/qmqttpublishproperties_p.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/include\/QtMqtt\/6.5.0\/QtMqtt\/private\/qmqttsubscription_p.h\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/mkspecs\/modules\/qt_lib_mqtt.pri\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/mkspecs\/modules\/qt_lib_mqtt_private.pri\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/lib\/pkgconfig\/Qt6Mqtt.pc\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/lib\/cmake\/Qt6Mqtt\/Qt6MqttDependencies.cmake\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/lib\/cmake\/Qt6BuildInternals\/StandaloneTests\/QtMqttTestsConfig.cmake\r\n-- Up-to-date: \/Qt\/6.5.0\/mingw_64\/lib\r\n-- Up-to-date: \/Qt\/6.5.0\/mingw_64\/lib\/cmake\r\n-- Up-to-date: \/Qt\/6.5.0\/mingw_64\/lib\/cmake\/Qt6BuildInternals\r\n-- Up-to-date: \/Qt\/6.5.0\/mingw_64\/lib\/cmake\/Qt6BuildInternals\/StandaloneTests\r\n-- Up-to-date: \/Qt\/6.5.0\/mingw_64\/lib\/cmake\/Qt6Mqtt\r\n-- Up-to-date: \/Qt\/6.5.0\/mingw_64\/lib\/pkgconfig\r\n-- Installing: \/Qt\/6.5.0\/mingw_64\/lib\/Qt6Mqtt.prl\r\n \r\nD:\\Qt\\Packages\\qtmqtt-6.5.0&gt;<\/code><\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">\u5b8c\u6210\u540e\u5c31\u53ef\u76f4\u63a5\u5f15\u7528\u4e86\u3002qtopcua\u6216\u5176\u4ed6\u63a7\u4ef6\u540c\u6837\u662f\u5728qtopcua\u7b49\u63a7\u4ef6\u7684\u6e90\u7801\u76ee\u5f55\u4e2d\u8fd0\u884c\u4e0a\u9762\u76f8\u540c\u7684\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff0c<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u5c06QT6\u76844\u4e2a\u76ee\u5f55\u56de\u5230\u7cfb\u7edf\u641c\u7d22\u8def\u5f84\u4e2d\uff1a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[78],"class_list":["post-1336","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-qt"],"_links":{"self":[{"href":"http:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/posts\/1336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1336"}],"version-history":[{"count":4,"href":"http:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/posts\/1336\/revisions"}],"predecessor-version":[{"id":1345,"href":"http:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/posts\/1336\/revisions\/1345"}],"wp:attachment":[{"href":"http:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1336"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}