Qt 5.5 Linux x86-64 cross compile to arm 32



  • Hi All,

    I would like to use a Wandboard for my job. I have a x86-64 bits laptop to development.
    I downloaded the qt 5.5 source and I compiled it with these config settings:
    ./configure -opensource -confirm-license -make libs -device imx6
    -device-option CROSS_COMPILE=arm-linux-gnueabihf-
    -sysroot /home/zamek/embedded/wandboard/rootfs/current
    -prefix /usr/lib/qt -no-gcc-sysroot -no-glib -no-nis -no-libudev -no-iconv
    -no-rpath -no-icu -no-directfb -evdev -no-fontconfig

    it compiled successfully and there was a new qt directory on my rootfs /usr/lib/qt.

    After that I tried to use it with QtCreator, I added a new compiler named arm-linux-gnueabihf which is the same as I used in compiling qt. I could add a new qt version from my rootfs as well.
    When I want to add a new kit named wandboard and I set all the parameters, qtcreator said an error:
    "The compiler arm-linux-gnueabihf (arm-linux-generic-elf-32bit) cannot produce code for Qt version "Qt 5.5.1 in PATH (qt5)" (x86-linux-generic-elf-32bit) <<<<<<<<<!!!!!!!!!!!!!!!!!!!!!!!!!!!

    My qt5 is (compiled with arm-linux-gnueabihf) is:

    Name: Qt 5.5.1 (lib)
    ABI: arm-linux-generic-elf-32bit
    Source: /home/zamek/embedded/wandboard/rootfs/debian-7.1-minimal-armhf-2013-08-25/usr/lib/qt
    mkspec:devices/linux-imx6-g++
    qmake:/home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt/bin/qmake
    Version:5.5.1
    QMAKE_SPEC linux-g++
    QMAKE_VERSION 3.0
    QMAKE_XSPEC devices/linux-imx6-g++
    QT_HOST_BINS /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt/bin
    QT_HOST_DATA /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt
    QT_HOST_LIBS /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt/lib
    QT_HOST_PREFIX /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt
    QT_INSTALL_ARCHDATA /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt
    QT_INSTALL_BINS /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt/bin
    QT_INSTALL_CONFIGURATION /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt/etc/xdg
    QT_INSTALL_DATA /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt
    QT_INSTALL_DEMOS /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt/examples
    QT_INSTALL_DOCS /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt/doc
    QT_INSTALL_EXAMPLES /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt/examples
    QT_INSTALL_HEADERS /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt/include
    QT_INSTALL_IMPORTS /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt/imports
    QT_INSTALL_LIBEXECS /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt/libexec
    QT_INSTALL_LIBS /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt/lib
    QT_INSTALL_PLUGINS /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt/plugins
    QT_INSTALL_PREFIX /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt
    QT_INSTALL_QML /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt/qml
    QT_INSTALL_TESTS /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt/tests
    QT_INSTALL_TRANSLATIONS /home/zamek/embedded/wandboard/rootfs/current/usr/lib/qt/translations
    QT_SYSROOT /home/zamek/embedded/wandboard/rootfs/current
    QT_VERSION 5.5.1

    My rootfs is a arm debian stable.

    Where qtcreator founds the x86-linux-generic-elf-32bit in my rootfs?

    thx
    Zamek



  • SOLVED
    I found a shadow qt5(lib) entry on kits qt5 version combo, it works well:)

    thx
    Zamek



  • Hello!
    I've already the same error as u :/ could you please explain more your solution for me coz i didn't understand it?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.