找回密码
 立即注册
收起左侧

Qcom编译不通过求解

5
回复
7609
查看
[复制链接]

尚未签到

来源: 2013-12-16 01:54:33 显示全部楼层 |阅读模式
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这里下载串口通信专题里面的代码试试吧。
回复

使用道具 举报

累计签到:1568 天
连续签到:1 天
2013-12-16 01:54:34 显示全部楼层
显示是一些头文件没有定义。

先去http://www.qter.org/?page_id=161这里下载串口通信专题里面的代码试试吧。

回复

使用道具 举报

尚未签到

2013-12-17 21:53:39 显示全部楼层
yafeilinux 发表于 2013-12-16 10:41
显示是一些头文件没有定义。

先去http://www.qter.org/?page_id=161这里下载串口通信专题里面的代码试试吧 ...

谢谢 书现在当当怎么还没货呢
回复

使用道具 举报

累计签到:1568 天
连续签到:1 天
2013-12-18 15:48:23 显示全部楼层
lzq253123505 发表于 2013-12-17 21:53
谢谢 书现在当当怎么还没货呢

第一版出版社已经售罄了,第二版需要到一月10号左右当当才有货。

如果现在急着用可以去淘宝看看。
回复

使用道具 举报

尚未签到

2013-12-18 19:30:23 显示全部楼层
yafeilinux 发表于 2013-12-18 15:48
第一版出版社已经售罄了,第二版需要到一月10号左右当当才有货。

如果现在急着用可以去淘宝看看。 ...

好的 谢谢 字数还不够。。。
回复

使用道具 举报

累计签到:8 天
连续签到:1 天
2014-1-2 15:28:45 显示全部楼层
移植的时候没有错啊,我能正确移植。应该是编译器的问题吧
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

公告
可以关注我们的微信公众号yafeilinux_friends获取最新动态,或者加入QQ会员群进行交流:190741849、186601429(已满) 我知道了