blocked: cmake: command not found
-
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:the
Src
folder would otherwise be called theqt5
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 theclang_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 theSrc
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 getcommand not found
.Nowhere in the doc does it explain why this happens or how to fix it.
-
@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
-
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 typecmake
and still getcommand not found
.where are the instructions?
-
@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 -
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.
-
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.
-
@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