fedora 8 安装 arm-qte时遇到的小问题。
今天我同事找我帮忙在fedora 8上安装arm-qte 4.6.1,结果安装过程中抛了一个错误,让我郁闷了。之前我在fedora12上面没遇到过。
编译的配置如下:
echo yes | ./configure -opensource -embedded arm -xplatform qws/linux-arm-g++ -no-webkit -qt-libtiff -qt-libmng -qt-mouse-tslib -qt-mouse-pc -no-mouse-linuxtp
ERROR: The tslib functionality test failed!
这个问题在网上帖子上很热,解决方法很多,
然后我找到如是解决方案:
1。 下载tslib 1.4.tar.gz
2。 交叉编译tslib
export PREFIX=/path_to_your_tslib_1.4_dir
export CC=/path/to/your/cross-compiler-binary/arm-linux-gcc
/*
autogen.sh is an important .sh file,it produce ./configure file according to current env setting
*/
./autogen.sh
echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
/*(it is better to see what parameter that the ./configure program take,use "./configure --help")
*you can add "--enable-debug"([default=no]),and/or "--enable-static"([default=no])
*/
./configure --host=arm-linux --prefix=$PREFIX --cache-file=arm-linux.cache
make
make install
3。 配置qt编译时的额外include 及 lib.
修改/makespec/qws/linux-arm-g++下的qmake.conf文件,
设定QMAKE_INCDIR和QMAKE_LIBDIR,我的设定如下
假定:
QMAKE_INCDIR = =/path_to_your_tslib_1.4_dir/include
QMAKE_LIBDIR = =/path_to_your_tslib_1.4_dir/lib
4。 echo yes | ./configure -opensource -embedded arm -xplatform qws/linux-arm-g++ -no-webkit -qt-libtiff -qt- libmng -qt-mouse-tslib -qt-mouse-pc -no-mouse-linuxtp
make
make install
现在我想讨论一下这个问题的发生的根源是什么?
在FC12上没有这个问题,在FC8上有这个问题,是不是FC8的不完全安装?那么具体FC12比FC8多了什么?
多的这个东西就让他们有这么大的差别?
是FC12自带tslib.tar.gz然后我们在编译的时候它自动帮我们搞定了以上的几个步骤?
等待解答中。。。。