IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Building Qt OPC UA Open62541 Plugin

Build instructions for the Qt OPC UA Open62541 plugin.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Building Qt OPC UA Open62541 Plugin

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 1.1 commit e941fc23b0 using the following commands:

 
Sélectionnez
cmake -DUA_ENABLE_AMALGAMATION=ON -DUA_AMALGAMATION_ARCHITECTURES="win32;posix" -DUA_ENABLE_SUBSCRIPTIONS_EVENTS=ON -DUA_ENABLE_HISTORIZING=ON -DUA_ENABLE_EXPERIMENTAL_HISTORIZING=ON
make

In order to disable the Open62541 plugin completely, use:

 
Sélectionnez
    cmake </path/to/qtopcua> -DINPUT_open62541=no
\encode

In case you want to build a custom version of the Open62541 plugin, Open62541 1.1 (e941fc23b0) built with the same options as above is required.

The following options must be passed to cmake when building with open62541 installed to a custom location:

\code
    -DINPUT_open62541=system -DOPEN62541_INCDIR=/path/to/sdk/include -DOPEN62541_LIBDIR=/path/to/sdk/lib

Setting

Value

OPEN62541_INCDIR

The directory which contains open62541.h

OPEN62541_LIBDIR

The directory which contains the library file

For example, the following options can be used for building the open62541 plugin using a static build directly from its build directory without installing it:

 
Sélectionnez
-DOPEN62541_INCDIR=/path/to/open62541/build -DOPEN62541_LIBDIR=/path/to/open62541/build/bin

The output of the configuration step indicates whether the detection was successful:

 
Sélectionnez
Open62541 .............................. yes

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+