Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 5.5 Linux x86-64 cross compile to arm 32
Forum Update on Monday, May 27th 2025

Qt 5.5 Linux x86-64 cross compile to arm 32

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 3 Posters 3.2k Views
  • 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 Offline
    Z Offline
    zamek
    wrote on 23 Feb 2016, 09:31 last edited by A Former User
    #1

    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
    0
    • Z Offline
      Z Offline
      zamek
      wrote on 23 Feb 2016, 10:20 last edited by zamek
      #2

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

      thx
      Zamek

      A 1 Reply Last reply 18 Dec 2019, 07:14
      0
      • B Offline
        B Offline
        boutheina
        wrote on 9 Mar 2016, 12:38 last edited by
        #3

        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
        0
        • Z zamek
          23 Feb 2016, 10:20

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

          thx
          Zamek

          A Offline
          A Offline
          Ashutosh_Sachdeva
          wrote on 18 Dec 2019, 07:14 last edited by
          #4

          @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
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved