Important: Please read the Qt Code of Conduct -

Cross compile Qt5.5.1 for Arm9 with arm-none-linux-gnueabi toolchani

  • Hi.
    I wana to cross compile Qt5.5.1 for Arm9 with arm-none-linux-gnueabi toolchani, But I don't know which parameters I should be send to configure.
    The toolchain is in : /home/pc_user/crosscompiler/armcrosscompiler
    I have compiled some packages whith this compiler such as:
    Gstreamer1.6.2, gst-plugins-base1.6.2, gst-plugins-good1.6.2, zlib, libffi, glib, expat, openssl, icu, libpng and some other.
    I have created a folder for each package and saved the compiled files in it. For example compiled zlib is saved in /Home/pc_usr/build/zlib.
    Can anybody help me to set correct parameters to configure so that generated make file can find all these pakages and build QT5.5.1?
    Thanks a lot.

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    To add additional include and lib path for configure to search there's the -I and -L options with a space (unlike the compiler/linker parameter) so basically ./configure -L /home/pc_user/build/zlib

  • This is how yocto configures Qt

    configure -v
    -opensource -confirm-license
    -sysroot /home/nws/yocto-fido-dev/oe-layersetup/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm
    -prefix /usr
    -bindir /usr/bin/qt5
    -libdir /usr/lib
    -datadir /usr/share/qt5
    -sysconfdir /etc/qt5
    -docdir /usr/share/doc/qt5
    -headerdir /usr/include/qt5
    -archdatadir /usr/lib/qt5
    -libexecdir /usr/lib/qt5/libexec
    -plugindir /usr/lib/qt5/plugins
    -importdir /usr/lib/qt5/imports
    -qmldir /usr/lib/qt5/qml
    -translationdir /usr/share/qt5/translations
    -testsdir /usr/share/qt5/tests
    -examplesdir /usr/share/qt5/examples
    -hostbindir /usr/bin/qt5
    -external-hostbindir /home/nws/yocto-fido-dev/oe-layersetup/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/bin/qt5
    -hostdatadir /home/nws/yocto-fido-dev/oe-layersetup/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm/usr/lib/qt5
    -platform /home/nws/yocto-fido-dev/oe-layersetup/build/arago-tmp-external-linaro-toolchain/sysroots/x86_64-linux/usr/lib/qt5/mkspecs/linux-oe-g++
    -xplatform linux-oe-g++
    -shared -silent -no-pch -no-rpath -pkg-config -accessibility -no-alsa -no-cups -dbus -no-directfb -evdev -make examples -compile-examples -no-fontconfig -freetype -opengl es2 -eglfs -no-glib -no-gtkstyle -no-harfbuzz -no-iconv -icu -system-libjpeg -no-kms -no-libinput -system-libpng -no-libproxy -make libs -no-linuxfb -no-mitshm -no-mtdev -no-nis -openssl-linked -no-openvg -qt-pcre -pulseaudio -release -no-sm -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -no-sql-tds -nomake tests -make tools -no-tslib -libudev -widgets -no-xcb -no-xcursor -no-xfixes -no-xinerama -no-xinput -no-xinput2 -no-xkb -no-xkbcommon -no-xrandr -no-xrender -no-xshape -no-xsync -no-xvideo -system-zlib -qpa eglfs

Log in to reply