Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Cross compiling Qt5 for raspberry pi - ABI detection failed
Forum Updated to NodeBB v4.3 + New Features

Cross compiling Qt5 for raspberry pi - ABI detection failed

Scheduled Pinned Locked Moved QtonPi
10 Posts 5 Posters 12.1k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    spinorkit
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      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:-(

      1 Reply Last reply
      0
      • S Offline
        S Offline
        spinorkit
        wrote on last edited by
        #3

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

        Regards,
        Kit

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Stijnb
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tobias.hunger
            wrote on last edited by
            #5

            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).

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Stijnb
              wrote on last edited by
              #6

              Thank you Tobias,

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

              Thank again,

              Stijn

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tobias.hunger
                wrote on last edited by
                #7

                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;-)

                1 Reply Last reply
                0
                • U Offline
                  U Offline
                  unixversal
                  wrote on last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    svenyonson
                    wrote on last edited by
                    #9

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

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      tobias.hunger
                      wrote on last edited by
                      #10

                      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:)

                      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