Error while setting cross compiler in QT5.2.1

  • I am working on cross compiling QT apps for BeagleBone Black.
    I have installed QT5.2.1 on Ubuntu 14.04 and its working perfectly for Ubuntu.
    I have installed compiler gcc-linaro-arm-linux-gnueabihf 4.8-2013.04-20130417_linux for cross compilation.
    But when I am setting up cross compiler I getting red mark on my kit option and error below :

    The Compiler 'xxxxxxxxx'(arm-linux-generic-elf-32bit) cannot produce code for QT version QT 5.2.1 in PATH QT5 (x86-linux-generic-elf-32bit)

    I have tried other tool chain also but with no success. I am unable to understand where I am getting wrong and how to resolve it.

  • did you create a .../qtbase/mkspecs/ folder for your compiler with the correct settings for qmake.conf and qplatformdefs.h?

    did you configure with the right platform? Looks like Qt it's using x86 mkspecs. For my Arm system it's:

    -xplatform arm-none-linux-gnueabi-g++
    -platform linux-g++
    -device-option CROSS_COMPILE=/opt/CodeSourcery/bin/arm-none-linux-gnueabi-

Log in to reply

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