解析 Konqueror/Embedded 的两种运行模式

运维 系统运维
Konqueror 是 KDE 桌面系统的一部分,主要用于 Linux 和 BSD家族的操作系统。在微软的 Windows 系统下,也有零星使用,当然功能相对有限。Konqueror主要用于文件管理、浏览,以及网页浏览。Konqueror 按照 GPL 进行发布。本文介绍的是Konqueror/Embedded 的两种运行模式。

Konqueror是一个嵌入式浏览器,主要运行在Linux 和 BSD家族的操作系统上,我曾用过一段时间就给大家讲下Konqueror的两种运行模式。

  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

#p#

  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-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***注释掉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 –qws

通过阅读正文,大家应该知道了Konqueror/Embedded 的两种运行模式,大家可以试着切换下模式运行。

【编辑推荐】

 

责任编辑:赵鹏 来源: 网络转载
相关推荐

2010-06-02 15:29:06

SVN版本控制

2010-07-02 10:28:41

虚拟化桌面虚拟化

2009-06-29 18:11:40

JSP设计模式

2024-06-06 08:32:52

.NET框架代码

2010-08-26 15:15:18

DB2备份

2010-06-03 19:28:02

Hadoop

2010-07-27 15:03:37

Flex ArrayC

2022-02-21 08:18:38

option编程模式

2010-08-11 14:22:26

Flex弹出窗口

2012-12-20 17:43:32

HPUNIXOracle

2012-12-21 10:56:25

HP unix系统Oracle

2021-10-09 09:15:01

Windows 11安全模式系统

2012-11-29 10:45:31

2020-02-21 17:33:17

SparkKafka数据

2011-02-22 18:09:08

Konqueror

2009-12-07 13:42:24

WCF框架

2021-03-07 22:37:17

Go代码模式

2010-07-13 14:54:15

Perl面向对象编程

2010-10-09 10:04:45

FunctionJS

2010-08-31 09:31:58

Silverlight
点赞
收藏

51CTO技术栈公众号