suxilong 发表于 2014-4-17 23:27:40

qt4.7.3 在ubuntu12.04 下如何configure ????!!!!!

安装环境: ubuntu12.04
交叉编译链:arm-linux-gcc 4.3.2

源包:qt-everywhere-opensource-src-4.7.3.tar.gz

源包解压到:/opt/qt-everywhere-opensource-src-4.7.3

1. 编译qt-x11的时候出错!!!!

新建了个文件夹 qt-x11-4.7.3,在里面执行: /opt/qt-everywhere-opensource-src-4.7.3/configure -prefix /opt/Qtdev/qt-x11-4.7.3

出现下面的错误

In file included from /opt/qt-everywhere-opensource-src-4.7.3/src/corelib/codecs/qutfcodec_p.h:57:0,
               from /opt/qt-everywhere-opensource-src-4.7.3/src/corelib/codecs/qutfcodec.cpp:42:
/opt/qt-everywhere-opensource-src-4.7.3/qt-x11-4.7.3-config/include/QtCore/private/qtextcodec_p.h:1:60: fatal error: ../../../../../src/corelib/codecs/qtextcodec_p.h: No such file or directory
compilation terminated.
make: *** Error 1

2. 编译qte-arm的时候出错!
You have not explicitly asked to use pkg-config and are cross-compiling.
pkg-config will not be used to automatically query cflag/lib parameters for
Dependencies

于是configure 的时候加了个-force-pkg-config

但是还是出现这样的warning:
You have not explicitly asked to use pkg-config and are cross-compiling.
pkg-config will not be used to automatically query cflag/lib parameters for
dependencies

于是configure的时候 一直不行!!!!!!!!!!!!!!!!!!!!!!


kevinliu_wei 发表于 2014-4-18 00:20:15

帮忙顶一下

jim166783 发表于 2014-4-17 23:27:41

编译器是arm-linux-gcc 4.5.1的,Qt源码是4.7.0

./configure -prefix /opt/Qt4.7 -opensource -embedded arm -xplatform qws/linux-arm-g++-no-webkit -qt-libtiff -qt-libmng-qt-mouse-tslib -qt-mouse-pc -no-mouse-linuxtp -no-neon

make

make install

suxilong 发表于 2014-4-18 22:57:07

jim166783 发表于 2014-4-18 08:52
编译器是arm-linux-gcc 4.5.1的,Qt源码是4.7.0

./configure -prefix /opt/Qt4.7 -opensource -embedded a ...

其实我发现问题了!就是我重新建立一个文件夹,在文件夹下面进行configure 出错的!
如果直接在源包里进行configure 就没问题!
怎样把莫元 给你呢?

jim166783 发表于 2014-4-19 13:58:18

suxilong 发表于 2014-4-18 22:57
其实我发现问题了!就是我重新建立一个文件夹,在文件夹下面进行configure 出错的!
如果直接在源包里进 ...

没关系了,解决了就好。

skylly3 发表于 2014-4-19 14:19:06

为什么不上最新版qt?

suxilong 发表于 2014-4-20 20:10:03

skylly3 发表于 2014-4-19 14:19
为什么不上最新版qt?

你是指deb 格式的吗?

那样是很容易, 但是 如果移植到arm 开发板上面呢?》 不还是要编译源包!!!

suxilong 发表于 2014-4-20 20:21:53

jim166783 发表于 2014-4-19 13:58
没关系了,解决了就好。

我在编译 x86 的时候出现:
fluidlauncher.cpp:42:17: fatal error: QtXml: No such file or directory

请问该装什么才能找到QtXml

micheal_rz 发表于 2014-4-20 20:48:56

建议你看看配置选项,把不需要的功能都去掉,比如qt例子程序之类的东西。也可以参考网上成功编译的编译配置。

skylly3 发表于 2014-4-20 20:58:28

suxilong 发表于 2014-4-20 20:10
你是指deb 格式的吗?

那样是很容易, 但是 如果移植到arm 开发板上面呢?》 不还是要编译源包!!! ...

最新的是5.2.1,有源码的.

suxilong 发表于 2014-4-21 19:21:49

micheal_rz 发表于 2014-4-20 20:48
建议你看看配置选项,把不需要的功能都去掉,比如qt例子程序之类的东西。也可以参考网上成功编译的编译配置 ...

就是参考网上的,可是就是不可以!!!
页: [1]
查看完整版本: qt4.7.3 在ubuntu12.04 下如何configure ????!!!!!