|
1Qter豆
网上搜不出答案,移植编译不通过 Qt 4.8.0
In file included from ..\..\qcom\qcom-1.1\qcom\qextserial\qextserialport_win.cpp:43:
c:\QtSDK\Desktop\Qt\4.8.0\mingw\include/QtCore/private/qwineventnotifier_p.h:1:61: error: ../../../src/corelib/kernel/qwineventnotifier_p.h: No such file or directory
..\..\qcom\qcom-1.1\qcom\qextserial\qextserialport_win.cpp: In member function 'bool QextSerialPortPrivate:pen_sys(QFlags<QIODevice::OpenModeFlag>)':
..\..\qcom\qcom-1.1\qcom\qextserial\qextserialport_win.cpp:111: error: invalid use of incomplete type 'struct QWinEventNotifier'
..\..\qcom\qcom-1.1\qcom\qextserial\/qextserialport_p.h:173: error: forward declaration of 'struct QWinEventNotifier'
..\..\qcom\qcom-1.1\qcom\qextserial\qextserialport_win.cpp:113: error: no matching function for call to 'QextSerialPort::connect(QWinEventNotifier*&, const char [19], QextSerialPort* const&, const char [23], Qt::ConnectionType)'
c:\QtSDK\Desktop\Qt\4.8.0\mingw\include/QtCore/qobject.h:204: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
c:\QtSDK\Desktop\Qt\4.8.0\mingw\include/QtCore/qobject.h:217: note: static bool QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)
c:\QtSDK\Desktop\Qt\4.8.0\mingw\include/QtCore/qobject.h:337: note: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
..\..\qcom\qcom-1.1\qcom\qextserial\qextserialport_win.cpp: In member function 'bool QextSerialPortPrivate::close_sys()':
..\..\qcom\qcom-1.1\qcom\qextserial\qextserialport_win.cpp:128: error: invalid use of incomplete type 'struct QWinEventNotifier'
..\..\qcom\qcom-1.1\qcom\qextserial\/qextserialport_p.h:173: error: forward declaration of 'struct QWinEventNotifier'
..\..\qcom\qcom-1.1\qcom\qextserial\qextserialport_win.cpp:129: error: invalid use of incomplete type 'struct QWinEventNotifier'
..\..\qcom\qcom-1.1\qcom\qextserial\/qextserialport_p.h:173: error: forward declaration of 'struct QWinEventNotifier'
mingw32-make.exe[1]: *** [release/qextserialport_win.o] Error 1
mingw32-make.exe: *** [release] Error 2
01:51:27: The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
Error while building project qcom (target: Desktop)
When executing build step 'Make'
|
最佳答案
查看完整内容
显示是一些头文件没有定义。
先去http://www.qter.org/?page_id=161这里下载串口通信专题里面的代码试试吧。
|