• «
  • 1
  • 2
  • »
  • Pages: 2/2     Go
主题 : 关于在Ubuntu上编译Qtopia失败的原因 was: 求助,看了N久还是编译不过X86 qt附上log,请大家帮助 复制链接 | 浏览器收藏 | 打印
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
10楼  发表于: 2010-04-07 13:21
能否指点一下,如何单独编译出ARM版本的libqpe.so?

不需要单独编译,libqpe.so是qtopia的一部分,应该在build_all的时候生成。另外,你给出的log似乎不是完整的,build_all在运行时会重新解压缩qtopia的源代码并重新编译。确保你的log是用命令
$./build_all 2>&1 |tee build.log生成的

我是否要先编译x86-Qtopia,然后才能编译ARM-Qtopia?

不需要,x86和ARM是完全不相干的两个版本,没有依赖关系
"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: 14671
精华: 0
发帖: 40
金钱: 200 两
威望: 40 点
综合积分: 80 分
注册时间: 2010-02-20
最后登录: 2015-06-26
11楼  发表于: 2010-04-08 08:05

 New Build.log

谢谢您!

确实不全,我按照您的办法,重新编译了一遍,附件是我的Log文件。麻烦您帮我分析一下。

我用的是昨天刚刚到货的光盘里的qtopia-2.2.0.tar.gz(2009.4.5)

build.log.zip (149 K) 下载次数:4

多谢!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
12楼  发表于: 2010-04-08 11:27
分析方法很简单,从build.log里搜索"error"字符串,你编译的错误在这里
g++  -c -I/usr/X11R6/include -I/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/include -I/usr/X11R6/include -pipe -O2 -Wall -W -DNO_DEBUG -fPIC -DQT_BUILTIN_GIF_READER=0 -DQT_NO_IMAGEIO_JPEG -DQT_NO_IMAGEIO_MNG -DQT_NO_XKB  -I/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/src/3rdparty/zlib -I/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/src/3rdparty/libpng  -I3rdparty/kernel -I3rdparty/tools -o tmp/release-shared-linux-g++/tools/qmemoryfile_unix.o tools/qmemoryfile_unix.cpp
tools/qmemoryfile_unix.cpp: In member function 鈥楺MemoryFileData* 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:217,
                 from tools/qmemoryfile_unix.cpp:50:
In function 鈥榠nt open(const char*, int, ...)鈥?
    inlined from 鈥楺MemoryFileData* 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[1]:姝e湪绂诲紑鐩?綍 `/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/src'

解决的办法在4楼
"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: 14671
精华: 0
发帖: 40
金钱: 200 两
威望: 40 点
综合积分: 80 分
注册时间: 2010-02-20
最后登录: 2015-06-26
13楼  发表于: 2010-04-09 04:57

 新的Log文件

谢谢您!

按您的办法,Error少多了。

麻烦您再帮我看看新的Log文件。

谢谢!
build.log.rar (133 K) 下载次数:2
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
14楼  发表于: 2010-04-09 09:27

 回 13楼(franktu) 的帖子

抱歉,我不会帮你看log,看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: 7216
精华: 0
发帖: 20
金钱: 105 两
威望: 29 点
综合积分: 40 分
注册时间: 2009-07-06
最后登录: 2017-09-13
15楼  发表于: 2010-04-21 10:33
针对你的问题,我倒是成功将其编译进去了,我用的Ubuntu9.04 gcc4.3.2编译的时候你记住两点,
1,使用超级用户sudo -s
2,把你的编译器变量配置路径搞清楚export PATH:$PATH=usr/local/arm/4.3.2/bin注意这个是在超级用户下弄好后要保证在此用户下arm-linux-gcc -v看到版本。就搞定了。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
16楼  发表于: 2010-04-21 10:42

 回 15楼(warrenyan) 的帖子

1,使用超级用户sudo -s

在Ubuntu上编译程序不需要超级用户权限。
"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: 14671
精华: 0
发帖: 40
金钱: 200 两
威望: 40 点
综合积分: 80 分
注册时间: 2010-02-20
最后登录: 2015-06-26
17楼  发表于: 2010-04-24 04:12

 谢谢各位好心的网友!

我跟踪Log文件的错误信息,单独编译/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/util/pngscale。
得到如下错误:
ERROR: Trying to shadow hop but PWD is outside the Qtopia source tree.
       OUTPATH='/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia'
       QPEDIR='/home/frank'
       PWD='/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/util/pngscale'
make: *** [all] 错误 1

然后------------------------------------------------------------------
add      QPEDIR=/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia
to    /opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/util/pngscale/makefile

make 后得到:

/usr/bin/ld: cannot find -luuid
collect2: ld returned 1 exit status
make[1]: *** [../../bin/pngscale] 错误 1
make[1]:正在离开目录 `/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/util/pngscale'
make: *** [all] 错误 2

Logfile:    log.rar (3 K) 下载次数:2

本想一鼓作气把qtopia编译成功。但两三个礼拜都毫无进展。
现在感觉是在大海捞针,纯粹靠碰运气。

应用开发环境如此难建立是我没预料到的,我又一次暂时放弃了qtopia编译。
这礼拜我把《完全手册》的十个裸机例子在我的板子上跑通了。也算得到了一点自我安慰。

我不得不说FriendlyARM的光盘把我这个本来就需要帮助的新手推到了自救的边缘。我手头的四张光碟,各不一样。似乎只是工作目录的不同备份。同样的板子,光碟却不一样。从网上下载光碟几乎是不可能。

希望能继续得到各位老师的指导,谢谢!
  • «
  • 1
  • 2
  • »
  • Pages: 2/2     Go