首页| 论坛| 消息

标题:arm9上实现串口通信编译出错(qextserialport类)
作者:yehlg
日期:2011-05-09 10:45
内容:

我在arm9上做个短信收发的设计,需要用到串口通信。我用的是网上提供的qextserialport类,这个方法在qt4
上是可以编译通过的。linux上搭建的qte是2.3.10的版本,用arm-linux-g++(版本2.9,3.4的都试过了)交叉编译出现好多错误,是不是qte的版本有问题,arm9开发箱上用的是linux2.4的内核,这个qte是光盘自带的版本。这个错误很头疼啊,做了半个月了,最后出现这么大问题,看来是做不出来了,下面这是错误:(附件是我用的到qextserialport类)
Makefile:179: 警告:覆盖关于目标“moc_widget.cpp”的命令
Makefile:176: 警告:忽略关于目标“moc_widget.cpp”的旧命令
/home/yehualang/2410sQt/target/qt-2.3.10/bin/uic widget.ui -o ./widget.h
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/home/yehualang/2410sQt/target/qt-2.3.10/include -o main.o main.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/home/yehualang/2410sQt/target/qt-2.3.10/include -o posix_qextserialport.o posix_qextserialport.cpp
In file included from posix_qextserialport.h:11,
from posix_qextserialport.cpp:16:
qextserialbase.h:7: qmutex.h: ?????????
In file included from posix_qextserialport.h:11,
from posix_qextserialport.cpp:16:
qextserialbase.h:159: syntax error before `*'
qextserialbase.h:165: ANSI C++ forbids declaration `qint64' with no type
qextserialbase.h:165: `qint64' declared as a `virtual' field
qextserialbase.h:165: parse error before `('
qextserialbase.h:166: ANSI C++ forbids declaration `qint64' with no type
qextserialbase.h:166: `qint64' declared as a `virtual' field
qextserialbase.h:166: declaration of `int QextSer ..


#1 [yehlg 05-09 21:58]
顶一个啊!版主没在啊,给点帮助啊
#2 [yehlg 05-10 20:14]
不能吧,这论坛还没有版主吗?
#3 [zheng501gf 05-19 17:07]
你用的这个第三方类在LINUX可以用吗?好像不可以吧!
要把使用的环境和版本相对应!

回复 发表
主题 版块