4. Cloning and building the OPCUA server - ahmedqamesh/quasar-mops-server GitHub Wiki
Opcua-mops server is project created from quasar framework. This means that all the libraries needed for the server needs to be built from the quasar project.
-
Cloning quasar from github
git clone [email protected]:quasar-team/quasar.git -b v1.3.11 --recursive
-
Upgrade a quasar project quasar has many command line tools that can be used for different proposes
cd quasar ./quasar.py upgrade_project ~/PATH/INTO/PROJECT
-
Configure the build and build it We will use an open-source components for OPC-UA: the open62541 library and its 'adapter' library called open62541-compat. And for that we need to use a file called build config:
cd ~/PATH/INTO/PROJECT cp ~/quasar/open62541_config.cmake . git add open62541_config.cmake ./quasar.py set_build_config open62541_config.cmake ./quasar.py enable_module open62541-compat
-
clean any old building directories
rm -rf build
-
Finally, let's build the server:
./quasar.py build
-
Run the quasar OPCUA server:
cd ~/tmp/opcua-server/build/bin ./OpcUaServer