Skip to content

Commit

Permalink
Revert to install the included libmodbus as opposed to the distro one
Browse files Browse the repository at this point in the history
There were changes to libmodbus api that breaks compatibility with current OpenPLC code. To keep things working it is better to use the included libmodbus version, even if it is older.
  • Loading branch information
thiagoralves authored Oct 19, 2023
1 parent e3b5136 commit 44b50b7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions background_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function linux_install_deps {
$1 apt-get update
$1 apt-get install -y build-essential pkg-config bison flex autoconf \
automake libtool make git \
sqlite3 cmake curl python3 python3-venv libmodbus-dev
sqlite3 cmake curl python3 python3-venv
else
fail "Unsupported linux distro."
fi
Expand Down Expand Up @@ -151,8 +151,6 @@ function disable_opendnp3 {
}

function install_libmodbus {
[ -r /usr/include/modbus/modbus.h ] && return 0

echo "[LIBMODBUS]"
cd "$OPENPLC_DIR/utils/libmodbus_src"
./autogen.sh
Expand Down

0 comments on commit 44b50b7

Please sign in to comment.