当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 8 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : ubuntu8.10编译qtopia-free-2.2.0出现错误:File in wrong format
帖子发表于 : 2008-12-02 10:28 

注册: 2008-09-25 9:01
帖子: 6
送出感谢: 0 次
接收感谢: 0 次
我的操作系统为ubuntu8.10,交叉编译工具链为:gcc-3.4.5-glibc-2.3.6,
配置为:
/configure -qte '-embedded -no-xft -xplatform linux-arm-g++ -qconfig qpe -depths 16,32 -no-qvfb -system-jpeg -gif' -qpe '-xplatform linux-arm-g++ -edition pda -displaysize 240x320' -qt2 '-xplatform linux-arm-g++ -no-xft' -dqt ' -no-xft'
出现的错误:
***********************************
********* Build Qt 2 **************
***********************************
QT2_CFG="'-xplatform' 'linux-arm-g++' '-no-xft' -platform 'linux-g++'"


This is the Qt Free Edition.

You are licensed to use this software under the terms of either
the Q Public License (QPL) or the GNU General Public License (GPL).

Type 'Q' to view the Q Public License.
Type 'G' to view the GNU General Public License.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of the license?
symlink created for src/tools/qconfig-qpe.h

This target is using the GNU C++ compiler (linux-g++).

Recent versions of this compiler automatically include
code for exceptions, which increase both the size of
the Qt library and the amount of memory taken by your
applications.

You may elect to re-run ./configure with the -no-g++-exceptions
option to compile Qt without exceptions. This is
completely binary compatible, and existing
applications will continue to work (like KDE 2).


Building on: linux-g++-shared
Building for: linux-arm-g++-shared

Thread support..................... no
GIF support........................ no
MNG support........................ no
JPEG support....................... no
OpenGL support .................... yes
NAS sound support.................. no
Session management................. no
Xft support (Anti-Aliased Fonts) .. no
XKB support ....................... yes

Creating makefiles...
Qt is now configured for building. Just run make.
To reconfigure, run make clean and configure.

make[1]: 正在进入目录 `/home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/src/moc'
make[1]: 没有什么可以做的为 `all'。
make[1]:正在离开目录 `/home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/src/moc'
make[1]: 正在进入目录 `/home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/src'
make[1]: 没有什么可以做的为 `all'。
make[1]:正在离开目录 `/home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/src'
make[1]: 正在进入目录 `/home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/tools/designer/uic'
arm-linux-gcc -L/home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/lib -Wl,-rpath,/home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/lib -o /home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/bin/uic uic.o ../shared/widgetdatabase.o ../shared/domtool.o ../integration/kdevelop/kdewidgets.o -lqte -lm
/home/hujunli/work/tools/gcc-3.4.5-glibc-2.3.6/bin/../lib/gcc/arm-linux/3.4.5/../../../../arm-linux/bin/ld: uic.o: Relocations in generic ELF (EM: 3)
uic.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[1]: *** [/home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/bin/uic] 错误 1
make[1]:正在离开目录 `/home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/tools/designer/uic

* ---------------------------------------------------------------------------
*
* ERROR: Building Qtopia Tools has failed.
*
* Please investigate the problem by looking at the error messages in the
* make output.
* The Qtopia tools can be build using the separate buildQtopiaTools script
* which can be found in the qtopia/scripts directory of the package. The
* script is also invoked with the command 'make tools' from the package root
* directory.
*
* On most machines the default configuration options in the script works fine.
* In case this doesn't work the configure parameters in the buildQtopiaTools
* script need to be tweaked to fit the environment/compiler used on the machine
* and then run manually from the cmd line.
*
* Please make sure that the following binaries exist before trying to build
* Qtopia:
* /home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/bin/moc
* /home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/bin/uic
* /home/hujunli/work/GUI/qtopia-free-2.2.0/qt2/bin/qvfb
* /home/hujunli/work/GUI/qtopia-free-2.2.0/dqt/bin/lrelease
* /home/hujunli/work/GUI/qtopia-free-2.2.0/dqt/bin/lupdate
*
* As a rule, these tools need to be built only once.
*
******************************************************************************
请各位看看这是怎么回事


页首
 用户资料  
 
2 楼 
 文章标题 : Re: ubuntu8.10编译qtopia-free-2.2.0出现错误:File in wrong format
