Open ZupoLlask opened 8 years ago
You didn't had properly installed libmodbus and glib libraries on your system but I'm surprised ./autogen.sh doesn't complain about that.
To ensure everything is properly installed, you can check the output of:
pkg-config libmodbus --libs
Output of pkg-config
:
XS36V4 mbtools # pkg-config libmodbus --libs
-L/usr/local/lib -lmodbus
I'm getting the same "undefined reference" error...
Did you run ldconfig?
Yes I did and the result is the same.
What puzzles me is the fact that neither ./autogen.sh nor ./configure complains about anything being wrong or missing.
XS36V4 mbtools # ldconfig -p | grep modbus
libmodbus.so.5 (libc6,x86-64) => /usr/local/lib/libmodbus.so.5
libmodbus.so (libc6,x86-64) => /usr/local/lib/libmodbus.so
@stephane,
Do you have any other idea to tackle this issue?
I have exactly the same issue. I compiled and installed libmodbus 3.1.4, and I'm using ubuntu 16.04.1 LTS.
Dear @stephane,
I'm trying to buid mbtools but I'm getting this error while doing
make
. Latest libmodbus v3.1.4 is installed and I'm using Linux Mint 18.Thanks.