Qt4 在x86和arm平台上的一些配置

ARM 197浏览

需要注意的是一些库的配置, 如zlib, libpng, libjpeg, libmng这些. 一般x86平台都自带了, arm的就需要自己编译了. 如果在配置arm版本Qt时不想把手动配置这些库的目录, 可以将这些库拷到交叉编译工具自动搜索的目录. 不清楚的话可以随便写一个test.c, 然后使用

[corss_compile]gcc -v test.c

就可以列出来了. 或者用

[corss_compile]gcc -print-search-dirs

还有可以使用环境变量


CPLUS_INCLUDE_PATH

C_INCLUDE_PATH

LIBRARY_PATH

Build QtCore-4.1.4 forarm
./configure /
-release /
-prefix /usr/local/qt /
-static /
-fast /
-qt-libpng /
-qt-zlib /
-qt-gif /
-qt-libmng /
-no-qt3support /
-embedded arm /
-xplatform qws/linux-arm-g++ /
-depths 8,16,24 /
-qt-kbd-vr41xx /
-no-mouse-pc /
-no-mouse-bus /
-no-mouse-linuxtp /
-no-mouse-yopy /
-no-mouse-vr41xx /
-no-mouse-tslib /
-no-opengl /
-confirm-license

Build QtCore-4.3 for x86(qvfb)
./configure /
-no-qt3support /
-no-openssl /
-optimized-qmake /
-no-nis /
-no-cups /
-depths 16 /
-embedded x86 /
-qt-gfx-qvfb /
-qt-gfx-linuxfb /
-no-qdbus /
-fast /
-nomake examples -nomake demos /
-qt-kbd-qvfb -qt-mouse-qvfb /
-prefix /opt/QtX11-4.3/ /
-confirm-license

Build QtX11-4.4-tp1 for x86
./configure /
-prefix /opt/QtX11-4.4-tp1/ /
-release -shared /
-fast /
-system-sqlite /
-no-openssl /
-nomake examples -nomake demos /
-optimized-qmake /
-no-nis /
-no-cups /
-no-separate-debug-info /
-confirm-license

Build QtCore-4.4-tp1 for x86(qvfb)
./configure /
-prefix /opt/QtCore-4.4-tp1/ /
-release -shared /
-fast /
-pch /
-system-sqlite /
-no-openssl /
-nomake examples -nomake demos /
-optimized-qmake /
-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 /
-embedded x86 /
-depths 16 /
-qvfb /
-qt-gfx-linuxfb -qt-gfx-qvfb /
-qt-kbd-qvfb -qt-kbd-vr41xx /
-qt-mouse-qvfb /
-confirm-license

Build QtCore-4.4-tp1 for arm
./configure /
-prefix /opt/QtCore-4.4-tp1-arm/ /
-release -shared /
-fast /
-pch /
-no-qt3support /
-qt-sql-sqlite /
-no-libtiff -no-libmng /
-system-libjpeg /
-qt-freetype /
-no-openssl /
-nomake examples -nomake demos -nomake tools/
-optimized-qmake /
-no-phono /
-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-vr41xx /
-I /opt/freescale/ltib/rootfs/usr/include /
-L /opt/freescale/ltib/rootfs/usr/lib /
-confirm-license

~
Build QtCore-4.3.3 for x86(qvfb)
./configure /
-no-qt3support /
-no-openssl /
-optimized-qmake /
-no-nis /
-no-cups /
-depths 16 /
-qt-gfx-linuxfb /
-no-qdbus /
-fast /
-nomake examples -nomake demos -nomake tools/
-qt-kbd-vr41xx /
-prefix /opt/QtCore-4.3-arm/ /
-release /
-no-libtiff -no-libmng /
-embedded arm /
-qt-freetype /
-confirm-license

Build QtCore-4.3.3 for arm
./configure /
-no-qt3support /
-no-openssl /
-optimized-qmake /
-no-nis /
-no-cups /
-depths 16 /
-embedded x86 /
-qt-gfx-qvfb /
-qt-gfx-linuxfb /
-no-qdbus /
-fast /
-nomake examples -nomake demos /
-qt-kbd-qvfb /
-qt-mouse-qvfb /
-prefix /opt/QtCore-4.3.3/ /
-confirm-license