天嵌 ARM开发社区

 找回密码
 注册
查看: 3692|回复: 9

第一个Qt应用,first.ui工程最后make出错

[复制链接]
micheal 发表于 2012-4-16 13:56:48 | 显示全部楼层 |阅读模式
按照Qt程序开发完全手册,前边Qt环境编译完成后,在第三章第一个Qt应用程序的开发,在最后first目录下执行make命令出现如下错误
[root@localhost first]# make
g++  -o /image/opt/Qtopia/bin/first main.o first.o moc_first.o  -L/lib -L/usr/lib/qt-3.3/lib -lm -lqpe -lqtopia -lqte
/usr/bin/ld: cannot open output file /image/opt/Qtopia/bin/first: No such file or directory
collect2: ld returned 1 exit status
make: *** [/image/opt/Qtopia/bin/first] Error 1

两天了一直没有解决,求高手赐教
 楼主| micheal 发表于 2012-4-16 14:22:14 | 显示全部楼层
好吧 reboot后,make出现新的情况
[root@localhost first]# make
arm-linux-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
In file included from /usr/lib/qt-3.3/include/qvariant.h:45,
                 from first.h:12,
                 from main.cpp:1:
/usr/lib/qt-3.3/include/qstring.h: In member function 'ushort& QChar::unicode()':
/usr/lib/qt-3.3/include/qstring.h:202: error: cannot bind packed field '((QChar*)this)->QChar::ucs' to 'ushort&'
main.cpp: At global scope:
main.cpp:5: error: expected constructor, destructor, or type conversion before '(' token
make: *** [main.o] Error 1
[root@localhost first]#
TQ-lkp 发表于 2012-4-17 09:30:46 | 显示全部楼层
有没有设置qt的环境变量
 楼主| micheal 发表于 2012-4-17 14:35:26 | 显示全部楼层
TQ-lkp 发表于 2012-4-17 09:30
有没有设置qt的环境变量

嗯 执行了setX86_QpeEnv
 楼主| micheal 发表于 2012-4-18 11:36:12 | 显示全部楼层
这是我./test_x86命令后的警告提示,界面可以正常的出现,跟手册里的一样,鼠标也能操作
1 warning: QSocket::writeBlock: Socket is not open
  2 Warning: QDir::readDirEntries: Cannot read the directory: /opt/EmbedSky/Qte/    x86-qtopia-2.2.0/qtopia/image/root/Applications/qtmail
  3 Warning: QImage::smoothScale: Image is a null image
  4 Warning: QImage::smoothScale: Image is a null image
  5 Warning: QImage::smoothScale: Image is a null image
  6 Warning: QImage::smoothScale: Image is a null image
  7 Warning: QImage::smoothScale: Image is a null image
  8 Warning: QImage::smoothScale: Image is a null image
  9 Warning: QImage::smoothScale: Image is a null image
10 Warning: QImage::smoothScale: Image is a null image
11 Warning: QImage::smoothScale: Image is a null image
12 Warning: QImage::smoothScale: Image is a null image
13 Warning: QImage::smoothScale: Image is a null image
14 Warning: QImage::smoothScale: Image is a null image
15 Fatal: No card images found
16 Warning: Instructed to quit by Virtual Keyboard
不知道是不是这些警告引起来上面的问题   
毕业设计用到,望高手指点
fuxiangli0627 发表于 2012-4-21 00:40:09 | 显示全部楼层
参考光盘配套教程《24学通QT完全手册》,我就是按照里面的步骤一步一步做的,现在能在开发板上运行了。
 楼主| micheal 发表于 2012-4-23 08:49:52 | 显示全部楼层
fuxiangli0627 发表于 2012-4-21 00:40
参考光盘配套教程《24学通QT完全手册》,我就是按照里面的步骤一步一步做的,现在能在开发板上运行了。

这个手册我没有啊。有链接吗?
fuxiangli0627 发表于 2012-4-25 18:13:55 | 显示全部楼层
micheal 发表于 2012-4-23 08:49
这个手册我没有啊。有链接吗?

我找不到连接了,你留个邮箱,我发给您!!
 楼主| micheal 发表于 2012-4-25 21:19:28 | 显示全部楼层
fuxiangli0627 发表于 2012-4-25 18:13
我找不到连接了,你留个邮箱,我发给您!!

micheal_h@foxmail.com  多谢了
vvb9137 发表于 2012-4-25 23:49:29 | 显示全部楼层
感觉像是MAKE写错了:lol
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-9-28 11:20 , Processed in 1.022395 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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