libmodbuspp icon indicating copy to clipboard operation
libmodbuspp copied to clipboard

modbus.h

Open Mathias-Jensen opened this issue 3 years ago • 3 comments

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.

Mathias-Jensen avatar Mar 17 '22 13:03 Mathias-Jensen

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

William-Brumble avatar Mar 18 '22 20:03 William-Brumble

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

William-Brumble avatar Mar 18 '22 20:03 William-Brumble

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.

William-Brumble avatar Mar 19 '22 15:03 William-Brumble