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. How to resolve this error when run project ?
Qt 6.11 is out! See what's new in the release blog

How to resolve this error when run project ?

Scheduled Pinned Locked Moved Solved General and Desktop
17 Posts 4 Posters 1.4k Views 2 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.
  • mrjjM mrjj

    Hi

    Is that for a new clean project ?
    Or did you add "so" files or anything else to it ?

    seems to live in your home folder so unless you used su / sudo for some operations, you
    should own all files.

    Can you start the exe from a shell ?

    Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by Qt embedded developer
    #5

    @mrjj
    Ans 1]
    yes i t's for new project that i have copied .
    Ans 2] i don't know about it i have just copy the project and try to build that project.
    ans 3] its binary file i can not execute it

    Note that : NEWAPP is target name in my .pro file

    mrjjM JonBJ 2 Replies Last reply
    0
    • Q Qt embedded developer

      @mrjj
      Ans 1]
      yes i t's for new project that i have copied .
      Ans 2] i don't know about it i have just copy the project and try to build that project.
      ans 3] its binary file i can not execute it

      Note that : NEWAPP is target name in my .pro file

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #6

      @Qt-embedded-developer

      Well by new , i mean clean. default project generated with Creator.

      Where did you copy it from ? Is it on the net ?

      Im asking as this error often is

      1: path or permission . Please delete the exe and make so its for sure generated again fully.
      2: the .pro added LIPS += something that then can't be found at run time
      3: the working dir path in project->RUN
      alt text

      1 Reply Last reply
      1
      • Q Qt embedded developer

        @mrjj
        Ans 1]
        yes i t's for new project that i have copied .
        Ans 2] i don't know about it i have just copy the project and try to build that project.
        ans 3] its binary file i can not execute it

        Note that : NEWAPP is target name in my .pro file

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

        @Qt-embedded-developer said in How to resolve this error when run project ?:

        ans 3] its binary file i can not execute it

        So show me the output of an ls -l on it, to start with.

        yes i t's for new project that i have copied .

        Copied what from where how? For all I know, maybe it's an executable for a different architecture, or almost anything else....

        1 Reply Last reply
        1
        • Q Offline
          Q Offline
          Qt embedded developer
          wrote on last edited by Qt embedded developer
          #8

          @mrjj @JonB
          ans 1]
          i have joined the new company where this project already made . So i have copied this already existing project and run that on qtcreator in linux of vmware of windows .

          ans 2 @JonB ]
          Image_20211002_1613286062428372745326943 (1).jpg

          mrjjM JonBJ 2 Replies Last reply
          0
          • Q Qt embedded developer

            @mrjj @JonB
            ans 1]
            i have joined the new company where this project already made . So i have copied this already existing project and run that on qtcreator in linux of vmware of windows .

            ans 2 @JonB ]
            Image_20211002_1613286062428372745326943 (1).jpg

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #9

            @Qt-embedded-developer

            Hi
            It seems to have execute on
            what happens if you do

            ./NEWAPP

            to try start it ?

            Q 1 Reply Last reply
            1
            • mrjjM mrjj

              @Qt-embedded-developer

              Hi
              It seems to have execute on
              what happens if you do

              ./NEWAPP

              to try start it ?

              Q Offline
              Q Offline
              Qt embedded developer
              wrote on last edited by Qt embedded developer
              #10

              @mrj output of ./NEWAPP: j can not execute binary file

              1: path or permission . Please delete the exe and make so its for sure generated again fully.
              Ans: i am using linux so its generate NEWAPP as binary and NEWAPP is target name .

              mrjjM 1 Reply Last reply
              0
              • Q Qt embedded developer

                @mrj output of ./NEWAPP: j can not execute binary file

                1: path or permission . Please delete the exe and make so its for sure generated again fully.
                Ans: i am using linux so its generate NEWAPP as binary and NEWAPP is target name .

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #11

                @Qt-embedded-developer

                Hi

                try
                objdump NEWAPP
                and see what it says

                I suspect you have an exe from other platform/bitness 32/64
                like 64 bit app on 32 bit os
                or reversed.

                1 Reply Last reply
                1
                • Q Qt embedded developer

                  @mrjj @JonB
                  ans 1]
                  i have joined the new company where this project already made . So i have copied this already existing project and run that on qtcreator in linux of vmware of windows .

                  ans 2 @JonB ]
                  Image_20211002_1613286062428372745326943 (1).jpg

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

                  @Qt-embedded-developer
                  If NEWAPP does not run you could try looking at:

                  • file NEWAPP
                  • ldd NEWAPP

                  And you might have trouble trying to run a UI application as root....

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

                    Hi,

                    Why are you developing your application as root ?

                    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
                    2
                    • JonBJ JonB

                      @Qt-embedded-developer
                      If NEWAPP does not run you could try looking at:

                      • file NEWAPP
                      • ldd NEWAPP

                      And you might have trouble trying to run a UI application as root....

                      Q Offline
                      Q Offline
                      Qt embedded developer
                      wrote on last edited by
                      #14

                      @JonB

                      root@ubuntu:/home/ankitasingh/mangal/07082019/NMMT# file NEWAPP
                      NEWAPP: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, BuildID[sha1]=0xb21dab967746dec3e210c303e287a5e04954a1d7, not stripped
                      root@ubuntu:/home/ankitasingh/mangal/07082019/NMMT# ldd NEWAPP
                              not a dynamic executable
                      root@ubuntu:/home/ankitasingh/mangal/07082019/NMMT#

                      JonBJ 1 Reply Last reply
                      0
                      • Q Qt embedded developer

                        @JonB

                        root@ubuntu:/home/ankitasingh/mangal/07082019/NMMT# file NEWAPP
                        NEWAPP: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, BuildID[sha1]=0xb21dab967746dec3e210c303e287a5e04954a1d7, not stripped
                        root@ubuntu:/home/ankitasingh/mangal/07082019/NMMT# ldd NEWAPP
                                not a dynamic executable
                        root@ubuntu:/home/ankitasingh/mangal/07082019/NMMT#

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

                        @Qt-embedded-developer said in How to resolve this error when run project ?:

                        not a dynamic executable

                        That looks like your reason then!

                        NEWAPP: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16,

                        And are you e.g. 32-bit LSB and ARM ? If you are not ARM on this machine....

                        Q 1 Reply Last reply
                        2
                        • JonBJ JonB

                          @Qt-embedded-developer said in How to resolve this error when run project ?:

                          not a dynamic executable

                          That looks like your reason then!

                          NEWAPP: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16,

                          And are you e.g. 32-bit LSB and ARM ? If you are not ARM on this machine....

                          Q Offline
                          Q Offline
                          Qt embedded developer
                          wrote on last edited by Qt embedded developer
                          #16

                          @JonB Means i can not able to test changes i will make in project .

                          THANKS for help and answer @mrjj @JonB @SGaist

                          mrjjM 1 Reply Last reply
                          0
                          • Q Qt embedded developer

                            @JonB Means i can not able to test changes i will make in project .

                            THANKS for help and answer @mrjj @JonB @SGaist

                            mrjjM Offline
                            mrjjM Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on last edited by
                            #17

                            @Qt-embedded-developer

                            Hi

                            Ah so it was just wrong exe type.

                            You produce an ARM "exe" so most likely you are
                            supposed to copy it to some test board for running it.

                            Also if the board is connected and all is set up , Creator can transfer the exe to the board and run it
                            with debugger and all.

                            You should ask the other developers about it. What they do etc.

                            1 Reply Last reply
                            2

                            • Login

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