<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

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

          Konqueror/Embedded的兩種運(yùn)行模式

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

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

          本文引用地址:http://www.ex-cimer.com/article/201610/305879.htm

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

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

          在編譯Konqueror時(shí),執(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è)置僅供參考。

          編譯完畢之后,拷貝五個(gè)文件到設(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

          然后在若要開機(jī)自動(dòng)運(yùn)行,則應(yīng)在Rc.d文件中的qtopia啟動(dòng)之后,運(yùn)行:

          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)境運(yùn)行Konqueror

          在編譯Konqueror時(shí),執(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è)置僅供參考。

          編譯完畢之后,拷貝五個(gè)文件到設(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

          然后在若要開機(jī)自動(dòng)運(yùn)行,則應(yīng)在Rc.d文件中的最后,運(yùn)行(如果有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)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();