QT4.8.4+DirectFB1.4.3

来源:互联网 发布:淘宝cku总统妈妈犬舍 编辑:程序博客网 时间:2024/06/16 20:59

1.QT Embed移植不详细说了

2.编译DirectFB。

3.在使用到的交叉编译qmakeconf文件中添加DirectFB的库文件和头文件路径

QT_CFLAGS_DIRECTFB = -I/usr/local/dFB-1.4.3/include/directfb -D_REENTRANT
QT_LIBS_DIRECTFB = -L/usr/local/dFB-1.4.3/lib/ -ldirect -ldirectfb -lfusion

4.修改配置选项,增加DirectFB相关

./configure -prefix /home/light/qt-4.8.4 -confirm-license -release -embedded armv-linux -little-endian -opensource -qt-freetype -depths 16,18 -no-gfx-linuxfb -no-gfx-transformed -no-gfx-multiscreen -no-gfx-vnc -no-gfx-qvfb -qt-gfx-directfb -I/usr/local/dFB-1.4.3/include/directfb -L/usr/local/dFB-1.4.3/lib/ -no-pch -qt-mouse-tslib -no-glib -no-openssl -no-phonon -no-phonon-backend -nomake demos -nomake examples -no-qt3support -no-largefile -declarative -no-webkit -xmlpatterns -exceptions

5.make

6.make install

7.重新拷贝库至板子

8.运行程序测试

./hello -qws -display directfb

启动成功后,OK。


0 0
原创粉丝点击