现在的位置: 首页 > 综合 > 正文

移植QtE4.5.2到开发板

2013年12月05日 ⁄ 综合 ⁄ 共 1297字 ⁄ 字号 评论关闭

1. configure参数:

./configure /
-qconfig myconfig /
-prefix /usr/QtEmbedded-4.5.2-arm /
-nomake tools /
-nomake examples /
-nomake demos /
-nomake docs /
-nomake translations /
-stl /
-continue /
-qt-sql-sqlite /
-iconv /
-qt-libpng /
-qt-zlib /
-qt-libjpeg /
-qt-gif /
-qt-libmng /
-qt-freetype /
-xplatform qws/linux-arm-g++ /
-no-rpath /
-no-exceptions /
-no-accessibility /
-no-qt3support /
-no-opengl /
-no-nis /
-no-cups /
-no-largefile /
-no-accessibility /
-no-pch /
-no-gfx-multiscreen /
-no-gfx-vnc /
-no-gfx-qvfb /
-no-gfx-transformed /
-no-kbd-tty /
-no-kbd-sl5000 /
-no-kbd-yopy /
-no-kbd-vr41xx /
-no-kbd-qvfb /
-no-webkit /
-no-mmx /
-no-3dnow /
-no-sse /
-no-sse2 /
-no-openssl /
-no-dbus /
-no-phonon /
-no-xmlpatterns /
-no-svg /
-no-glib /
-no-scripttools /
-no-phonon-backend /
-no-libtiff /
-opensource /
-release /
-shared /
-fast /
-little-endian /
-embedded arm

    其中,myconfig是qconfig工具对QTE的裁剪。
    若加上参数-depths 16,18 运行时会提示solidFill_setup(): Screen depth 15 not supported 错误,去掉该参数后就没问题;

2.将编译出来的lib目录进行筛选,留下libqtgui libqtcore libqtnetwork三个库及其链接,还有字体目录fonts,将lib目录放到要下载到板子上的文件系统的/usr/QtEmbedded-4.5.2-arm(与configure时的参数prefix指定的目录一致)下,并修改文件系统中的/etc/profile文件,加入环境变量设置:
export QTEDIR=/usr/QtEmbedded-4.5.2-arm
export LD_LIBRARY_PATH=/usr/QtEmbedded-4.5.2-arm/lib:$LD_LIBRARY_PATH

如果lib目录没有放在/usr/QtEmbedded-4.5.2-arm下,除了按实际情况设置上面两个环境变量之外,还要再设置一个字体的环境变量:
export QT_QWS_FONTDIR=/path/to/your/fontdir

3.将文件系统压制成bin文件烧写进开发板即可。

抱歉!评论已关闭.