Installation ==================== OpcUaWebServer provides different ways of installation. Source Code -------------- To compile and install the OpcUaWebServer from the source code, you should meet the following requirements: * `ASNeG OPC UA Stack`_ >= 4.0.0 * `ASNeG Demo Server`_ >= 4.0.0 - Optional * CMake * C++ compiler with C++11 support The ASNeG Demo Server is only used for testing the OpcUaWebServer. For this reason the installation of the ASNeG Demo Server is optional. To install the requirements, follow the instructions in the following documents. * `Installation OpcUaStack `_. * `Installation ASNeG Demo Server `_. **Linux (Ubuntu or Debian)** To compile the source code and install OpcUaWebServer locally, you should run in the root directory of the sources: :: $ sh build.sh -t local -s ASNEG_INSTALL_DIR *ASNEG_INSTALL_DIR* is the path where ASNeG OPC UA Stack is installed. By default, the server is installed into *~/.ASNeG* directory. You can change it with option *-i* (run *sh build.sh* for more details). Now the OpcUaWebServer can be started. :: $ export PATH=$PATH:~/.ASNeG/usr/bin $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/.ASNeG/usr/lib/ $ OpcUaServer4 ~/.ASNeG/etc/OpcUaStack/OpcUaWebServer/OpcUaServer.xml The OpcUaWebServer provides the following communication interfaces: * HTTP interface on port 8080 * Web Socket Server on port 8081 * Web Socket Gateway on port 8082 **Windows** To compile the project, you should install MSBuild Tools, then run in the environment which is suitable for your target platform (e.g., Native x86) the following command: :: $ build.bat -t local If you would like to build x64 version, you should set the suitable CMake generator for your environment with option *-vs*. For example: :: $ build.bat -t local -vs "Visual Studio 15 2017 Win64" By default, the server is installed into *C:\\ASNeG* directory. You also can change it with option *-i*: :: $ build.bat -t local -i C:\another\path\to\install Now the OpcUaWebServer can be started. :: $ set PATH=%PATH%;C:\ASNeG\bin $ set PATH=%PATH%;C:\ASNeG\lib $ OpcUaServer4 CONSOLE C:\ASNeG\etc\OpcUaStack\OpcUaWebServer\OpcUaServer.xml This example is for the default case where the stack and the server are installed in *C:\\ASNeG* directory. DEP Packages -------------- You can install OpcUaWebServer by using a DEP package, which you can download `here