构建 Qt OPC UA Open62541 插件

The Open62541 plugin is built by default from the included 3rd party sources and has no external dependencies. The open62541 library uses OpenSSL for security. If the OpenSSL library is detected during configuration, security is enabled for the tests and the open62541 backend. The Open62541 source and header files bundled with Qt OPC UA have been generated from the open62541 v1.4.13 tag using the following commands:

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

In case you want to build a custom version of the open62541 plugin, an installed open62541 v1.4.13 built with the default options is required. To enable encryption support, the open62541 build must be configured using the following parameters:

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

The following options must be passed to cmake when building with a custom open62541 installation.

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

The CMAKE_PREFIX_PATH is only required if open62541 is installed in a location cmake doesn't check by default.