Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt Contribution
  4. blocked: cmake: command not found

blocked: cmake: command not found

Scheduled Pinned Locked Moved Solved Qt Contribution
7 Posts 2 Posters 4.5k 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.
  • D Offline
    D Offline
    davecotter
    wrote on last edited by davecotter
    #1

    i'm attempting to build Qt libraries locally. i've followed all instructions up to the point of calling configure. Here is my dir layout:

    Screen Shot 2021-06-26 at 1.51.29 PM.png

    the Src folder would otherwise be called the qt5 directory, according to the directions, this is where my git / gerrit repo lives.

    The plan is to build both debug and release versions of the libraries, so i can make edits to Qt source while developing my app, and then also make releases based on my changes to Qt.

    so to run configure for creating debug libs, i cd into the clang_64 dir, and issue this command:

    ../Src/configure -prefix ./obj/debug -developer-build -opensource -nomake examples -nomake tests -confirm-license
    

    I'm assuming the -prefix option doesn't need a full path? that it will start in the Src directory?

    so but then, i get this error:

    /Volumes/Developer/depot/Qt5_Source/Src/qtbase/configure: line 285: cmake: command not found
    

    indeed if i just type cmake on the command line, i also get command not found.

    Nowhere in the doc does it explain why this happens or how to fix it.

    1 Reply Last reply
    1
    • D Offline
      D Offline
      davecotter
      wrote on last edited by
      #7

      @davecotter said in blocked: cmake: command not found:

      cmake: command not found

      here's what i ended up doing:

      • Launch "MaintenanceTool", and choose "Add or remove components" (next)
      • under "Qt -> Developer and Design Tools", check "CMake" (next, and complete that)
      • in Terminal, ensure you add the folder containing cmake to your $PATH, eg: export PATH=$PATH:/path_to/Qt/Tools/CMake/CMake.app/Contents/bin
      1 Reply Last reply
      2
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #2

        You need to install CMake

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        1
        • D Offline
          D Offline
          davecotter
          wrote on last edited by davecotter
          #3

          and why do the instructions not say to do that?

          and okay, so i install this app in my applications folder, and ran it just for good measure.
          then back on the command line i type cmake and still get command not found.

          where are the instructions?

          VRoninV 1 Reply Last reply
          0
          • D davecotter

            and why do the instructions not say to do that?

            and okay, so i install this app in my applications folder, and ran it just for good measure.
            then back on the command line i type cmake and still get command not found.

            where are the instructions?

            VRoninV Offline
            VRoninV Offline
            VRonin
            wrote on last edited by
            #4

            @davecotter It mentions it in the windows instructions https://doc.qt.io/qt-6/windows-building.html
            Googling your error immediately gives you the solution so I don't think it's a big hole in the docs

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            1 Reply Last reply
            0
            • D Offline
              D Offline
              davecotter
              wrote on last edited by
              #5

              i'm building on mac. and i did google the sh*t out of this, and found nothing helpful. perhaps you have better google-fu, which i'd be grateful if you'd share.

              VRoninV 1 Reply Last reply
              0
              • D davecotter

                i'm building on mac. and i did google the sh*t out of this, and found nothing helpful. perhaps you have better google-fu, which i'd be grateful if you'd share.

                VRoninV Offline
                VRoninV Offline
                VRonin
                wrote on last edited by
                #6

                @davecotter

                Capture.PNG

                You don't even need to click the link, the solution for mac is literally the first preview line:

                Use Brew to install cmake brew install cmake.

                "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                ~Napoleon Bonaparte

                On a crusade to banish setIndexWidget() from the holy land of Qt

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  davecotter
                  wrote on last edited by
                  #7

                  @davecotter said in blocked: cmake: command not found:

                  cmake: command not found

                  here's what i ended up doing:

                  • Launch "MaintenanceTool", and choose "Add or remove components" (next)
                  • under "Qt -> Developer and Design Tools", check "CMake" (next, and complete that)
                  • in Terminal, ensure you add the folder containing cmake to your $PATH, eg: export PATH=$PATH:/path_to/Qt/Tools/CMake/CMake.app/Contents/bin
                  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