QT4.8.5环境移植到嵌入式平台

QT4.8.5环境移植到嵌入式平台

参考:Qt移植到ARM Linux教程 http://www.veryarm.com/930.html

清除配置: sudo make confclean

配置:   sudo ./configure -prefix /opt/qt-4.8.5 -opensource -release -shared -Declarative -importdir /opt/qt-4.8.5/imports -fast -no-largefile -qt-sql-sqlite -qt3support -exceptions -xmlpatterns -no-glib -no-phonon -no-mmx -no-3dnow -no-sse -no-sse2 -svg -webkit -qt-zlib -qt-libtiff -qt-libpng -qt-libjpeg -make libs -make tools -nomake examples -nomake docs -nomake demo -no-nis -no-cups -iconv -no-dbus -xplatform qws/linux-arm-g++ -embedded arm -little-endian -qt-freetype -depths 16,24,32 -qt-gfx-linuxfb -qt-gfx-transformed -qt-gfx-multiscreen -no-gfx-vnc -no-gfx-qvfb -qt-kbd-linuxinput -no-kbd-qvfb -armfpa -no-mouse-qvfb -qt-mouse-linuxtp -qt-mouse-tslib -DQT_QLOCALE_USES_FCVT -DQT_NO_QWS_CURSOR -no-pch -openssl -I/opt/tslib/include -L/opt/tslib/lib -I/usr/local/ssl/include -L/usr/local/ssl/lib -confirm-license


注意:(1)qmake.conf指定绝对路径workdir\Toolchain\gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux\bin
(2)configure 用sudo

sudo ./configure --prefix=/opt/qt-4.8.5 -opensource -release -shared -Declarative -importdir /opt/imports -fast -no-largefile -qt-sql-sqlite -qt3support -exceptions -xmlpatterns -no-glib -no-phonon -no-mmx -no-3dnow -no-sse -no-sse2 -svg -webkit -qt-zlib -qt-libtiff -qt-libpng -qt-libjpeg -make libs -make tools -nomake examples -nomake docs -nomake demo -no-nis -no-cups -iconv -no-dbus -multimedia -xplatform qws/linux-arm-g++ -embedded arm -little-endian -qt-freetype -depths 16,24,32 -qt-gfx-linuxfb -qt-gfx-transformed -qt-gfx-multiscreen -no-gfx-vnc -no-gfx-qvfb -qt-kbd-linuxinput -no-kbd-qvfb -armfpa -no-mouse-qvfb -qt-mouse-linuxtp -qt-mouse-tslib -DQT_QLOCALE_USES_FCVT -DQT_NO_QWS_CURSOR -no-pch -I/opt/tslib/include -L/opt/tslib/lib -confirm-license

-webkit -javascript-jit -script -scripttools -openssl -openssl-linked
增加webkit multimedia 选项

openssl报错,先移植openssl库,configure在用 -I -L包括openssl安装路径。

sudo ./configure --prefix=/opt/qt-4.8.5 -opensource -release -shared -Declarative -importdir /opt/imports -fast -no-largefile -qt-sql-sqlite -qt3support -exceptions -xmlpatterns -no-glib -no-phonon -no-mmx -no-3dnow -no-sse -no-sse2 -svg -webkit -qt-zlib -qt-libtiff -qt-libpng -qt-libjpeg -make libs -make tools -nomake examples -nomake docs -nomake demo -no-nis -no-cups -iconv -no-dbus -xplatform qws/linux-arm-g++ -embedded arm -little-endian -qt-freetype -depths 16,24,32 -qt-gfx-linuxfb -qt-gfx-transformed -qt-gfx-multiscreen -no-gfx-vnc -no-gfx-qvfb -qt-kbd-linuxinput -no-kbd-qvfb -armfpa -no-mouse-qvfb -qt-mouse-linuxtp -qt-mouse-tslib -DQT_QLOCALE_USES_FCVT -DQT_NO_QWS_CURSOR -no-pch -openssl -I/opt/tslib/include -L/opt/tslib/lib -I/usr/local/ssl/include -L/usr/local/ssl/lib -confirm-license

 

sudo make

sudo make install

posted on 2017-08-23 17:43  xihong  阅读(391)  评论(0编辑  收藏  举报

导航