如何在 Ubuntu/Debian 上以 deb 软件包形式安装 SOEM
要在 Ubuntu 或 Debian 上安装 SOEM EtherCAT 主站库,你可以使用 ulikoehler/soem PPA 中的 deb 软件包。
install-soem.sh
sudo add-apt-repository ppa:ulikoehler/soem
sudo apt update
sudo apt install libsoem libsoem-dev我们为 amd64、arm64、i386 和 armhf 架构提供了该软件包。
如何自行构建
PPA 中的 SOEM 是使用 ulikoehler/deb-buildscripts 代码构建的。具体而言,只需从该仓库运行 deb-soem.py 即可构建:
build-soem.sh
git clone http://github.com/ulikoehler/deb-buildscripts
cd deb-buildscripts
./deb-soem.py即可自行构建软件包。除编译器和标准库外,SOEM 不需要任何其他依赖。
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow