Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Unable to find .exe file in my project



  • 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!



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



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



  • @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?



  • @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?



  • @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.



  • @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


  • Lifetime Qt Champion

    @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, ...)?



  • @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)
    
    


  • @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


Log in to reply