Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Unable to find .exe file in my project
Forum Updated to NodeBB v4.3 + New Features

Unable to find .exe file in my project

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 5 Posters 655 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.
  • WaseeW Offline
    WaseeW Offline
    Wasee
    wrote on last edited by
    #1

    Dear all;
    I am using Qt5 on Ubuntu 18.04 operating system. I design widget application in qt5 and build successfully. But in my build directory I did not see .exe of my designed application.Please guide me how I can find my .exe file.
    Thanks in advance!

    JonBJ 1 Reply Last reply
    0
    • WaseeW Wasee

      Dear all;
      I am using Qt5 on Ubuntu 18.04 operating system. I design widget application in qt5 and build successfully. But in my build directory I did not see .exe of my designed application.Please guide me how I can find my .exe file.
      Thanks in advance!

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Wasee
      Linux does not use any .exe extension. Executable is in the build output directory (along with all the .o files too).

      1 Reply Last reply
      1
      • WaseeW Offline
        WaseeW Offline
        Wasee
        wrote on last edited by
        #3

        @JonB
        Thanks for your great reply! But the file I found not running in startup why?

        KroMignonK JonBJ 2 Replies Last reply
        0
        • WaseeW Wasee

          @JonB
          Thanks for your great reply! But the file I found not running in startup why?

          KroMignonK Offline
          KroMignonK Offline
          KroMignon
          wrote on last edited by KroMignon
          #4

          @Wasee said in Unable to find .exe file in my project:

          But the file I found not running in startup why?

          Because dependencies/shared libraries where not found, perhaps?

          It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

          1 Reply Last reply
          0
          • WaseeW Wasee

            @JonB
            Thanks for your great reply! But the file I found not running in startup why?

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #5

            @Wasee said in Unable to find .exe file in my project:

            But the file I found not running in startup why?

            What do you do to try to run it, what does/does not happen?

            1 Reply Last reply
            0
            • WaseeW Offline
              WaseeW Offline
              Wasee
              wrote on last edited by
              #6

              @JonB
              I found these files in build directory![0_1637660143395_output.png](Uploading 100%) but when I run it in start up its produces errors of binaries etc.

              1 Reply Last reply
              0
              • WaseeW Offline
                WaseeW Offline
                Wasee
                wrote on last edited by
                #7

                @KroMignon Hi;
                Thanks for your valuable reply! In my ubuntu 18.04 startup session my executable working fine where I build the application. But when I put that executable file into another linux system startup session then its not working correctly and not opening the file: Error "cannot execute binary file: Exec format error.

                Thanks in advance

                jsulmJ KroMignonK A 3 Replies Last reply
                0
                • WaseeW Wasee

                  @KroMignon Hi;
                  Thanks for your valuable reply! In my ubuntu 18.04 startup session my executable working fine where I build the application. But when I put that executable file into another linux system startup session then its not working correctly and not opening the file: Error "cannot execute binary file: Exec format error.

                  Thanks in advance

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

                  @Wasee You have to deploy your app first. See https://doc.qt.io/qt-5/linux-deployment.html "Creating the Application Package".
                  "Error "cannot execute binary file: Exec format error" - this suggests that the other machine has a different architecture. Please provide more information: what CPU architecture is first machine and which is second (c86, x86_64, ARM, ...)?

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

                  1 Reply Last reply
                  1
                  • WaseeW Wasee

                    @KroMignon Hi;
                    Thanks for your valuable reply! In my ubuntu 18.04 startup session my executable working fine where I build the application. But when I put that executable file into another linux system startup session then its not working correctly and not opening the file: Error "cannot execute binary file: Exec format error.

                    Thanks in advance

                    KroMignonK Offline
                    KroMignonK Offline
                    KroMignon
                    wrote on last edited by KroMignon
                    #9

                    @Wasee said in Unable to find .exe file in my project:

                    But when I put that executable file into another linux system startup session then its not working correctly and not opening the file: Error "cannot execute binary file: Exec format error.

                    Okay, so your binary is working on the build machine but not on another one.
                    Linux != Linux, are you sure:

                    • CPU type are same on booth?
                    • OS version (32 bit / 64 bit) is same?
                    • all required packages are installed?

                    You could try to check if all dependencies are met for the executable with ldd.

                    For example, on my test machine, I got:

                    ldd myProgramm
                            linux-vdso.so.1 (0x00007fffd51f8000)
                            libQt5Sql.so.5 => /opt/qt5/lib/libQt5Sql.so.5 (0x00007f1bb9196000)
                            libQt5Network.so.5 => /opt/qt5/lib/libQt5Network.so.5 (0x00007f1bb8e4c000)
                            libQt5Core.so.5 => /opt/qt5/lib/libQt5Core.so.5 (0x00007f1bb8734000)
                            libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1bb8517000)
                            libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f1bb8195000)
                            libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1bb7e91000)
                            libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f1bb7c7a000)
                            libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1bb78db000)
                            libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f1bb76c1000)
                            libssl.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f1bb7460000)
                            libcrypto.so.1.0.0 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f1bb7063000)
                            libicui18n.so.48 => /usr/lib/x86_64-linux-gnu/libicui18n.so.48 (0x00007f1bb6c98000)
                            libicuuc.so.48 => /usr/lib/x86_64-linux-gnu/libicuuc.so.48 (0x00007f1bb6929000)
                            libicudata.so.48 => /usr/lib/x86_64-linux-gnu/libicudata.so.48 (0x00007f1bb55b9000)
                            libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1bb53b5000)
                            librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f1bb51ad000)
                            /lib64/ld-linux-x86-64.so.2 (0x00007f1bb93d6000)
                    
                    

                    It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                    1 Reply Last reply
                    0
                    • WaseeW Wasee

                      @KroMignon Hi;
                      Thanks for your valuable reply! In my ubuntu 18.04 startup session my executable working fine where I build the application. But when I put that executable file into another linux system startup session then its not working correctly and not opening the file: Error "cannot execute binary file: Exec format error.

                      Thanks in advance

                      A Offline
                      A Offline
                      anil_arise
                      wrote on last edited by
                      #10

                      @Wasee try to build your program with tool-chain of your another linux system. or Cross compile your program according to another linux system architecture

                      1 Reply Last reply
                      1

                      • Login

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