乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      Qt/Embedded移植詳解

       看見就非常 2012-10-05

      開發(fā)平臺:ubuntu 7.04

      目標平臺:S3c2410

      開發(fā)工具:arm 交叉工具鏈版本3.4.5   

      qt4版本:qt-embedded-linux-opensource-src-4.4.3.tar.gz(可到trolltech的ftp下載)

      源碼版本:linux-2.6.8

       

      一.    到內(nèi)核查看是否支持LCD驅(qū)動、framebuffer

      cd  /source/kernel/linux-2.6.8

      make menuconfig

       

      在界面中找到Graphics support

      進入查看Support for framebuffer devices 和 S3C2410 LCD framebuffer support兩個選項是否被選中,選中代表內(nèi)核已支持。否則選中兩個選項,然后保存退出, make zImage

      將新生成的內(nèi)核鏡像燒寫到開發(fā)板上。

       

      二.    將QtEmbeded 源碼包解壓后,把configsh文件考到解壓后的目錄中,可以根據(jù)實際情況修改configsh文件中第一行制定的安裝目錄

      ./configsh

      (configsh腳本內(nèi)容如下:

      #!/bin/sh

      ./configure -prefix /home/linux/qt4_port/qt/build\
       -release -shared \
       -fast \
       -pch \
       -no-qt3support \
       -qt-sql-sqlite \
       -no-libtiff  -no-libmng \
       -qt-libjpeg \
       -qt-zlib \
       -qt-libpng \
       -qt-freetype \
       -no-openssl \
       -nomake examples -nomake demos -nomake tools \
       -optimized-qmake \
       -no-phonon \
       -no-nis \
       -no-opengl \
       -no-cups \
       -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-xkb -no-sm \
       -no-xinerama -no-xshape \
       -no-separate-debug-info \
       -xplatform qws/linux-arm-g++ \
       -embedded arm \
       -depths 16 \
       -no-qvfb \
       -qt-gfx-linuxfb \
       -no-gfx-qvfb -no-kbd-qvfb -no-mouse-qvfb \
       -qt-kbd-usb \
       -confirm-license \
       -no-armfpa

       

      make && make install

      這個時候在指定的安裝目錄會出現(xiàn)如下目錄:bin include lib mkspecs plugins translations

       

      三.    將開發(fā)機下的linux-2.6.8文件系統(tǒng)用nfs掛載到開發(fā)板上(開發(fā)板上/var目錄下為可寫),

      mount –t nfs –o nolock 192.168.1.100:/source/rootfs  /var/mnt

      然后將上一步生成的lib庫文件考到掛載的根文件系統(tǒng)的/home/qt/build/lib目錄下

      cp /home/linux/qt4_port/qt/build/lib/libQt*  /source/rootfs/home/qt/build/lib

       

      四.         拷貝顯示中文的文泉驛字體到根文件系統(tǒng)的相應目錄下:

      cp /home/linux/qt4_port/qt/build/lib/fonts/wenquanyi_160_75.qpf \

      /source/rootfs/home/qt/build/fonts

       

      五. 用qt編一個helloworld 程序進行測試。使用qmake、make對程序進行編譯。

      注意:一定要用qtembed安裝目錄下bin/下面的qmake

      /home/linux/qt4_port/qt/build/bin/qmake  –project

      /home/linux/qt4_port/qt/build/bin/qmake

      make

       

      六.將上一步生成的可執(zhí)行文件helloworld考到掛載的根文件系統(tǒng)下

      在開發(fā)板上設置環(huán)境變量

      export QTDIR=/var/mnt /home/qt/build

      export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

      export PATH=$QTDIR/bin:$PATH

      export QT_QWS_FONTDIR=/var/mnt /home/qt/build/fonts

       

      最后運行helloworld程序

      ./helloworld  -qws

       

      就可以看到界面了。

        本站是提供個人知識管理的網(wǎng)絡存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權內(nèi)容,請點擊一鍵舉報。
        轉(zhuǎn)藏 分享 獻花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多