Cross compiling Qt5 for raspberry pi - ABI detection failed



  • Hi,
    I am trying to use QtCreator 2.5.2 in ubuntu 12.10 to cross compile and deploy to 2012-10-28-wheezy-raspbian.

    I ran the bakeqtpi script from here: http://qt-project.org/wiki/RaspberryPi_Beginners_guide
    then fixed the "Qt version not properly installed" error by using mkdir bin and mkdir translations, then fixed the "The default mkspec symlink is broken." error by copying the mkspecs to /mnt/rasp-pi-rootfs as described, and then making the default symlink.

    Now in the Qt Creator Build and Run | Qt Versions tab, there is a warning triangle next to the qt5pi version and the message:

    "ABI detection failed: Make sure to use a matching tool chain when building".

    I am wondering if this is the reason why Qt Creator will not let me change the QT version to qt5pi in the Embedded linux target (the list of versions is greyed out and stuck on Qt4.8.3 in PATH(System)).

    As an alternative, I tried using the Desktop target (where I can select and build the arm qt5pi version) but here there is no "Deploy to Remote Linux Host" Deployment configuration available to add (unlike in the Embedded linux target).

    So I can build a rasbian qt5 executable in Desktop but can't deploy it, whereas under Embedded Linux I think I could deploy it, but can't build it!

    Any help would be greatly appreciated.

    Regards,
    Kit


  • Moderators

    Qt Creator 2.5 does not work with Qt 5, sorry. There simply was no Qt 5 in the current form when that branch was released.

    You will need Qt Creator 2.6 for Qt5 up to and including beta2.

    Any Qt 5 later than that will need to use nightly snapshots (or will have to wait for Qt Creator 2.6.1): After the beta2 all libraries were renamed again:-(



  • Thank you for your reply. It is very helpful. When I have time I will try Qt Creator 2.6.

    Regards,
    Kit



  • Hello,

    I have had the exact same problems as spinorkit. I have installed Qt 5.0.0 with creator 2.6.0 and still i get the “ABI detection failed: Make sure to use a matching tool chain when building" warning.

    If i look under details I see the following:

    Name: Qt (qt5pi)
    ABI: unknown-unknown-unknown-unknown-unknown
    Source: /mnt/rasp-pi-rootfs/usr/local/qt5pi
    mkspec: devices/linux-rasp-pi-g++
    qmake: /usr/local/qt5pi/bin/qmake
    Version: 5.0.0

    Any ideas?

    Kind regards,
    Stijn


  • Moderators

    Qt5 did rename all the libraries after beta2... so if you are using something newer than that you will need Qt Creator > 2.6.0.

    You can either build it yourself, wait for the next Qt5 release which will contain a fixed creator, downgrade Qt to beta2 or grab a nightly build of creator (builds.qt-project.org).



  • Thank you Tobias,

    I downloaded Qt creator 2.6.1 and it works like a charm!!

    Thank again,

    Stijn


  • Moderators

    Sorry for the pain. I am sure now that Qt 5 is getting closer to final things will calm down again. Then Creator should be able to stay up to date for longer;-)



  • Thanks for the hint about the 2.6.1!
    After trying to get things running both on latest ubuntu build (12.10) I could finally get the creator setup for Debian 6.

    For those searching for the 2.6.1 to get rid of the Abi detection failure under - 2.6 Rasberry Pi deployment

    • "Linux32bit Download
      ":http://builds.qt-project.org/view/Qt Creator/job/qt-creator-unix-snapshot/label=ubuntu32-builder-1004/lastSuccessfulBuild/artifact/build/qt-creator-linux-i386-2.6.1-271-2012-12-03_13-42-32.bin

    or the

    • "Linux64bit Download
      ":http://builds.qt-project.org/view/Qt Creator/job/qt-creator-unix-snapshot/label=ubuntu64-builder-1004/lastSuccessfulBuild/artifact/build/qt-creator-linux-x86_64-2.6.1-271-2012-12-03_13-42-32.bin

    cheers



  • Tobias, I use QtCreator 2.5.2 to build Qt5 applications. (I build Qt5 from git)


  • Moderators

    svenyonson: Then you should get the ABI detection warnings. It is a warning, so you should still be able to continue with it (at least in a desktop setting).

    I still recommend to upgrade:)


Log in to reply
 

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