Build-related issues
Thank you for your last reply.
This program is really good, but I need RTU Over TCP, so I want to change the program and build it, but the build is not working properly, which is causing a problem.
I've set up the build environment as you suggested, but the build doesn't work properly with the cmake command. If I build with the cmake --preset "Win64-MSVC" command in the top-level folder, shouldn't it build everything, including the GUI?
Thank you for reading.
Hello.
I'm not sure I understand the question correctly, but for build you need to execute 2 commands like:
> cmake --preset "Win64-MSVC"
> cmake --build --preset "Win64-MSVC-Debug"
1st command is configure the build process, 2nd command is build itself. These commands will produce modbus.dll, core.dll, client.exe and server.exe, which are GUI applications.
To make RTUvTCP version you need to extend ModbusLib subproject (99.9% of the work must be done here).
It incapsulates all work with the network and provide standard interface for every version of Modbus protocol (TCP, RTU etc). client and server apps just use this interface and don't care much about what version of Modbus protocol is used (except settings required to create appropriate type of client or server). Therefore, only minimal changes to the client and server code are required.
Hello again.
I've made support for Modbus RTU over TCP version. It's a fisrt step for version 0.5.
You can download source code, build it and then test.
To do it you can make next steps:
- Clone repository with it submodule:
git clone --recursive https://github.com/serhmarch/ModbusTools.git
- Switch current project to
v0.5branch:
cd ModbusTools
git checkout v0.5
- Switch
modbussubmodule tov0.5branch as well:
cd modbus
git checkout v0.5
After that, you can build the project as usual.
Thank you so much for developing the feature