epsilonrt / libmodbuspp

Much more than a C++ wrapper for libmodbus
https://epsilonrt.fr/modbuspp
GNU Lesser General Public License v3.0
73 stars 44 forks source link

modbus.h #23

Open MaTightAss opened 2 years ago

MaTightAss commented 2 years ago

I keep getting a fault saying "modbus.h: No such file or directory". I can figure out that i have not linked something correctly but i am having a really hard time figuring out how to link the different libraries. I have also thought that it might be because my libmodbus is not in the correct location, but again i can not read from the documentation where it is supposed to be. Hope u can help me.

William-Brumble commented 2 years ago

I am trying to build a static library, and I am getting the same issue mentioned here.

William-Brumble commented 2 years ago

There is a modbus.h in libmodbus repository, I am thinking that's what it's looking for.

William-Brumble commented 2 years ago

The README states libmodbus as a dependency. I built static libraries out of libmodbus, and libmodbuspp. Afterward, I can include/link and build with them without issues. Go here: https://github.com/stephane/libmodbus and build that bad boy. IMO, it should be included in this repo, so users have everything they need.