当前时区 GMT+8, 现在时间是 2008-7-9 18:38 游客: 注册 登录 仅登录论坛 | 搜索 帮助


标题: 求助 qt-embedded 编译问题
wuwei8615
新手上路
Rank: 1



UID 241462
精华 0
积分 36
帖子 15
阅读权限 10
注册 2007-5-17
状态 离线
发表于 2007-6-3 18:59  资料  短消息  加为好友  添加 wuwei8615 为MSN好友 通过MSN和 wuwei8615 交谈
求助 qt-embedded 编译问题

小弟用的是fc6需要用qt进行嵌入式开发,在编译qt-embedded时出现错误
cd qt-2.3.7
export QTDIR=$PWs D
export QTEDIR=$QTDIR
cp /qconfig-local.h   ./src/tools
make clean
./configure -xplatform linux-arm-g++ -shared -debug -config local -qvfb -depth 4,8,16,322
make
显示如下错误
kernel/qt.h:23:19: stdio.h: 没有那个文件或目录
In file included from kernel/qt.h:29,
                 from allmoc.cpp:1:
/wuwei/usr/qt-2.3.7/include/qcstring.h:50:20: string.h: 没有那个文件或目录
In file included from kernel/qt.h:132,
                 from allmoc.cpp:1:
/wuwei/usr/qt-2.3.7/include/qsharedmemory.h:53:23: sys/types.h: 没有那个文件或目录
/wuwei/usr/qt-2.3.7/include/qsharedmemory.h:54:21: sys/ipc.h: 没有那个文件或目录
In file included from kernel/qt.h:285,
                 from allmoc.cpp:1:
/wuwei/usr/qt-2.3.7/include/qgfxraster_qws.h:50:20: unistd.h: 没有那个文件或目录
/wuwei/usr/qt-2.3.7/include/qgfxraster_qws.h:51:19: stdio.h: 没有那个文件或目录
/wuwei/usr/qt-2.3.7/include/qgfxraster_qws.h:52:20: stdlib.h: 没有那个文件或目录
/wuwei/usr/qt-2.3.7/include/qgfxraster_qws.h:53:18: math.h: 没有那个文件或目录
make[2]: *** [allmoc.cpp] 错误 1
make[2]: Leaving directory `/wuwei/usr/qt-2.3.7/src'
make[1]: *** [sub-src] 错误 2
make[1]: Leaving directory `/wuwei/usr/qt-2.3.7'
make: *** [init] 错误 2
请问什么原因?谢谢

顶部
wuwei8615
新手上路
Rank: 1



UID 241462
精华 0
积分 36
帖子 15
阅读权限 10
注册 2007-5-17
状态 离线
发表于 2007-6-5 09:37  资料  短消息  加为好友  添加 wuwei8615 为MSN好友 通过MSN和 wuwei8615 交谈
这个问题解决了,但是编译qte时出现如下错误
/home/x86-qtopia/qt/include/qsortedlist.h:51: 错误:‘clear’ 的实参不依赖模板参数,所以 ‘clear’ 的声明必须可用
/home/x86-qtopia/qt/include/qsortedlist.h:51: 错误:(如果您使用 ‘-fpermissive’,G++ 会接受您的代码,但是允许使用未定义的名称是过时的风格)

顶部
tiger_miao
新手上路
Rank: 1



UID 199479
精华 0
积分 1
帖子 1
阅读权限 10
注册 2005-9-8
状态 离线
发表于 2007-9-28 09:30  资料  短消息  加为好友 
我也出现了你说的第一个问题,请问是什么原因,怎么解决?谢谢。

顶部
 


Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
清除 Cookies - 联系我们 - 中国Linux公社 - WAP