Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qmake not executable while configuring
Forum Update on Monday, May 27th 2025

Qmake not executable while configuring

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
20 Posts 4 Posters 3.7k 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.
  • R Offline
    R Offline
    Rohit39
    wrote on 11 Mar 2021, 14:16 last edited by
    #1

    I have created Yocto toolchain for qt5. While configuring Qt version facing issue as 2cf8b939-2a9a-4447-bf5b-f54f8e546633-image.png

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JonB
      wrote on 11 Mar 2021, 16:40 last edited by
      #2

      An "exec format error" implies the actual executable file is corrupt, or for a different architecture.

      You might check it with file qmake , to see what it says it is.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 11 Mar 2021, 19:22 last edited by
        #3

        Hi,

        The path shown there is within the sysroot meaning the root filesystem for your target. Therefore the binaries in there are built for your target architecture.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • R Offline
          R Offline
          Rohit39
          wrote on 12 Mar 2021, 06:15 last edited by
          #4

          Okay , Thank you @JonB , @SGaist for your valuable response.
          I want to complile the qt application code on ubuntu desktop through for Imx6 architecture. so i created the toolchain SDK with help of yocto.

          As per your suggestion if check it with file qmake output is as follow:
          qt5/qmake: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=a8d35a7ec22c1c368ba4b9906dc9cd880f146834, stripped

          Did i done wrong while toolchain creation in yocto?

          J 1 Reply Last reply 12 Mar 2021, 06:19
          0
          • R Rohit39
            12 Mar 2021, 06:15

            Okay , Thank you @JonB , @SGaist for your valuable response.
            I want to complile the qt application code on ubuntu desktop through for Imx6 architecture. so i created the toolchain SDK with help of yocto.

            As per your suggestion if check it with file qmake output is as follow:
            qt5/qmake: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=a8d35a7ec22c1c368ba4b9906dc9cd880f146834, stripped

            Did i done wrong while toolchain creation in yocto?

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 12 Mar 2021, 06:19 last edited by
            #5

            @Rohit39 said in Qmake not executable while configuring:

            Did i done wrong while toolchain creation in yocto?

            Looks like that. Then you cross compile Qt you should get tools like qmake compiled for HOST architecture, not target architecture as you execute them on host machine when cross compiling your apps.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • R Offline
              R Offline
              Rohit39
              wrote on 12 Mar 2021, 06:53 last edited by
              #6

              I have created toolchain by following settings:
              MACHINE ??= 'imx6ull14x14evk' in local.conf
              do i need to change it ?

              J 1 Reply Last reply 12 Mar 2021, 07:02
              0
              • R Rohit39
                12 Mar 2021, 06:53

                I have created toolchain by following settings:
                MACHINE ??= 'imx6ull14x14evk' in local.conf
                do i need to change it ?

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 12 Mar 2021, 07:02 last edited by
                #7

                @Rohit39 Did you search for qmake outside of "sysroots" folder (but inside /opt/fsl-imx-x11/4.9.88-2.0.0)?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  Rohit39
                  wrote on 12 Mar 2021, 07:11 last edited by
                  #8

                  @jsulm qmake file location is : /opt/fsl-imx-x11/4.9.88-2.0.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/bin/qt5

                  and sysroots folder contains as follows:
                  cortexa7hf-neon-poky-linux-gnueabi x86_64-pokysdk-linux

                  J 1 Reply Last reply 12 Mar 2021, 07:15
                  0
                  • R Rohit39
                    12 Mar 2021, 07:11

                    @jsulm qmake file location is : /opt/fsl-imx-x11/4.9.88-2.0.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/bin/qt5

                    and sysroots folder contains as follows:
                    cortexa7hf-neon-poky-linux-gnueabi x86_64-pokysdk-linux

                    J Offline
                    J Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on 12 Mar 2021, 07:15 last edited by
                    #9

                    @Rohit39 said in Qmake not executable while configuring:

                    qmake file location is

                    So, there is no other qmake?
                    Did you try

                    find /opt/fsl-imx-x11 -name qmake
                    

                    ?

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      Rohit39
                      wrote on 12 Mar 2021, 07:28 last edited by
                      #10

                      @jsulm Thank you for your response.
                      if do find /opt/fsl-imx-x11 -name qmake output is as follow:
                      /opt/fsl-imx-x11/4.9.88-2.0.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/src/debug/qtbase/5.9.4+gitAUTOINC+0d9208cecb-r0/git/qmake

                      /opt/fsl-imx-x11/4.9.88-2.0.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/bin/qt5/.debug/qmake

                      /opt/fsl-imx-x11/4.9.88-2.0.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/bin/qt5/qmake

                      first one is directory and last two are executable with following information
                      if do file /opt/fsl-imx-x11/4.9.88-2.0.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/bin/qt5/.debug/qmake

                      qmake: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, interpreter empty, for GNU/Linux 3.2.0, BuildID[sha1]=a8d35a7ec22c1c368ba4b9906dc9cd880f146834, not stripped

                      and file /opt/fsl-imx-x11/4.9.88-2.0.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/bin/qt5/qmake
                      qt5/qmake: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=a8d35a7ec22c1c368ba4b9906dc9cd880f146834, stripped

                      J 1 Reply Last reply 12 Mar 2021, 07:29
                      0
                      • R Rohit39
                        12 Mar 2021, 07:28

                        @jsulm Thank you for your response.
                        if do find /opt/fsl-imx-x11 -name qmake output is as follow:
                        /opt/fsl-imx-x11/4.9.88-2.0.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/src/debug/qtbase/5.9.4+gitAUTOINC+0d9208cecb-r0/git/qmake

                        /opt/fsl-imx-x11/4.9.88-2.0.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/bin/qt5/.debug/qmake

                        /opt/fsl-imx-x11/4.9.88-2.0.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/bin/qt5/qmake

                        first one is directory and last two are executable with following information
                        if do file /opt/fsl-imx-x11/4.9.88-2.0.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/bin/qt5/.debug/qmake

                        qmake: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, interpreter empty, for GNU/Linux 3.2.0, BuildID[sha1]=a8d35a7ec22c1c368ba4b9906dc9cd880f146834, not stripped

                        and file /opt/fsl-imx-x11/4.9.88-2.0.0/sysroots/cortexa7hf-neon-poky-linux-gnueabi/usr/bin/qt5/qmake
                        qt5/qmake: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=a8d35a7ec22c1c368ba4b9906dc9cd880f146834, stripped

                        J Offline
                        J Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on 12 Mar 2021, 07:29 last edited by
                        #11

                        @Rohit39 Then it looks like host tools were not generated or installed. But I'm not Yocto expert.

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • R Offline
                          R Offline
                          Rohit39
                          wrote on 12 Mar 2021, 07:42 last edited by
                          #12

                          Thank You For Valuable response @jsulm

                          1 Reply Last reply
                          0
                          • R Offline
                            R Offline
                            Rohit39
                            wrote on 12 Mar 2021, 07:56 last edited by
                            #13

                            Please let me know if anyone have some idea about this

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on 12 Mar 2021, 08:15 last edited by
                              #14

                              Take a look at this article, it talks about building a SDK targeted at cross-compilation with Qt.

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              1 Reply Last reply
                              0
                              • R Offline
                                R Offline
                                Rohit39
                                wrote on 12 Mar 2021, 10:04 last edited by
                                #15

                                @SGaist I followed same link. but not able to produced qmake for x86 platform

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on 12 Mar 2021, 20:33 last edited by
                                  #16

                                  What exactly did you do ?

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  R 1 Reply Last reply 15 Mar 2021, 06:10
                                  0
                                  • S SGaist
                                    12 Mar 2021, 20:33

                                    What exactly did you do ?

                                    R Offline
                                    R Offline
                                    Rohit39
                                    wrote on 15 Mar 2021, 06:10 last edited by
                                    #17

                                    @SGaist I have followed first
                                    $bitbake meta-toolchain-qt5
                                    but it throws an error :
                                    Error: Transaction check error:file /opt/fsl-imx-x11/4.9.88-2.0.0/sysroots/x86_64-pokysdk-linux/environment-setup.d conflicts between attempted installs of nativesdk-cmake-3.8.2-r0.x86_64_nativesdk and nativesdk-qtbase-tools-5.9.4+git0+0d9208cecb-r0.x86_64_nativesdk
                                    Its for Rocko version.
                                    and about to follow steps as below from doc
                                    inherit populate_sdk_qt5 == [in recipe image]
                                    $bitbake -c populate_sdk <image-name>

                                    so its not generating qmake file for x86 architecture.

                                    1 Reply Last reply
                                    0
                                    • S Offline
                                      S Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on 15 Mar 2021, 20:12 last edited by
                                      #18

                                      The versions of the two clashing packages looks pretty old...

                                      Interested in AI ? www.idiap.ch
                                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      1 Reply Last reply
                                      0
                                      • R Offline
                                        R Offline
                                        Rohit39
                                        wrote on 16 Mar 2021, 07:15 last edited by
                                        #19

                                        Do you mean Yocto version: Rocko Right?

                                        1 Reply Last reply
                                        0
                                        • S Offline
                                          S Offline
                                          SGaist
                                          Lifetime Qt Champion
                                          wrote on 16 Mar 2021, 19:08 last edited by
                                          #20

                                          I was thinking about both cmake and Qt versions.

                                          Interested in AI ? www.idiap.ch
                                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                          1 Reply Last reply
                                          0

                                          1/20

                                          11 Mar 2021, 14:16

                                          • Login

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