色婷婷AⅤ一区二区三区|亚洲精品第一国产综合亚AV|久久精品官方网视频|日本28视频香蕉

          新聞中心

          EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計應用 > Konqueror/Embedded的兩種運行模式

          Konqueror/Embedded的兩種運行模式

          作者: 時間:2016-10-08 來源:網(wǎng)絡 收藏

          Konqueror/Embedded可以在基于QPE( Qt palmtop environment)環(huán)境下運行,也可以在脫離該環(huán)境下運行。這要根據(jù)用戶的具體需要,如果想要在PDA上運行Konqueror/Embedded,那么一般會選擇前者。但是如果想在嵌入式設(shè)備啟動起來以后只運行Konqueror,不運行其他程序(一般用于控制),則會選擇后者。

          本文引用地址:http://cafeforensic.com/article/201610/305879.htm

          現(xiàn)在具體介紹一下這兩種模式的具體實現(xiàn)方法:

          1 在QPE環(huán)境下運行Konqueror

          在編譯Konqueror時,執(zhí)行以下命令:

          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

          具體的環(huán)境變量設(shè)置僅供參考。

          編譯完畢之后,拷貝五個文件到設(shè)備的文件系統(tǒng)中去:

          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環(huán)境運行Konqueror

          在編譯Konqueror時,執(zhí)行以下命令:

          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

          具體的環(huán)境變量設(shè)置僅供參考。

          編譯完畢之后,拷貝五個文件到設(shè)備的文件系統(tǒng)中去:

          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


          上一頁 1 2 下一頁

          關(guān)鍵詞:

          評論


          相關(guān)推薦

          技術(shù)專區(qū)

          關(guān)閉