Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Debian Jessie and Variscite imx6 "Application finieshed with exit code 126"
Forum Updated to NodeBB v4.3 + New Features

Debian Jessie and Variscite imx6 "Application finieshed with exit code 126"

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
13 Posts 3 Posters 2.9k 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.
  • A Offline
    A Offline
    Alexandder666
    wrote on last edited by
    #1

    Hello everyone, I do not have much experience in it, work qt 5.7.0 in Debian jessie and I like to run the application in the varix imx6, but I show an error "Application finieshed with exit code 126", could someone tell me, ¿ which is the error ???, thanks regards.

    This is my configuraction:

    QT versions: /opt/Qt5.7.0/5.7/gcc_64/bin/qmake

    Compilers: /opt/poky/1.6.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++

    Debuggers: /opt/poky/1.6.1/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What are you doing with your application when that error happens ?

      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
      • A Offline
        A Offline
        Alexandder666
        wrote on last edited by Alexandder666
        #3

        This error display me, when run the application, I display this message in the tab Application Output, thanks regards.

        the error is:

        sh: /opt/sample/bin/sample: can not execute binary file: Exec format error.
        sh: /opt/sample/bin/sample: Success
        Application finished with code 126.

        this is image : https://drive.google.com/file/d/0B66wEl1-cjbOa20yOUxtUmR0NVk/view?usp=sharing

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Are you trying to execute a cross-compiled application on your desktop machine ?

          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
          • A Offline
            A Offline
            Alexandder666
            wrote on last edited by Alexandder666
            #5

            Is correct, i trying to execute a cross-complied application bettween Debian Jessie(Desktop) and Variscite imx6(Embedded)

            right now i am work and moment of run, this window https://drive.google.com/file/d/0B66wEl1-cjbOODgxb3Y4MUtlZEE/view?usp=sharing

            jsulmJ 1 Reply Last reply
            0
            • A Alexandder666

              Is correct, i trying to execute a cross-complied application bettween Debian Jessie(Desktop) and Variscite imx6(Embedded)

              right now i am work and moment of run, this window https://drive.google.com/file/d/0B66wEl1-cjbOODgxb3Y4MUtlZEE/view?usp=sharing

              jsulmJ Online
              jsulmJ Online
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Alexandder666 You cannot execute an ARM binary on your x86 machine. You either execute it on your target device, or you switch to your desktop Qt Kit, build your app using it and then you can execute it on your machine.

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

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Alexandder666
                wrote on last edited by Alexandder666
                #7

                I work in Debian Jessie x64 machine and target device is a variscite imx6, in the moment to run the application, i show this windows https://drive.google.com/file/d/0B66wEl1-cjbOODgxb3Y4MUtlZEE/view?usp=sharing, regards.

                this is my configuration in Debian Jessie Qt 5.7.0:

                • Kits: https://drive.google.com/file/d/0B66wEl1-cjbOa2JfSnBxS3FwMzA/view?usp=sharing, in this window, display symbol of error, which could be the error??

                • Qt Versions: https://drive.google.com/file/d/0B66wEl1-cjbOczFabUNFYmRrWkk/view?usp=sharing

                • Compilers: https://drive.google.com/file/d/0B66wEl1-cjbOMllQTzFSSDFacVk/view?usp=sharing

                • Debugers: https://drive.google.com/file/d/0B66wEl1-cjbOQkRvOXhvNFBqWmM/view?usp=sharing

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Did you first cross-compile Qt ?

                  Currently it looks like you are trying to use a pre-built x86_64 version of Qt to build your application for ARM.

                  If you want more details about the error, just move the mouse cursor over the red triangle and wait a few seconds.

                  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
                  • A Offline
                    A Offline
                    Alexandder666
                    wrote on last edited by
                    #9

                    Yes is my firts cross-compiled, the error display: The compiler "GCC Yocto"(arm-linux-generic-elf-32bit) cannot produce code for the Qt version "Qt 5.7.0 GCC 64bit" (x86-linux-generic-elf-64bit).

                    I need installer most libraries or how can solve this error?? thanks, regards.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      You need to first cross-compile Qt itself. Changing the compiler like you do won't influence the fact that you have a library for x86_64 and that you are trying to build an application with an ARM compiler.

                      However, IIRC, yocto provides already a recipe to build Qt 5.

                      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
                      • A Offline
                        A Offline
                        Alexandder666
                        wrote on last edited by
                        #11

                        How I can compile qt itself??, you could provide some links, for introduction of Qt cross-compiled, and that operative system you recommend for work cross-compiled?

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          Please do a bit of research, the first answer for a google query of Qt imx6 returns this page.

                          Depending on your product the manufacturer might even provide something.

                          When targeting a Linux device, using a desktop Linux is usually the easiest.

                          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
                          • A Offline
                            A Offline
                            Alexandder666
                            wrote on last edited by
                            #13

                            Ok thank you very much for help me, i will have to study about this, regards.

                            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