Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 1.41 KB

Installing_open62541_Lib.md

File metadata and controls

21 lines (18 loc) · 1.41 KB

Documentation for installing and building OPCUA open62541 Library in ubuntu 16.04

Step for installing:

Steps for Building:

  • sudo apt-get install git build-essential gcc pkg-config cmake python

  • Enable additional features

    • sudo apt-get install cmake-curses-gui ............. for the ccmake graphical interface
    • sudo apt-get install libmbedtls-dev ............ for encryption support
    • sudo apt-get install check libsubunit-dev .............. for unit tests
    • sudo apt-get install python-sphinx graphviz ............... for documentation generation
    • sudo apt-get install python-sphinx-rtd-theme .................. documentation style
  • cd open62541

  • git submodule update --init --recursive

  • mkdir build && cd build

  • cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUA_NAMESPACE_ZERO=FULL .DUA_ENABLE_AMALGAMATION=ON ..

  • Run this cmake command for running Publisher-Subscription System : cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUA_NAMESPACE_ZERO=FULL -DUA_ENABLE_PUBSUB=ON -DUA_ENABLE_PUBSUB_CUSTOM_PUBLISH_HANDLING=OFF -DUA_ENABLE_PUBSUB_DELTAFRAMES=ON -DUA_ENABLE_PUBSUB_ETH_UADP=ON -DUA_ENABLE_PUBSUB_INFORMATIONMODEL=ON -DUA_ENABLE_PUBSUB_INFORMATIONMODEL_METHODS=ON -DUA_BUILD_EXAMPLES=ON ..

  • make

  • sudo make install