• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : 配置编译qtopia出错,急求解答 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 20649
精华: 0
发帖: 17
金钱: 85 两
威望: 17 点
综合积分: 34 分
注册时间: 2010-05-05
最后登录: 2010-10-09
楼主  发表于: 2010-05-06 17:56

 配置编译qtopia出错,急求解答

我的是QQ2440,root@jack-desktop:/opt/FriendlyARM/QQ2440/x86-qtopia# ls
build                                        qt-2.3.7
build-all                                    qt-embedded-2.3.7.tar.gz
build-konq                                   qtopia
build.log                                    qtopia-free-1.7.0
hello                                        qtopia-free-1.7.0.tar.gz
kde                                          qt-x11-2.3.2.tar.gz
konq                                         set-env
konq_to_qtopia                               tmake
konqueror-embedded-snapshot-20030705         tmake-1.11
konqueror-embedded-snapshot-20030705.tar.gz  tmake-1.11.tar.gz
qt
用./build-all后产生许多错误,文件太大,我就用附件传了下,
make: *** [allmoc.cpp] 错误 127
make:离开目录“/opt/FriendlyARM/QQ2440/x86-qtopia/qt/src”
Makefiles will be regenerated.
.................................................................................
QPE is now configured for building. Just run "make".
To reconfigure, run make clean and configure.

make -C libraries/qtopia
make[1]: 正在进入目录 `/opt/FriendlyARM/QQ2440/x86-qtopia/qtopia/src/libraries/qtopia'
/opt/FriendlyARM/QQ2440/x86-qtopia/qt/bin/uic passwordbase_p.ui -o ./passwordbase_p.h
make[1]: /opt/FriendlyARM/QQ2440/x86-qtopia/qt/bin/uic:命令未找到
make[1]: *** [passwordbase_p.h] 错误 127
make[1]:正在离开目录 `/opt/FriendlyARM/QQ2440/x86-qtopia/qtopia/src/libraries/qtopia'
make: *** [libraries/qtopia] 错误 2
/opt/FriendlyARM/QQ2440/x86-qtopia
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
make: *** 没有指明目标并且找不到 makefile。 停止。


我用./build-all 2>&1 |tee build.log生成的build.log文件。见附件,麻烦各位了,实在是不知道该怎么办了!
附件: build.log.tar.gz (92 K) 下载次数:6
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-05-06 18:03

 回 楼主(sdg430) 的帖子

看build.log, 找到**第一个**编译错误
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 20649
精华: 0
发帖: 17
金钱: 85 两
威望: 17 点
综合积分: 34 分
注册时间: 2010-05-05
最后登录: 2010-10-09
2楼  发表于: 2010-05-06 18:23

 回 1楼(kasim) 的帖子

make: *** [kernel/qpsprinter.o] 错误 1
make:离开目录“/opt/FriendlyARM/QQ2440/x86-qtopia/qt-x11/src”
make:进入目录'/opt/FriendlyARM/QQ2440/x86-qtopia/qt-x11/tools/designer'
make util
make[1]: 正在进入目录 `/opt/FriendlyARM/QQ2440/x86-qtopia/qt-x11/tools/designer'
if [ -d util ]; then cd util ; make; fi
make[2]: 正在进入目录 `/opt/FriendlyARM/QQ2440/x86-qtopia/qt-x11/tools/designer/util'
级别: 新手上路
UID: 20649
精华: 0
发帖: 17
金钱: 85 两
威望: 17 点
综合积分: 34 分
注册时间: 2010-05-05
最后登录: 2010-10-09
3楼  发表于: 2010-05-06 18:24

 回 1楼(kasim) 的帖子

kernel/qpsprinter.cpp:5195: error: ‘XGetFontPath’ was not declared in this scope
kernel/qpsprinter.cpp:5235: error: ‘XFreeFontPath’ was not declared in this scope
make: *** [kernel/qpsprinter.o] 错误 1
make:离开目录“/opt/FriendlyARM/QQ2440/x86-qtopia/qt-x11/src”
make:进入目录'/opt/FriendlyARM/QQ2440/x86-qtopia/qt-x11/tools/designer'
make util
make[1]: 正在进入目录 `/opt/FriendlyARM/QQ2440/x86-qtopia/qt-x11/tools/designer'
if [ -d util ]; then cd util ; make; fi
make[2]: 正在进入目录 `/opt/FriendlyARM/QQ2440/x86-qtopia/qt-x11/tools/designer/util'
g++  -c -I/opt/FriendlyARM/QQ2440/x86-qtopia/qt-x11/include -pipe -O2
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2010-05-06 18:28
呵呵,你比我年轻,眼睛还不如我好吗?
第一个错误在这里:

In file included from kernel/qpsprinter.cpp:97:
kernel/qt_x11.h:65:22: error: X11/Xlib.h: 没有那个文件或目录
kernel/qt_x11.h:71:23: error: X11/Xutil.h: 没有那个文件或目录
kernel/qt_x11.h:72:21: error: X11/Xos.h: 没有那个文件或目录
kernel/qt_x11.h:73:23: error: X11/Xatom.h: 没有那个文件或目录
kernel/qt_x11.h:84:34: error: X11/extensions/shape.h: 没有那个文件或目录
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 20649
精华: 0
发帖: 17
金钱: 85 两
威望: 17 点
综合积分: 34 分
注册时间: 2010-05-05
最后登录: 2010-10-09
5楼  发表于: 2010-05-06 18:37
呵呵,
版主,那这个问题该怎么解决呀!我是菜鸟,让你见笑了!
级别: 新手上路
UID: 20649
精华: 0
发帖: 17
金钱: 85 两
威望: 17 点
综合积分: 34 分
注册时间: 2010-05-05
最后登录: 2010-10-09
6楼  发表于: 2010-05-06 18:50

 回 4楼(kasim) 的帖子

版主,那这个问题该怎么解决呀!我是菜鸟,让你见笑了
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
7楼  发表于: 2010-05-06 19:30
X11目录下面的头文件是X11相关开发所需的,你只要找到相应的头文件是包含在哪个ubuntu的package里面的就可以通过apt-get来安装它。最简单的办法是在http://packages.ubuntu.com/上搜索路径中包含该头文件的package。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 20649
精华: 0
发帖: 17
金钱: 85 两
威望: 17 点
综合积分: 34 分
注册时间: 2010-05-05
最后登录: 2010-10-09
8楼  发表于: 2010-05-06 20:38

 回 7楼(kasim) 的帖子

找到了相应的package,但apt-get安装时出现下面的情况:
E: 动态 MMap 没有空间了。请增大 APT::Cache-Limit 的大侠。当前值:25165824。(man 5 apt.conf)
E: 处理 libsasl2-modules-gssapi-mit (NewFileDesc2)时出错
E: Problem with MergeList /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_hardy-updates_universe_binary-i386_Packages
W: Unable to munmap
E: 无法解析或打开软件包的列表或是状态文件。

我在网上搜了下,是不是把不必要的外在软件源删掉即可,做了但似乎还是不可以,我的ubuntu并没有进行分区,我给了80G的空间,/home的空间还很大呀!具体这个要如何设置呀!麻烦您了,版主
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
9楼  发表于: 2010-05-06 21:06

 回 8楼(sdg430) 的帖子

抱歉,我看不懂这种翻译的半生不熟中文信息,也没遇到过这样的错误。
我想你可以在/etc/apt/apt.conf里加上这样一句试试
APT::Cache-Limit 100000000;
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go