[Interest] How build qtserialbus from GIT?

Oleg Gavrilchenko Gavrilchenko at avionica.spb.ru
Wed May 22 10:24:37 CEST 2019


I use Windows Qt 5.9.  I download qtserialbus brand 5.9 from git. Run qmake && make from Qt Mingw32 console.

Compilation fail with errors:

 

mingw32-make[3]: Entering directory 'C:/Work/qtserialbus-5.9/src/serialbus'

g++ -c -fno-keep-inline-dllexport -pipe -mstackrealign -msse2 -mfpmath=sse -O2 -std=c++1z -fno-exceptions -Wextra -Wall -W -Wvla -Wdate-time -DUNICODE -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_SERIALBUS_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_SERIALPORT_LIB -DQT_CORE_LIB -I. -I..\..\include -I..\..\include\QtSerialBus -I..\..\include\QtSerialBus\5.9.8 -I..\..\include\QtSerialBus\5.9.8\QtSerialBus -Itmp -IC:\Qt\Qt5.9.1\5.9.1\mingw53_32\include\QtCore\5.9.1 -IC:\Qt\Qt5.9.1\5.9.1\mingw53_32\include\QtCore\5.9.1\QtCore -IC:\Qt\Qt5.9.1\5.9.1\mingw53_32\include -IC:\Qt\Qt5.9.1\5.9.1\mingw53_32\include\QtCore -IC:\Qt\Qt5.9.1\5.9.1\mingw53_32\include\QtNetwork -IC:\Qt\Qt5.9.1\5.9.1\mingw53_32\include\QtSerialPort -I.moc\release -IC:\utils\my_sql\my_sql\include -IC:\utils\postgresql\pgsql\include -IC:\openssl\include -IC:\Qt\Qt5.9.1\5.9.1\mingw53_32\mkspecs\win32-g++  -o .obj\release\qmodbusserver.o qmodbusserver.cpp

Makefile.Release:1292: recipe for target '.obj/release/qmodbusserver.o' failed

mingw32-make[3]: Leaving directory 'C:/Work/qtserialbus-5.9/src/serialbus'

Makefile:40: recipe for target 'release-all' failed

mingw32-make[2]: Leaving directory 'C:/Work/qtserialbus-5.9/src/serialbus'

Makefile:42: recipe for target 'sub-serialbus-make_first' failed

mingw32-make[1]: Leaving directory 'C:/Work/qtserialbus-5.9/src'

Makefile:42: recipe for target 'sub-src-make_first' failed

In file included from qmodbusserver.cpp:39:0:

qmodbusserver_p.h:43:40: fatal error: private/qmodbuscommevent_p.h: No such file or directory

compilation terminated.

mingw32-make[3]: *** [.obj/release/qmodbusserver.o] Error 1

mingw32-make[2]: *** [release-all] Error 2

mingw32-make[1]: *** [sub-serialbus-make_first] Error 2

mingw32-make: *** [sub-src-make_first] Error 2

 

 

I see qmodbusserver_p.h. It contain lines:

 

#include <private/qmodbuscommevent_p.h>

#include <private/qmodbusdevice_p.h>

#include <private/qmodbus_symbols_p.h>

 

But I not find this files in build directory.  

 

From: Interest [mailto:interest-bounces at qt-project.org] On Behalf Of Denis Shienkov
Sent: Friday, May 17, 2019 9:12 PM
To: interest at qt-project.org
Subject: Re: [Interest] How build qtserialbus from GIT?

 

Hi,

just open it in QtCreator and build.

Note: But as it is a Qt module, then you need in the Perl (e.g ActivePerl on Windows) && Python (v2) installed.

BR,
Denis

 

17.05.2019 17:37, Oleg Gavrilchenko пишет:

I want add MODBUS ASCII mode to qtserialbus. How to build qtserialbus cloned from git?





_______________________________________________
Interest mailing list
Interest at qt-project.org
https://lists.qt-project.org/listinfo/interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190522/439cd5ec/attachment.html>


More information about the Interest mailing list