安装脚本QQ2440:(应该看得懂,如果不懂,建议看看Shell编程的书,还有Makefile的)
#!/bin/bash
tar xfvz tmake-1.11.tar.gz
tar xfvz qt-embedded-2.3.7.tar.gz
tar xfvz qtopia-free-1.7.0.tar.gz
tar xfvz qt-x11-2.3.1.tar.gz
tar xvzf konqueror-embedded-snapshot-20030705.tar.gz
mv konqueror-embedded-snapshot-20030705 konq
mv tmake-1.11 tmake
mv qt-2.3.7 qt
mv qtopia-free-1.7.0 qtopia
mv qt-2.3.1 qt-x11
cd qt-x11
export QTDIR=$PWD
echo yes | ./configure -static -no-xft -no-opengl -no-sm
make -C src/moc
cp src/moc/moc bin
make -C src //(执行到此出错)
make -C tools/designer
make -C tools/qvfb
cp tools/qvfb/qvfb bin
strip bin/uic bin/moc bin/designer bin/qvfb
cd ..
cp qt-x11/bin/?* qt/bin
rm -fr qt-x11
export QTDIR=$PWD/qt
export QPEDIR=$PWD/qtopia
export TMAKEDIR=$PWD/tmake
export TMAKEPATH=$TMAKEDIR/lib/qws/linux-generic-g++
export PATH=$QTDIR/bin:$QPEDIR/bin:$TMAKEDIR/bin:$PATH
cd qt
make clean
cp ../qtopia/src/qt/qconfig-qpe.h src/tools/
(echo yes; echo yes ) |./configure -system-jpeg -gif -system-libpng -system-zlib -platform linux-generic-g++ -qconfig qpe -depths 16,24,32
make -C src
cd ..
cd qtopia/src
./configure -platform linux-generic-g++
make
cd -
#export QTDIR=$PWD/qt
#export QPEDIR=$PWD/qtopia
#export TMAKEDIR=$PWD/tmake
#export TMAKEPATH=$TMAKEDIR/lib/qws/linux-generic-g++
#export PATH=$QTDIR/bin:$QPEDIR/bin:$TMAKEDIR/bin:$PATH
cd konq
./configure --enable-embedded --enable-qt-embedded --enable-qpe --with-gui=qpe --disable-debug --enable-ftp --enable-static --disable-shared --disable-mt --with-extra-libs=$QPEDIR/lib --with-extra-include=$QPEDIR/include --without-ssl --with-qt-dir=$QTDIR --with-qt-includes=$QTDIR/include --with-qt-libraries=$QTDIR/lib --with-qtopia-dir=$QPEDIR
make
cd -
这里参照的是qq2440提供的脚本进行安装的,但是在安装过程中出现了如下问题:
QT_NO_IMAGEIO_MNG -DQT_NO_SM_SUPPORT -I/home/yc/workspace/qt/x86-qtopia/qt-x11/src/3rdparty/zlib -I/home/yc/workspace/qt/x86-qtopia/qt-x11/src/3rdparty/libpng -o kernel/qpsprinter.o kernel/qpsprinter.cpp
In file included from kernel/qpsprinter.cpp:96:
kernel/qt_x11.h:65:22: error: X11/Xlib.h: No such file or directory
kernel/qt_x11.h:71:23: error: X11/Xutil.h: No such file or directory
kernel/qt_x11.h:72:21: error: X11/Xos.h: No such file or directory
kernel/qt_x11.h:73:23: error: X11/Xatom.h: No such file or directory
kernel/qt_x11.h:84:34: error: X11/extensions/shape.h: No such file or directory
kernel/qpsprinter.cpp: In constructor 'QPSPrinterFont::QPSPrinterFont(const QFont&, QPSPrinterPrivate*)':
kernel/qpsprinter.cpp:4958: error: 'XGetFontPath' was not declared in this scope
kernel/qpsprinter.cpp:4998: error: 'XFreeFontPath' was not declared in this scope
于是想到是本身安装的系统缺少x11库,网上搜索到的在线安装的命令如下:
apt-get install libx11-dev
执行该命令安装X11库,中途出现错误,提示执行apt-get update,按照提示执行。
当然,在线升级,网络一直不好,可以从安装光盘中升级,方法如下:(后续补充)
###################################################################################
心得:
在出现问题后,要按照错误提示分析原因,到网上搜索相关的解决方法,一步一步来,问题总会解决的,而且有问题才会学到更多!
阅读(1417) | 评论(0) | 转发(0) |