Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Qt 5.5 Linux x86-64 cross compile to arm 32

    Mobile and Embedded
    3
    4
    2617
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zamek last edited by A Former User

      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

      1 Reply Last reply Reply Quote 0
      • Z
        zamek last edited by zamek

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

        thx
        Zamek

        A 1 Reply Last reply Reply Quote 0
        • boutheina
          boutheina last edited by

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

          1 Reply Last reply Reply Quote 0
          • A
            Ashutosh_Sachdeva @zamek last edited by

            @zamek Hi,

            I'm facing the same issue. Can u please elaborate a bit more about your suggestion as i'm not able to understand what you want to suggest.

            Thanks in advance

            1 Reply Last reply Reply Quote 0
            • First post
              Last post