天嵌 ARM开发社区

 找回密码
 注册
查看: 2941|回复: 4

ubuntu编译qtopia出错

[复制链接]
yixiaoyang 发表于 2010-9-23 10:37:42 | 显示全部楼层 |阅读模式
跟这位网友的错误差不多,我的开发环境是ubuntu10.4,gcc编译版本是gcc version 4.1.3 20080704 (prerelease) (Ubuntu 4.1.2-27ubuntu1)

http://bbs.embedsky.net/viewthre ... mp;highlight=ubuntu

下面有错误信息:

table/qtable.cpp:3660: warning: suggest parentheses around ‘&&’ within ‘||’
table/qtable.cpp: In member function ‘virtual void QTableHeader::mouseReleaseEvent(QMouseEvent*)’:
table/qtable.cpp:3711: warning: suggest explicit braces to avoid ambiguous ‘else’
xml/qxml.cpp: In member function ‘virtual bool QXmlSimpleReader::feature(const QString&, bool*) const’:
xml/qxml.cpp:1983: warning: format not a string literal and no format arguments
xml/qxml.cpp: In member function ‘virtual void QXmlSimpleReader::setFeature(const QString&, bool)’:
xml/qxml.cpp:2019: warning: format not a string literal and no format arguments
No makedepend available
make[5]: /home/yixiaoyang/opt/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/bin/uic:命令未找到
make[5]: *** [../../../include/qtopia/private/passwordbase_p.h] 错误 127
make[4]: *** [all] 错误 2
make[3]: *** [sub-libraries-qtopia] 错误 2
make[2]: *** [all] 错误 2
make[1]: *** [all] 错误 2
tools/qmemoryfile_unix.cpp: In member function ‘QMemoryFileData* QMemoryFile::openData(const QString&, int, uint)’:
tools/qmemoryfile_unix.cpp:149: warning: format not a string literal and no format arguments
tools/qmemoryfile_unix.cpp:152: warning: format not a string literal and no format arguments
tools/qmemoryfile_unix.cpp:181: warning: format not a string literal and no format arguments
tools/qmemoryfile_unix.cpp:190: warning: format not a string literal and no format arguments
tools/qmemoryfile_unix.cpp:235: warning: format not a string literal and no format arguments
In file included from /usr/include/fcntl.h:205,
                 from tools/qmemoryfile_unix.cpp:50:
In function ‘int open(const char*, int, ...)’,
    inlined from ‘QMemoryFileData* QMemoryFile::openData(const QString&, int, uint)’ at tools/qmemoryfile_unix.cpp:143:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[1]: *** [tmp/release-shared-linux-g++/tools/qmemoryfile_unix.o] 错误 1
make[5]: /home/yixiaoyang/opt/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/bin/uic:命令未找到
make[5]: *** [../../../include/qtopia/private/passwordbase_p.h] 错误 127
make[4]: *** [all] 错误 2
make[3]: *** [sub-libraries-qtopia] 错误 2
make[2]: *** [install] 错误 2
make[1]: *** [install] 错误 2
cp: 无法创建普通文件"qtopia/image/opt/Qtopia/lib/fonts/": 没有那个文件或目录


qt4.5到是编译好了,这个恨头大,望有经验的网友帮忙解决以下.多谢。
 楼主| yixiaoyang 发表于 2010-9-23 11:20:10 | 显示全部楼层
哦,这个应该是环境设置的问题,我再试一试
 楼主| yixiaoyang 发表于 2010-9-23 17:24:23 | 显示全部楼层
../../../include/qtopia/private/../../../src/libraries/qtopia/backend/palmtopuidgen.h: In member function ‘int Qtopia::UidGen::generate() const’:
../../../include/qtopia/private/../../../src/libraries/qtopia/backend/palmtopuidgen.h:77: warning: suggest parentheses around ‘&&’ within ‘||’
process_unix.cpp: In member function ‘virtual bool Process::exec(const QByteArray&, QByteArray&, QStringList*)’:
process_unix.cpp:431: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result
process_unix.cpp:490: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result
.ui/release-shared/passwordbase_p.cpp: In constructor ‘PasswordBase::PasswordBase(QWidget*, const char*, uint)’:
.ui/release-shared/passwordbase_p.cpp:35: error: no matching function for call to ‘QSizePolicy::QSizePolicy(QSizePolicy::SizeType, QSizePolicy::SizeType, int, int, bool)’
/home/yixiaoyang/opt/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include/qsizepolicy.h:93: note: candidates are: QSizePolicy::QSizePolicy(int)
/home/yixiaoyang/opt/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include/qsizepolicy.h:99: note:                 QSizePolicy::QSizePolicy(QSizePolicy::SizeType, QSizePolicy::SizeType, bool)
/home/yixiaoyang/opt/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include/qsizepolicy.h:63: note:                 QSizePolicy::QSizePolicy()
/home/yixiaoyang/opt/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include/qsizepolicy.h:46: note:                 QSizePolicy::QSizePolicy(const QSizePolicy&)
make[5]: *** [.obj/release-shared/passwordbase_p.o] 错误 1
make[4]: *** [all] 错误 2
make[3]: *** [sub-libraries-qtopia] 错误 2
make[2]: *** [all] 错误 2
make[1]: *** [all] 错误 2
天嵌_support1 发表于 2010-9-24 21:48:08 | 显示全部楼层
我还是建议你把脚本里的任务命令一个一个拷贝出来,
执行,看看每一步的提示有什么错误吧。不要喜欢来一个:
./x86_qtopia_build  之类的执行,中间的错误你的肉眼是捕获不到的。
 楼主| yixiaoyang 发表于 2010-9-24 23:01:39 | 显示全部楼层
ok,我试试看,多谢楼上:D
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-10-6 00:27 , Processed in 1.021419 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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