Konqueror/Embedded的两种运行模式
Konqueror/Embedded可以在基于QPE( Qt palmtop environment)环境下运行,也可以在脱离该环境下运行。这要根据用户的具体需要,如果想要在PDA上运行Konqueror/Embedded,那么一般会选择前者。但是如果想在嵌入式设备启动起来以后只运行Konqueror,不运行其他程序(一般用于控制),则会选择后者。
现在具体介绍一下这两种模式的具体实现方法:
1 在QPE环境下运行Konqueror
在编译Konqueror时,执行以下命令:
cd konqueror-embedded-snapshot-20030705
export QTDIR=/arm_files/qt
export QPEDIR=/arm_files/qtopia
export TMAKEDIR=/arm_files/tmake
export TMAKEPATH=$TMAKEDIR/lib/qws/linux-arm-g++
export PATH=$QTDIR/bin:$QPEDIR/bin:$TMAKEDIR/bin:$PATH
export AR=arm-linux-ar
export STRIP=arm-linux-strip
export RANLIB=arm-linux-ranlib
export CXX=arm-linux-g++
export CCC=arm-linux-c++
export CC=arm-linux-gcc
export CROSS_COMPILE=1
export PATH=$PATH:/usr/local/arm/2.95.3/bin:$PATH
export INSTALL=/usr/local/arm/2.95.3
make clean
./configure --host=arm-linux --target=arm-linux --enable-embedded --enable-qt-embedded --enable-qpe --with-gui=qpe --disable-debug --enable-ftp --enable-static --disable-shared --disable-mt --with-extra-libs=/usr/local/arm/2.95.3/lib:$QPEDIR/lib --with-extra-includes=/usr/local/arm/2.95.3/include:$QPEDIR/include -without-ssl --with-qt-dir=$QTDIR --with-qt-includes=$QTDIR/include --with-qt-libraries=$QTDIR/lib --with-qtopia-dir=/armsys2440/qt_arm/qtopia
make
具体的环境变量设置仅供参考。
编译完毕之后,拷贝五个文件到设备的文件系统中去:
cp konqueror-embedded-snapshot-20030705/konq-embed/src/konqueror /arm_files/fs/root_2440_mouse/opt/qtopia/bin
cp konqueror-embedded-snapshot-20030705/konq-embed/src/konqueror.desktop /arm_files/fs/root_2440_mouse/opt/qtopia/apps/Applications
cp konqueror-embedded-snapshot-20030705/konq-embed/src/konqueror.png /arm_files/fs/root_2440_mouse/opt/qtopia/pics
cp konqueror-embedded-snapshot-20030705/konq-embed/kdesrc/khtml/css/html4.css /arm_files/fs/root_2440_mouse/opt/kde/share/apps/khtml/css/html4.css
cp konqueror-embedded-snapshot-20030705/konq-embed/kdesrc/kdecore/charsets /arm_files/fs/root_2440_mouse/opt/kde/share/config/charsets
然后在若要开机自动运行,则应在Rc.d文件中的qtopia启动之后,运行:
export HOME=/root
export QTDIR=/opt/qt
export QPEDIR=/opt/qtopia
export KDEDIR=/opt/kde
export QWS_KEYBOARD=USB:/dev/input/event1
export QWS_MOUSE_PROTO=USB:/dev/input/mouse0
export PATH=$QPEDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$QPEDIR/lib
$QPEDIR/bin/konqueror
2 脱离QPE环境运行Konqueror
在编译Konqueror时,执行以下命令:
cd konqueror-embedded-snapshot-20030705
export QTDIR=/arm_files/qt
export TMAKEDIR=/arm_files/tmake
export TMAKEPATH=$TMAKEDIR/lib/qws/linux-arm-g++
export PATH=$QTDIR/bin:$TMAKEDIR/bin:$PATH
export AR=arm-linux-ar
export STRIP=arm-linux-strip
export RANLIB=arm-linux-ranlib
export CXX=arm-linux-g++
export CCC=arm-linux-c++
export CC=arm-linux-gcc
export CROSS_COMPILE=1
export PATH=$PATH:/usr/local/arm/2.95.3/bin:$PATH
export INSTALL=/usr/local/arm/2.95.3
make clean
./configure --host=arm-linux --target=arm-linux --enable-embedded --enable-qt-embedded --disable-debug --enable-ftp --enable-static --disable-shared --disable-mt --with-extra-libs=/usr/local/arm/2.95.3/lib --with-extra-includes=/usr/local/arm/2.95.3/include -without-ssl --with-qt-dir=$QTDIR --with-qt-includes=$QTDIR/include --with-qt-libraries=$QTDIR/lib
make
具体的环境变量设置仅供参考。
编译完毕之后,拷贝五个文件到设备的文件系统中去:
cp konqueror-embedded-snapshot-20030705/konq-embed/src/konqueror /arm_files/fs/root_2440_mouse/opt/qtopia/bin
cp konqueror-embedded-snapshot-20030705/konq-embed/src/konqueror.desktop /arm_files/fs/root_2440_mouse/opt/qtopia/apps/Applications
cp konqueror
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)