构建Qt OPC UA Open62541 插件
Open62541 插件默认由包含的第三方源构建,没有外部依赖性。open62541 库使用 OpenSSL 保证安全。如果在配置过程中检测到 OpenSSL 库,则会启用测试和 open62541 后端的安全性。与Qt OPC UA 捆绑的 Open62541 源文件和头文件是使用以下命令从 open62541 v1.4.9 标签生成的:
cmake -DUA_ENABLE_AMALGAMATION=ON -DUA_AMALGAMATION_MULTIARCH=ON -DUA_MULTITHREADING=0 /path/to/open62541-source make
如果要构建 open62541 插件的自定义版本,则需要安装使用默认选项构建的 open62541 v1.4.9。要启用加密支持,必须使用以下参数配置 open62541 版本:
cmake -DUA_ENABLE_ENCRYPTION=OPENSSL /path/to/open62541-source
使用自定义 open62541 安装构建时,必须将以下选项传递给 cmake。
-DINPUT_open62541=system -DCMAKE_PREFIX_PATH=/path/to/open62541-install-dir
只有当 open62541 安装在 cmake 默认不检查的位置时,才需要CMAKE_PREFIX_PATH 。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.