国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
Qt/Embedded移植詳解

開發(fā)平臺(tái):ubuntu 7.04

目標(biāo)平臺(tái):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ū)動(dòng)、framebuffer

cd  /source/kernel/linux-2.6.8

make menuconfig

 

在界面中找到Graphics support

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

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

 

二.    將QtEmbeded 源碼包解壓后,把configsh文件考到解壓后的目錄中,可以根據(jù)實(shí)際情況修改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

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

 

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

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

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

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

 

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

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

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

 

五. 用qt編一個(gè)helloworld 程序進(jìn)行測(cè)試。使用qmake、make對(duì)程序進(jìn)行編譯。

注意:一定要用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ā)板上設(shè)置環(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

 

最后運(yùn)行helloworld程序

./helloworld  -qws

 

就可以看到界面了。

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
qt問題收集
最新版qtE4.5.2成功移植編譯及運(yùn)行
編譯安裝tslib1.4
Qt4.8.3移植總結(jié)
安裝linux版本QT SDK 和Qt Creator配置編譯說明
Building Qt with OpenGL ES accelerated by SGX
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服