QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3011|回复: 2

求助 qt-embedded 编译问题

[复制链接]
发表于 2007-6-3 18:59:25 | 显示全部楼层 |阅读模式
小弟用的是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
请问什么原因?谢谢
 楼主| 发表于 2007-6-5 09:37:58 | 显示全部楼层
这个问题解决了,但是编译qte时出现如下错误
/home/x86-qtopia/qt/include/qsortedlist.h:51: 错误:‘clear’ 的实参不依赖模板参数,所以 ‘clear’ 的声明必须可用
/home/x86-qtopia/qt/include/qsortedlist.h:51: 错误:(如果您使用 ‘-fpermissive’,G++ 会接受您的代码,但是允许使用未定义的名称是过时的风格)
回复

使用道具 举报

发表于 2007-9-28 09:30:52 | 显示全部楼层
我也出现了你说的第一个问题,请问是什么原因,怎么解决?谢谢。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-21 21:54 , Processed in 0.077173 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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