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. "cannot execute binary file: Exec format error"
Forum Update on Monday, May 27th 2025

"cannot execute binary file: Exec format error"

Scheduled Pinned Locked Moved Solved QtonPi
9 Posts 3 Posters 12.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.
  • L Offline
    L Offline
    lina
    wrote on 18 Jul 2017, 07:34 last edited by lina
    #1

    hi,
    I can execute qt program created by 32 bit Qt-creator software on rpi3 but when I execute programs compiled by 64 bit Qt software on rpi3, I've got this error
    "cannot execute binary file: Exec format error"
    I compiled qt5.8 by 64 bit gcc arm compiler but I can't execute programs compiled by 64 bit qt-creator software. How to resolve this problem?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 18 Jul 2017, 07:48 last edited by
      #2

      Hi,

      Is you RPi running a 64bit system ?

      What does file name_of_your_application return ?

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

      L 1 Reply Last reply 19 Jul 2017, 07:55
      0
      • Y Offline
        Y Offline
        yuvaram
        wrote on 18 Jul 2017, 09:00 last edited by
        #3

        Small clarification, which Operating system is used in RPI3.
        If it is Rasbian OS , Rasbian is a 32 bit operating system.

        Cannot run 64bit application on 32 bit Operating system.

        Check your OS 32bit or 64 bit by running $uname -a in terminal.

        Yuvaram Aligeti
        Embedded Qt Developer
        : )

        1 Reply Last reply
        2
        • S SGaist
          18 Jul 2017, 07:48

          Hi,

          Is you RPi running a 64bit system ?

          What does file name_of_your_application return ?

          L Offline
          L Offline
          lina
          wrote on 19 Jul 2017, 07:55 last edited by
          #4

          @SGaist

          Hi dear SGaist,

          file myApp returns as follow:

          myApp: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=183a9aff7892cd7c5a7ecbaa95fcce4e152971a4, not stripped

          Is there any way to fix it?

          1 Reply Last reply
          0
          • Y Offline
            Y Offline
            yuvaram
            wrote on 19 Jul 2017, 08:33 last edited by
            #5

            HI @lina

            Previously faced same error if symbolic links of a library are not copied properly from host to target.
            Its suggested that libraries & its symbolic link libs need to compressed from host, uncompress at target.

            Yuvaram Aligeti
            Embedded Qt Developer
            : )

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 19 Jul 2017, 10:16 last edited by
              #6

              @lina you still haven't answered the question about the Linux distribution you are running on your RPi3

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

              L 2 Replies Last reply 22 Jul 2017, 09:15
              0
              • S SGaist
                19 Jul 2017, 10:16

                @lina you still haven't answered the question about the Linux distribution you are running on your RPi3

                L Offline
                L Offline
                lina
                wrote on 22 Jul 2017, 09:15 last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • S SGaist
                  19 Jul 2017, 10:16

                  @lina you still haven't answered the question about the Linux distribution you are running on your RPi3

                  L Offline
                  L Offline
                  lina
                  wrote on 22 Jul 2017, 09:16 last edited by
                  #8

                  @SGaist

                  The distribution is raspbian-Jessie

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 22 Jul 2017, 20:23 last edited by
                    #9

                    So as @yuvaram wrote, you are using a 32bit operating system, it won't be able to run your 64bit application.

                    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

                    8/9

                    22 Jul 2017, 09:16

                    • Login

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