Open62541编译与安装 2021-02-28 克隆open62541源码1git clone -b v1.0.6 https://github.com/open62541/open62541.git 编译1234567891011121314# 进入源码目录cd open62541/# 拉取子模块,当编译使能某些特殊功能时就需要,如自定义namespace等git submodule update --init --recursive --progress# 创建编译目录并且进入mkdir build/ && cd build# 配置编译选项,-DBUILD_SHARED_LIBS=ON 表示生成动态库,-DCMAKE_INSTALL_PREFIX=/usr表示安装路径为/usrcmake .. -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr# 开始编译make VERBOSE=1 安装与卸载12345# 安装sudo make install# 卸载sudo xargs rm < install_manifest.txt