Cross compiling Qt Embedded:
Buildroot provide the easiest way to cross compile Qt Embedded for arm platform. Buildroot can be downloaded here.
configure buildroot to cross compile the Qt for arm platform, make sure to enable this in .config file of buildroot
BR2_arm=y
BR2_generic_arm=y
BR2_ARM_TYPE="GENERIC_ARM"
BR2_ARM_EABI=y
BR2_ARCH="arm"
BR2_ENDIAN="LITTLE"
BR2_GCC_TARGET_ABI="aapcs-linux"
Dependency packages for creating video player,
Modifications to be done on .conf files of Qt package:-
Modify qws.conf file content like,
QT += core gui network phonon
qws.conf file path "/home/hussain/buildroot-2012.05/output/build/qt-4.8.2/mkspecs/common"
Modify linux.conf file content like,
QMAKE_INCDIR_QT = /home/hussain/buildroot-2012.05/output/build/qt-4.8.2/include
QMAKE_LIBDIR_QT = /home/hussain/buildroot-2012.05/output/target/usr/lib
QMAKE_MOC = /home/hussain/buildroot-2012.05/output/build/qt-4.8.2/bin/moc
QMAKE_UIC = /home/hussain/buildroot-2012.05/output/build/qt-4.8.2/bin/uic
linux.conf file path "/home/hussain/buildroot-2012.05/output/build/qt-4.8.2/mkspecs/common"
Compilation steps:-
Buildroot provide the easiest way to cross compile Qt Embedded for arm platform. Buildroot can be downloaded here.
configure buildroot to cross compile the Qt for arm platform, make sure to enable this in .config file of buildroot
BR2_arm=y
BR2_generic_arm=y
BR2_ARM_TYPE="GENERIC_ARM"
BR2_ARM_EABI=y
BR2_ARCH="arm"
BR2_ENDIAN="LITTLE"
BR2_GCC_TARGET_ABI="aapcs-linux"
Dependency packages for creating video player,
- Qt.
- Phonon packages.
- gstreamer packages.
Modifications to be done on .conf files of Qt package:-
Modify qws.conf file content like,
QT += core gui network phonon
qws.conf file path "/home/hussain/buildroot-2012.05/output/build/qt-4.8.2/mkspecs/common"
Modify linux.conf file content like,
QMAKE_INCDIR_QT = /home/hussain/buildroot-2012.05/output/build/qt-4.8.2/include
QMAKE_LIBDIR_QT = /home/hussain/buildroot-2012.05/output/target/usr/lib
QMAKE_MOC = /home/hussain/buildroot-2012.05/output/build/qt-4.8.2/bin/moc
QMAKE_UIC = /home/hussain/buildroot-2012.05/output/build/qt-4.8.2/bin/uic
linux.conf file path "/home/hussain/buildroot-2012.05/output/build/qt-4.8.2/mkspecs/common"
Compilation steps:-
- /home/hussain/buildroot-2012.05/output/build/qt-4.8.2/bin/qmake -project
- /home/hussain/buildroot-2012.05/output/build/qt-4.8.2/bin/qmake -spec /home/hussain/buildroot-2012.05/output/build/qt-4.8.2/mkspecs/qws/linux-arm-g++ -r
- make
- ./media_player <path of videos folder> -qws