forked from ModbusScope/ModbusScope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libmodbus_update.txt
37 lines (26 loc) · 907 Bytes
/
libmodbus_update.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Requirements:
Windows: Qt5-dev with Qtcreator (and MinGW compiler)
Windows: git gui with git bash
Linux: Qt5-dev
Update libmodbus in project
----------------------------
Download libmodbus release
Remove all previous files in libmodbus folder
Copy clean libmodbus source (without running configure script) to project
Generate config_xx.h files
-------------------------
Linux:
Run configure script on clean libmodbus source (The default installed gcc compiler is used)
./configure
Rename generated config.h to config_linux.h
Windows:
Start git bash
Add QtCreator MinGW compiler to PATH variable (at beginning)
PATH=/C/Qt/Qt5.2.1/Tools/mingw48_32/bin:$PATH$
Run configure script (MinGW of QtCreator is used)
Run ./configure
Rename generated config.h to config_win32.h
Final step
--------------
Copy config_linux.h and config_win32.h to libmodbus source folder
Compile and test communication