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. cannot run: no command
Forum Updated to NodeBB v4.3 + New Features

cannot run: no command

Scheduled Pinned Locked Moved Unsolved General and Desktop
50 Posts 5 Posters 16.5k 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 Asha

    Hi,
    I am waiting for your replay,

    aha_1980A Offline
    aha_1980A Offline
    aha_1980
    Lifetime Qt Champion
    wrote on last edited by
    #9

    @asha Please show the Qt versions and compilers tabs also.

    And be a bit more patient: People here help in their free time and live all around the world, not necessarily in the same time zone as you.

    • Did you follow a guide to set the toolchain up?
    • Which Creator version is that?

    Regards

    Qt has to stay free or it will die.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Asha
      wrote on last edited by
      #10

      Hi,

      Good Morning,

      Thankyou for the replay,

      here I am going to attach the Qtversion and compiler also please go through that
      0_1567658090275_qtversion (1).png 0_1567658108624_compiler (1).png .

      qt creator version is 5.9,sorry but the first question I am not getting..

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Asha
        wrote on last edited by
        #11

        One more thing I want to share,without connecting the linux device on devices(when selecting Desktop its fine),its running the application but when I am trying with selecting the general linux device getting the error :cannot run :No command given"

        1 Reply Last reply
        0
        • A Asha

          Hi,
          I am connecting the linux device(beagleboneboard),the kit configuration attached here0_1567571374965_kit.png .

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #12

          @asha said in cannot run: no command:

          I am connecting the linux device(beagleboneboard)

          Have you followed any installation/setup guide for cross-compiling Qt for the BBB device, just like this one for example?

          I don't own such device, but from previous experience with cross-compiling Qt for other devices (i.e. Raspberry Pi) and using those devices with Qt Creator, such guide seems quite acceptable.

          It also mentions something that could be really applicable to the issue you're describing:

          When you try to deploy a program on your BBB from QtCreator you may get an error about an unknown command. This is because QtCreator does not know where to copy the compiled file onto the BBB. The following line should be added to your .pro file:
          target.path = /home/Matilda/
          You may change the path to anything you want and the executable will be copied to and run from this location.
          Now you are ready to run your first Qt BBB project.

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          3
          • A Offline
            A Offline
            Asha
            wrote on last edited by
            #13

            Sir,
            Thankyou for the replay,

            I installed the qt5 through commands.

            sudo apt-get install build-essential
            sudo apt-get install qtcreator
            sudo apt-get install qt5-default
            sudo apt-get install qt5-doc
            sudo apt-get install qt5-doc-html
            sudo apt-get install qtbase5-doc-html
            sudo apt-get install qtbase5-examples

            but after this all,

            I uninstalled the qt5,now again i installed qt5,while downloaded and executing this file :"qt-opensource-linux-x64-5.13.0.run",

            now I am getting the error0_1567761086821_permissiodenied.png

            and that is showing 2 qt versions0_1567761355986_qtv.png .

            how to remove one qt 5.9.5 in PATH(qt5)? because after uninstalling I am getting 2versions and

            please give the suggestions for :"permission denied error"

            Thankyou.

            aha_1980A 1 Reply Last reply
            0
            • A Asha

              Sir,
              Thankyou for the replay,

              I installed the qt5 through commands.

              sudo apt-get install build-essential
              sudo apt-get install qtcreator
              sudo apt-get install qt5-default
              sudo apt-get install qt5-doc
              sudo apt-get install qt5-doc-html
              sudo apt-get install qtbase5-doc-html
              sudo apt-get install qtbase5-examples

              but after this all,

              I uninstalled the qt5,now again i installed qt5,while downloaded and executing this file :"qt-opensource-linux-x64-5.13.0.run",

              now I am getting the error0_1567761086821_permissiodenied.png

              and that is showing 2 qt versions0_1567761355986_qtv.png .

              how to remove one qt 5.9.5 in PATH(qt5)? because after uninstalling I am getting 2versions and

              please give the suggestions for :"permission denied error"

              Thankyou.

              aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on last edited by aha_1980
              #14

              @asha

              I think you need to fundamentally start at a lower point.

              So you want to compile for the BeagleBone board, which has an ARM processor. I assume you are working on a PC with Intel or AMD processor.

              So what you need to do, is to cross-compile your code to ARM. Therefore you need:

              • An ARM cross-compiler with system libraries ("toolchain")
              • A Qt version cross-compiled for ARM
              • A cross-debugger, if you want to debug on the target

              From your screenshots, I don't see a cross-compiler nor a cross-Qt version.

              Without them, it's impossible to build programs for the BeagleBone.

              Regards

              Edit: The Android versions (despite beeing ARM too), will not help you.

              Qt has to stay free or it will die.

              1 Reply Last reply
              3
              • A Offline
                A Offline
                Asha
                wrote on last edited by
                #15

                Hi,

                I installed the cross compiler ,through the following command:

                sudo apt-get install gcc-arm-linux-gnueabihf

                And installed cross debugger via

                sudo apt-get install gdb-multiarch,

                Here is the attacment of cross-debugger,cross-compiler, and kit configuration0_1567765382162_crosscompiler.png

                0_1567765403674_crossdebugger.png

                0_1567765418525_cc_BBB.png

                after this configurations and running a simple application with cross compilers and debuggers only getting error0_1567765476104_err.png ,now what is the mistake,please let me know...and installing cross compiler and debugger process is currect or wrong..and in lit configuration its showing red mark..

                Pablo J. RoginaP 1 Reply Last reply
                0
                • A Asha

                  Hi,

                  I installed the cross compiler ,through the following command:

                  sudo apt-get install gcc-arm-linux-gnueabihf

                  And installed cross debugger via

                  sudo apt-get install gdb-multiarch,

                  Here is the attacment of cross-debugger,cross-compiler, and kit configuration0_1567765382162_crosscompiler.png

                  0_1567765403674_crossdebugger.png

                  0_1567765418525_cc_BBB.png

                  after this configurations and running a simple application with cross compilers and debuggers only getting error0_1567765476104_err.png ,now what is the mistake,please let me know...and installing cross compiler and debugger process is currect or wrong..and in lit configuration its showing red mark..

                  Pablo J. RoginaP Offline
                  Pablo J. RoginaP Offline
                  Pablo J. Rogina
                  wrote on last edited by
                  #16

                  @asha your kit has error, see the RED icon in 3rd screenshot previous post. You need to check at bottom of such page to see what the message is regarding the issue...

                  Upvote the answer(s) that helped you solve the issue
                  Use "Topic Tools" button to mark your post as Solved
                  Add screenshots via postimage.org
                  Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                  1 Reply Last reply
                  1
                  • A Offline
                    A Offline
                    Asha
                    wrote on last edited by
                    #17

                    Hi,

                    I am getting the issue "Failed to create remote directories : mkdir: cannot create directory'/opt/aa': Permission denied...any suggestion for this..

                    jsulmJ 1 Reply Last reply
                    0
                    • A Asha

                      Hi,

                      I am getting the issue "Failed to create remote directories : mkdir: cannot create directory'/opt/aa': Permission denied...any suggestion for this..

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #18

                      @asha said in cannot run: no command:

                      /opt/aa

                      /opt is a directory where only root has write access. You need to give the user write access to the directory you want to use or (better) use users home directory to deploy.

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

                      1 Reply Last reply
                      1
                      • A Offline
                        A Offline
                        Asha
                        wrote on last edited by
                        #19

                        Sir,

                        I am very new to qt,please can you elaborate how to give user write access to the /opt directory..

                        aha_1980A 1 Reply Last reply
                        0
                        • A Asha

                          Sir,

                          I am very new to qt,please can you elaborate how to give user write access to the /opt directory..

                          aha_1980A Offline
                          aha_1980A Offline
                          aha_1980
                          Lifetime Qt Champion
                          wrote on last edited by
                          #20

                          @asha said in cannot run: no command:

                          I am very new to qt,please can you elaborate how to give user write access to the /opt directory..

                          That has nothing to do with Qt. /opt is a system directory, only the administrator (root) has write access there. If you need to install something there use the sudo command - but be careful, you can destroy you whole system if you do something wrong.

                          Regards

                          Qt has to stay free or it will die.

                          1 Reply Last reply
                          2
                          • A Offline
                            A Offline
                            Asha
                            wrote on last edited by
                            #21

                            Hi,

                            opt directory has the permissions

                            drwxr_xr_x,

                            I changed the permissions through the command

                            "chmod go+w opt"

                            after this the permission of opt is
                            drwxrwxrwx

                            So,now again I build the application and getting the same problem.

                            Any suggestions.

                            jsulmJ 1 Reply Last reply
                            0
                            • A Asha

                              Hi,

                              opt directory has the permissions

                              drwxr_xr_x,

                              I changed the permissions through the command

                              "chmod go+w opt"

                              after this the permission of opt is
                              drwxrwxrwx

                              So,now again I build the application and getting the same problem.

                              Any suggestions.

                              jsulmJ Offline
                              jsulmJ Offline
                              jsulm
                              Lifetime Qt Champion
                              wrote on last edited by
                              #22

                              @asha You changed the permissions on your target device?
                              Also, this is a bad solution.
                              Better give the user write access.

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

                              1 Reply Last reply
                              0
                              • A Offline
                                A Offline
                                Asha
                                wrote on last edited by
                                #23

                                sir,

                                how to change the permission on target device ,can you elaborate please,
                                How to give the user write access.

                                1 Reply Last reply
                                0
                                • A Offline
                                  A Offline
                                  Asha
                                  wrote on last edited by
                                  #24

                                  Hi,

                                  now i changed the user write acces,that is

                                  drwxrwxrwx beagle1

                                  after this also I am getting the same problem.

                                  1 Reply Last reply
                                  0
                                  • A Offline
                                    A Offline
                                    Asha
                                    wrote on last edited by
                                    #25

                                    Hi,

                                    I have two qt versions on my kit is there any problem?

                                    1 Reply Last reply
                                    0
                                    • A Offline
                                      A Offline
                                      Asha
                                      wrote on last edited by
                                      #26

                                      Hi,

                                      Please tell me,how to install qt creator on ubuntu 18.04,which version qt is required,which version cross-compiler is required,how to install that one,how to install debugger also,and how to configure the kit(actually I Know this steps,but I want to confirm that, what I did either it is correct or wrong)...

                                      Thankyou

                                      1 Reply Last reply
                                      0
                                      • A Offline
                                        A Offline
                                        Asha
                                        wrote on last edited by
                                        #27

                                        Good Morning guys,

                                        Any suggestions please..

                                        jsulmJ 1 Reply Last reply
                                        0
                                        • A Asha

                                          Good Morning guys,

                                          Any suggestions please..

                                          jsulmJ Offline
                                          jsulmJ Offline
                                          jsulm
                                          Lifetime Qt Champion
                                          wrote on last edited by
                                          #28

                                          @asha "how to install qt creator on ubuntu 18.04" - either install one delivered with Ubuntu using apt-get, or download QtCreator from official website.
                                          "which version qt is required" - you should know that. Which version do you want to use, or which version is supported by your SDK?
                                          "which version cross-compiler is required" - the one provided by the SDK for your device.
                                          "how to install that one" - should be part of the SDK.
                                          "how to install debugger also" - should be part of the SDK.

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

                                          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