Qt OPC UA Open62541 プラグインのビルド

Open62541プラグインは、デフォルトで同梱されているサードパーティ製ソースからビルドされ、外部依存関係はありません。open62541ライブラリは、セキュリティのためにOpenSSLを使用しています。設定中にOpenSSLライブラリが検出された場合、テストおよびopen62541バックエンドに対してセキュリティ機能が有効になります。Qt OPC UA に同梱されているOpen62541のソースファイルおよびヘッダーファイルは、以下のコマンドを使用してopen62541タグv1.5.7から生成されています:

cmake -DUA_ENABLE_AMALGAMATION=ON -DUA_MULTITHREADING=0 -DUA_ARCHITECTURE=none /path/to/open62541-source
make

open62541 プラグインのカスタムバージョンをビルドする場合は、デフォルトのオプションでビルドされた open62541 v1.5.7 がインストールされている必要があります。暗号化サポートを有効にするには、open62541 のビルドを以下のパラメータを使用して構成する必要があります:

cmake -DUA_ENABLE_ENCRYPTION=OPENSSL /path/to/open62541-source

カスタム版の open62541 を使用してビルドする場合、cmake に以下のオプションを指定する必要があります。

-DINPUT_open62541=system -DCMAKE_PREFIX_PATH=/path/to/open62541-install-dir

CMAKE_PREFIX_PATH は、open62541がcmakeがデフォルトでチェックしない場所にインストールされている場合にのみ必要です。

© 2026 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.