天嵌 ARM开发社区

 找回密码
 注册
查看: 5914|回复: 5

按照移植手册编译Qtopia-2.2.0 无法通过

[复制链接]
zbb564833642 发表于 2012-7-29 11:18:04 | 显示全部楼层 |阅读模式
本帖最后由 zbb564833642 于 2012-7-29 12:24 编辑

虚拟机:ubuntu12.04
交叉编译器版本:4.3.3
我按照Qt教程开发手册进行操作
刚接呀完成后 进入/Qte 目录执行 ./x86-qtopia-2.2.0-konqueror_build
出现错误:mv: 无法获取"konqueror" 的文件状态(stat): 没有那个文件或目录
Build konqueror , please wait ...

./x86-qtopia-2.2.0-konqueror_build: 25: cd: can't cd to x86-qtopia-2.2.0/
./x86-qtopia-2.2.0-konqueror_build: 26: ./x86-qtopia-2.2.0-konqueror_build: ./setQpeEnv: not found
./x86-qtopia-2.2.0-konqueror_build: 27: cd: can't cd to ../x86-qtopia-2.2.0/konqueror
./x86-qtopia-2.2.0-konqueror_build: 28: ./x86-qtopia-2.2.0-konqueror_build: ./configure: not found
求解!!!
本人刚开始转向qt 方面的学习 ,希望大家多多指教啊、、
 楼主| zbb564833642 发表于 2012-7-29 11:49:47 | 显示全部楼层
本帖最后由 zbb564833642 于 2012-7-29 11:52 编辑

出错原因:tq开发手册里并没有说明要解压那个文件夹
下面贴出我的解决方法 ,
问题1:./x86-qtopia-2.2.0-konqueror_build: 25: cd: can't cd to x86-qtopia-2.2.0/
将/Qte目录下的qtopia-2.2.0.tar.bz2 解压,并将解压后的文件放到Qte的根目录下
然后重新执行./x86-qtopia-2.2.0-konqueror_build
出现错误:mv: 无法获取"konqueror" 的文件状态(stat): 没有那个文件或目录
Build konqueror , please wait ...
./x86-qtopia-2.2.0-konqueror_build: 26: .: setQpeEnv: not found
解决方法:在x86-qtopia-2.2.0-konqueror_build编译脚本配置文件中
第26行 .setQpeEnv
改成 ./setQpeEnv
再次执行  ./x86-qtopia-2.2.0-konqueror_build
编译通过。
下面贴出通过时的终端显示
    -qt2 cfg ....... Specifies the configuration to use when building Qt 2
                     (tools package).

    -dqt cfg ....... Specifies the configuration to use for building Qt 3
                     (tools package).

    IMPORTANT: Please ensure that you quote configuration arguments to -qte,
               -qpe, -qt2 and -dqt so that your shell does not split the
               arguments.

    NOTE: Depending on the source package not all listed configurations may be
          possible.

(1) NOTE: The presence of these options in a -qpe parameter overrides the
          configure arguments.

(2) NOTE: Any -debug or -release arguments in qte/qte (and dqt if Qtopia
          Desktop is enabled) arguments will be ignored and this value used
          instead.

root@zhangbei-virtual-machine:/home/zhangbei/tq2440/Qte#

希望以上内容能给初学者一些启示 、、

 楼主| zbb564833642 发表于 2012-7-29 12:23:39 | 显示全部楼层
本帖最后由 zbb564833642 于 2012-7-29 12:44 编辑

之后执行 ./test_x86 是又出现错误
root@zhangbei-virtual-machine:/home/zhangbei/tq2440/opt/EmbedSky/Qte# ./test_x86
./test_x86: 5: cd: can't cd to /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/image
./test_x86: 3: ./test_x86: /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/bin/qvfb: not found
./test_x86: 12: cd: can't cd to opt/Qtopia
./test_x86: 20: ./test_x86: qpe: not found
解决办法:
将第十二行改为 cd /opt/EmbedSky/Qte/qtopia-2.2.0/qtopia
执行./test_x86
出现错误
./test_x86: 3: ./test_x86: x86-qtopia-2.2.0/qt2/bin/qvfb: not found
./test_x86: 20: ./test_x86: qpe: not found
屏蔽第3行 20 ,继续编译
出现 the root directory is already !
我知道上面好像缺少库,如何添加 ?  
我从一开始就用的是ubuntu12.04,都用习惯了,不想换系统了 ,希望大家帮帮忙!!
TQ-lkp 发表于 2012-7-30 09:13:07 | 显示全部楼层
少库的话,就用新立得工具搜索后下载就好了
出现 the root directory is already !
楼主可以看下编绎脚本中,是什么原因导致的输出
应该是之前编绎过生成了一些目录,脚本中进行了判断,删除那个目录就好了
wang12zhedi 发表于 2012-12-3 15:22:44 | 显示全部楼层
zbb564833642 发表于 2012-7-29 12:23
之后执行 ./test_x86 是又出现错误
root@zhangbei-virtual-machine:/home/zhangbei/tq2440/opt/EmbedSky/Q ...

我也遇到 checking for libz... configure: error: not found. Check your installation and look into config.log
root@a123-virtual-machine:/opt/EmbedSky/Qte# ./test_x86
./test_x86: 3: /opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/bin/qvfb: not found
./test_x86: 20: qpe: not found
的问题,你解决了吗?请指点
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-3-29 10:19 , Processed in 1.031243 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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