Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. New to QtCreator Error "no rule to make target 'all'. Stop."
Forum Updated to NodeBB v4.3 + New Features

New to QtCreator Error "no rule to make target 'all'. Stop."

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
26 Posts 6 Posters 20.1k 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.
  • I IsaacPrkr

    Hi I'm IsaacPrkr and I'm a beginner with using Qt and installed it today to do some work with a C++ project and I've ran into an error when trying to run the program and it just says "no rule to make target 'all'. Stop" at first I searched around the forums trying to find a fix but came to no help for my issue so I was wondering if I make my own someone can help. Really would appreciate it. Thank you.

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

    @IsaacPrkr said in New to QtCreator Error "no rule to make target 'all'. Stop.":

    C++ project

    How did you create this project?

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

    I 1 Reply Last reply
    0
    • jsulmJ jsulm

      @IsaacPrkr said in New to QtCreator Error "no rule to make target 'all'. Stop.":

      C++ project

      How did you create this project?

      I Offline
      I Offline
      IsaacPrkr
      wrote on last edited by
      #4

      @jsulm It's from a git repository. I just imported the file and that was it. I think that's where I've gone wrong however but I'm not sure how I fix it. Is there another way of importing the file so that it builds correctly?

      jsulmJ 1 Reply Last reply
      0
      • Axel SpoerlA Offline
        Axel SpoerlA Offline
        Axel Spoerl
        Moderators
        wrote on last edited by
        #5

        "No rule to make target...." usually tells you that the configuring has failed and your compiler doesn't know what to do at all. But that's poking around in the fog. To help we'd need more info.

        • Which Qt version are you using?
        • Is it CMake or QMake?
        • Can you post the CMakeLists.txt or the .pro file respectively?
        • Does the "Compile Output" tab say anything?

        Software Engineer
        The Qt Company, Oslo

        1 Reply Last reply
        0
        • I IsaacPrkr

          @jsulm It's from a git repository. I just imported the file and that was it. I think that's where I've gone wrong however but I'm not sure how I fix it. Is there another way of importing the file so that it builds correctly?

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

          @IsaacPrkr said in New to QtCreator Error "no rule to make target 'all'. Stop.":

          I just imported the file and that was it

          What file?
          Is ther a *.pro or CMakeLists.txt file?

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

          I 1 Reply Last reply
          0
          • jsulmJ jsulm

            @IsaacPrkr said in New to QtCreator Error "no rule to make target 'all'. Stop.":

            I just imported the file and that was it

            What file?
            Is ther a *.pro or CMakeLists.txt file?

            I Offline
            I Offline
            IsaacPrkr
            wrote on last edited by
            #7

            @jsulm I imported a file named gps from a git repo which contains files inside such as data, headers, src, and tests. Inside data there is data of gps locations, inside headers there are the header programs, inside src is the main cpp programs, and tests is boost tests.

            Outside of these subfiles when you open just the gps file which is the main file I downloaded from the git repo it has a bunch of other files created when I loaded it into qt for the first time. And one of them is a .pro file which I can't open and dont see in qt.

            jsulmJ 2 Replies Last reply
            0
            • I IsaacPrkr

              @jsulm I imported a file named gps from a git repo which contains files inside such as data, headers, src, and tests. Inside data there is data of gps locations, inside headers there are the header programs, inside src is the main cpp programs, and tests is boost tests.

              Outside of these subfiles when you open just the gps file which is the main file I downloaded from the git repo it has a bunch of other files created when I loaded it into qt for the first time. And one of them is a .pro file which I can't open and dont see in qt.

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

              @IsaacPrkr Please post a link to the Git repo.
              You need to load the project file in QtCreator. QtCreator supports Qmake (*.pro) and CMake (CMakeLists.txt).

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

              I 1 Reply Last reply
              0
              • I IsaacPrkr

                @jsulm I imported a file named gps from a git repo which contains files inside such as data, headers, src, and tests. Inside data there is data of gps locations, inside headers there are the header programs, inside src is the main cpp programs, and tests is boost tests.

                Outside of these subfiles when you open just the gps file which is the main file I downloaded from the git repo it has a bunch of other files created when I loaded it into qt for the first time. And one of them is a .pro file which I can't open and dont see in qt.

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

                @IsaacPrkr said in New to QtCreator Error "no rule to make target 'all'. Stop.":

                And one of them is a .pro file which I can't open and dont see in qt

                Why can't you open it? What happens?

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

                I 1 Reply Last reply
                0
                • jsulmJ jsulm

                  @IsaacPrkr Please post a link to the Git repo.
                  You need to load the project file in QtCreator. QtCreator supports Qmake (*.pro) and CMake (CMakeLists.txt).

                  I Offline
                  I Offline
                  IsaacPrkr
                  wrote on last edited by
                  #10

                  @jsulm Do you want the https link? If it's easier we can message on a alternative platform like Discord if that's better to resolve things.

                  Thank you for the help I really do appreciate it.

                  jsulmJ 1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @IsaacPrkr said in New to QtCreator Error "no rule to make target 'all'. Stop.":

                    And one of them is a .pro file which I can't open and dont see in qt

                    Why can't you open it? What happens?

                    I Offline
                    I Offline
                    IsaacPrkr
                    wrote on last edited by
                    #11

                    @jsulm I can't open it it just says I dont have the software to open it that's all.

                    1 Reply Last reply
                    0
                    • I IsaacPrkr

                      @jsulm Do you want the https link? If it's easier we can message on a alternative platform like Discord if that's better to resolve things.

                      Thank you for the help I really do appreciate it.

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

                      @IsaacPrkr said in New to QtCreator Error "no rule to make target 'all'. Stop.":

                      Do you want the https link?

                      Yes, the link to the repo.

                      How exactly are you trying to open the pro file?
                      Do this:

                      • Open QtCreator
                      • Go to "File/Open File or Project..."
                      • Navigate to the project and select the pro file
                      • What exactly happens now?

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

                      I 1 Reply Last reply
                      0
                      • jsulmJ jsulm

                        @IsaacPrkr said in New to QtCreator Error "no rule to make target 'all'. Stop.":

                        Do you want the https link?

                        Yes, the link to the repo.

                        How exactly are you trying to open the pro file?
                        Do this:

                        • Open QtCreator
                        • Go to "File/Open File or Project..."
                        • Navigate to the project and select the pro file
                        • What exactly happens now?
                        I Offline
                        I Offline
                        IsaacPrkr
                        wrote on last edited by
                        #13

                        @jsulm it says could not display 'gps.pro' there is no application for "qt qmake profiles".

                        The link is here: https://olympuss.ntu.ac.uk/N0923887/gps.git

                        It's gonna be password protected most likely however.

                        When I open the .pro file in qt it comes up with configure project. And it says no suitable kits found and I can't seem to do anything the configure project is grayed out.

                        jsulmJ 1 Reply Last reply
                        0
                        • I IsaacPrkr

                          @jsulm it says could not display 'gps.pro' there is no application for "qt qmake profiles".

                          The link is here: https://olympuss.ntu.ac.uk/N0923887/gps.git

                          It's gonna be password protected most likely however.

                          When I open the .pro file in qt it comes up with configure project. And it says no suitable kits found and I can't seem to do anything the configure project is grayed out.

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

                          @IsaacPrkr said in New to QtCreator Error "no rule to make target 'all'. Stop.":

                          When I open the .pro file in qt it comes up with configure project. And it says no suitable kits found

                          Did you also install at least one Qt version?
                          QtCreator is an IDE, you also need Qt if you want to build a Qt application.

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

                          I 1 Reply Last reply
                          0
                          • jsulmJ jsulm

                            @IsaacPrkr said in New to QtCreator Error "no rule to make target 'all'. Stop.":

                            When I open the .pro file in qt it comes up with configure project. And it says no suitable kits found

                            Did you also install at least one Qt version?
                            QtCreator is an IDE, you also need Qt if you want to build a Qt application.

                            I Offline
                            I Offline
                            IsaacPrkr
                            wrote on last edited by
                            #15

                            @jsulm
                            When installing all I did was enter
                            sudo apt update
                            sudo apt install libclang-common-8-dev qt5-default qtcreator ssh-askpass

                            In the terminal. Is this wrong?

                            jsulmJ 1 Reply Last reply
                            0
                            • I IsaacPrkr

                              @jsulm
                              When installing all I did was enter
                              sudo apt update
                              sudo apt install libclang-common-8-dev qt5-default qtcreator ssh-askpass

                              In the terminal. Is this wrong?

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

                              @IsaacPrkr Make sure qt5-qmake is also installed.
                              And check whether you have any properly configured Kit in QtCreator.

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

                              I 1 Reply Last reply
                              0
                              • jsulmJ jsulm

                                @IsaacPrkr Make sure qt5-qmake is also installed.
                                And check whether you have any properly configured Kit in QtCreator.

                                I Offline
                                I Offline
                                IsaacPrkr
                                wrote on last edited by
                                #17

                                @jsulm I've installed qt5-qmake. And how do I go check whether I have a properly configured kit?

                                jsulmJ 1 Reply Last reply
                                0
                                • I IsaacPrkr

                                  @jsulm I've installed qt5-qmake. And how do I go check whether I have a properly configured kit?

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

                                  @IsaacPrkr In QtCreator go to "Tools/Options.../Kits" and check whether there is at least one Kit

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

                                  I 1 Reply Last reply
                                  0
                                  • jsulmJ jsulm

                                    @IsaacPrkr In QtCreator go to "Tools/Options.../Kits" and check whether there is at least one Kit

                                    I Offline
                                    I Offline
                                    IsaacPrkr
                                    wrote on last edited by
                                    #19

                                    @jsulm There is only options that say Auto-detected and Manual.

                                    jsulmJ 1 Reply Last reply
                                    0
                                    • I IsaacPrkr

                                      @jsulm There is only options that say Auto-detected and Manual.

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

                                      @IsaacPrkr said in New to QtCreator Error "no rule to make target 'all'. Stop.":

                                      There is only options that say Auto-detected and Manual

                                      But are there any Kits, either in manual or auto detected section?
                                      If there are no Kits then that explains your problem. In this case add a Kit manually - first add your Qt in "Qt Versions" tab (you ) and then a Kit.

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

                                      I 1 Reply Last reply
                                      0
                                      • jsulmJ jsulm

                                        @IsaacPrkr said in New to QtCreator Error "no rule to make target 'all'. Stop.":

                                        There is only options that say Auto-detected and Manual

                                        But are there any Kits, either in manual or auto detected section?
                                        If there are no Kits then that explains your problem. In this case add a Kit manually - first add your Qt in "Qt Versions" tab (you ) and then a Kit.

                                        I Offline
                                        I Offline
                                        IsaacPrkr
                                        wrote on last edited by
                                        #21

                                        @jsulm When you say "add your qt in qt versions tab (you)" i went in the tab and clicked add and it just came up with my files. Do I add the project file into that?

                                        jsulmJ 1 Reply Last reply
                                        0
                                        • I IsaacPrkr

                                          @jsulm When you say "add your qt in qt versions tab (you)" i went in the tab and clicked add and it just came up with my files. Do I add the project file into that?

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

                                          @IsaacPrkr said in New to QtCreator Error "no rule to make target 'all'. Stop.":

                                          Do I add the project file into that?

                                          No, this has nothing to do with any projects!
                                          This is used to manage different Qt versions in QtCreator, as QtCreator can support many Qt versions.

                                          "and it just came up with my files" - I don't know what this means. To add a Qt version you need to navigate to the folder containing qmake of that Qt version (in your case /usr/bin) and select qmake.

                                          See:

                                          • https://doc.qt.io/qtcreator/creator-project-qmake.html
                                          • https://doc.qt.io/qtcreator/creator-targets.html

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

                                          I 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