1. qt5.x移植
编译脚本&配置参数:
#!/bin/sh. $PWD/build_config.sh#export PREFIX=/mcuzone/nfsroot/rootfs_build#export BUILD_DIR=$PWD/buildmkdir -p $BUILD_DIRexport PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATHcd $BUILD_DIRxz -d ../qt-everywhere-opensource-src-5.5.1.tar.xztar xvf ../qt-everywhere-opensource-src-5.5.1.tarcd qt-everywhere-opensource-src-5.5.1./configure -v -opensource -confirm-license -release -shared -prefix /qt551 -xplatform linux-arm-gnueabi-g++ -D QT_QWS_CLIENTBLIT -verbose -sysroot $PREFIX -no-gcc-sysroot -rpath -R /mcuzone/nfsroot/rootfs_build/lib -force-pkg-config -continue -system-libjpeg -qt-libpng -no-compile-examples -nomake examples -skip qt3d -no-iconv -make libs -no-c++11 -no-sse2 -openssl -no-nis -no-opengl -no-cups -no-glib -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-separate-debug-info -no-sql-mysql -no-sql-db2 -skip qtwebkit -no-sql-ibase -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -no-libproxy -no-icu -no-pulseaudio -no-tslib -no-xkbcommon-evdev -no-xcb-xlib -no-xinput2 -no-eglfs -nomake tools -qt-freetype -system-zlib -I$PREFIX/include -I$PREFIX/usr/include -L$PREFIX/libmakemake installcd ..
2. directfb 双缓存 2d图像加速移植
3.diaochan移植
Qt version is not properly installed 问题
这个是qtcreator版本和qt版本不兼容的问题,需要安装更新版本的qtcreator
3.2 gpsd
下载最新版本的gpsd:
编译配置:
参考:
https://gist.github.com/rlrosa/1802854
这里只需要指定target即编译器即可,执行gpsd编译qt版本的动态库会出错,不用理会,这里直接使用libgps就可以了。
libgps要拷贝到rootfs_build/lib下(不是usr/lib)
3.3 dbus
先要移植expat
参考:
再移植dbus:
最后执行:
dbus-uuidgen > /etc/machine-id
参考:
编译脚本:
#!/bin/sh. $PWD/build_config.sh#export PREFIX=/mcuzone/nfsroot/rootfs_build#export BUILD_DIR=$PWD/buildexport HOST=arm-none-linux-gnueabimkdir -p $BUILD_DIRexport LD=$HOST-ld export CC=$HOST-gcc export CXX=$HOST-g++ export CPP="$HOST-gcc -E" export OBJDUMP=$HOST-objdump export AS=$HOST-as export AR=$HOST-arexport RANLIB=$HOST-ranlib export STRIP=$HOST-strip export NM=$HOST-nm export CFLAGS="-mtune=arm926ej-s -mcpu=arm926ej-s -I$PREFIX/include -I$PREFIX/usr/include"export CPPFLAGS="-march=armv5te -mcpu=arm926ej-s -I$PREFIX/include -I$PREFIX/usr/include" export LDFLAGS="-L$PREFIX/lib -Wl,-rpath,$PREFIX/lib"export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig ### libexpatcd $BUILD_DIRtar jxvf ../expat-2.2.4.tar.bz2cd expat-2.2.4./configure --host=$HOST --prefix=$PREFIXmakemake install-stripcd ..### libdbuscd $BUILD_DIRtar zxvf ../dbus-1.11.16.tar.gzcd dbus-1.11.16./configure --host=$HOST --prefix=$PREFIXmakemake install-stripcd ..