帖子发表于 : 2009-03-09 9:20 

注册: 2009-03-09 9:15
帖子: 7
送出感谢: 0 次
接收感谢: 0 次
你好,你现在搞定了吗?我也在编译译qtopia-free-2.2.0,能给我你的配置文件吗?


页首
 用户资料  
 
3 楼 
 文章标题 : Re: ubuntu8.10编译qtopia-free-2.2.0出现错误:File in wrong format
帖子发表于 : 2009-03-12 20:16 

注册: 2008-12-17 10:09
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
lamehu, lamehu, 你的问题解决了没?我也遇见了这样的问题!
make[5]: /work/GUI/qtopia/qtopia-free-2.2.0/qt2/bin/uic:命令未找到
make[5]: *** [../../../include/qtopia/private/passwordbase_p.h] 错误 127
make[5]:正在离开目录 `/work/GUI/qtopia/qtopia-free-2.2.0/qtopia/src/libraries/qtopia'
make[4]: *** [all] 错误 2
make[4]:正在离开目录 `/work/GUI/qtopia/qtopia-free-2.2.0/qtopia/src/libraries/qtopia'
make[3]: *** [sub-libraries-qtopia] 错误 2
make[3]:正在离开目录 `/work/GUI/qtopia/qtopia-free-2.2.0/qtopia/src'
make[2]: *** [all] 错误 2
make[2]:正在离开目录 `/work/GUI/qtopia/qtopia-free-2.2.0/qtopia/src'
make[1]: *** [all] 错误 2
make[1]:正在离开目录 `/work/GUI/qtopia/qtopia-free-2.2.0/qtopia'

***********************************************************************
*
* ERROR: Building Qtopia has failed.
*
* Please search the make output for any error messages.
*
* Hint: If the configuration has changed since the last successfull
* build consider using make clean to ensure that all binaries
* are rebuilt using the new configuration.
*
* For more information about the build process please use a browser
* and go to the getting started section in:
* /work/GUI/qtopia/qtopia-free-2.2.0/qtopia/doc/html/index.html
*
***********************************************************************


页首
 用户资料  
 
4 楼 
 文章标题 : Re: ubuntu8.10编译qtopia-free-2.2.0出现错误:File in wrong format
帖子发表于 : 2009-03-22 21:14 
头像

注册: 2007-09-23 17:06
帖子: 1051
送出感谢: 1
接收感谢: 8
看看 这篇文章,看是否有帮助!
http://zouxxfly.blog.sohu.com/97077667.html


页首
 用户资料  
 
5 楼 
 文章标题 : Re: ubuntu8.10编译qtopia-free-2.2.0出现错误:File in wrong format
帖子发表于 : 2009-09-18 17:01 

注册: 2009-09-02 21:19
帖子: 7
送出感谢: 0 次
接收感谢: 0 次
请问问题解决了没? 我也在编译QT也遇此问题.


页首
 用户资料  
 
6 楼 
 文章标题 : Re: ubuntu8.10编译qtopia-free-2.2.0出现错误:File in wrong format
帖子发表于 : 2009-11-27 19:26 

注册: 2008-09-25 9:01
帖子: 6
送出感谢: 0 次
接收感谢: 0 次
好长时间了啊,幸亏当时把问题记录了下来。
试试用低一些版本的gcc和g++,我用的是4.1版本的,但是编译到最后出现错误是uic版本不相符,实在没有办法就拷了个Qt-x11-2.3.2的uic。
水平实在太菜,问题还是没有彻底解决,大家可以试试这个办法,或许你的运气好些,一次编译就能通过。


页首
 用户资料  
 
7 楼 
 文章标题 : Re: ubuntu8.10编译qtopia-free-2.2.0出现错误:File in wrong format
帖子发表于 : 2010-01-18 20:22 

注册: 2008-12-17 10:09
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
2.2.0编译的时候问题颇多,我一直都没有编译过去。试试最新的版本吧,现在PC机上已经到Qt Creator 4.6了!


页首
 用户资料  
 
8 楼 
 文章标题 : Re: ubuntu8.10编译qtopia-free-2.2.0出现错误:File in wrong format
帖子发表于 : 2010-03-12 10:45 

注册: 2010-03-12 10:42
帖子: 1
送出感谢: 0 次
接收感谢: 0 次
遇到了同样的问题,期待解决中.........


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 8 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译