天嵌 ARM开发社区

 找回密码
 注册
查看: 2479|回复: 5

qtopia第一次应用

[复制链接]
welenlee 发表于 2010-9-7 17:24:50 | 显示全部楼层 |阅读模式
按教材第三章编写第一个qtopia程序,出现如下错误显示:
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/usr/lib/qt-3.3/include -I/include -o main.o main.cpp
main.cpp:3:35: error: qtopia/qpeapplication.h: No such file or directory
main.cpp:5: error: expected constructor, destructor, or type conversion before ‘(’ token
make: *** [main.o] Error

使用Fedora 10,Qte_20091216.tar.bz2.
请问,如何解决.
 楼主| welenlee 发表于 2010-9-7 17:30:54 | 显示全部楼层
如果使用Fedora 10 ,Qte_20100601.rar
得到和题为"学习Qt第三章遇到问题"一样的现象.
好郁闷啊.
 楼主| welenlee 发表于 2010-9-7 17:32:56 | 显示全部楼层
另外,有没有即时通信方式.
QQ群加不进去.
我QQ:155135448
E-mail:welenlee@163.com
justahu 发表于 2010-9-7 19:14:30 | 显示全部楼层
在.ui中设计有问题
我也遇见这种问题 但是你要是跟着教程走是不会出错的
 楼主| welenlee 发表于 2010-9-7 19:24:43 | 显示全部楼层
我就是按教程走的啊.
现在是main.cpp中头文件路径找不到,所以,请大虾帮忙看看啊.
main.cpp是和教程中的一样,和例程也是一样的.
 楼主| welenlee 发表于 2010-9-7 20:23:52 | 显示全部楼层
原因已找到:
是Makefile中,编译部分 main.o中
main.o: main.cpp \
                first.h \
                /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/include/qtopia/qpeapplication.h
未添加
/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/include/qtopia/qpeglobal.h \
                /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/include/qtopia/qlibrary.h \
                /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/include/qtopia/qcom.h \
                /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/include/qtopia/quuid.h \
                /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/include/qtopia/qtopiawinexport.h \
                /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/include/qtopia/timestring.h \
                /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/include/qtopia/applicationinterface.h
所致.
惭愧...
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-9-27 23:32 , Processed in 1.017513 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表