installing GammaRay on Qt Creator 6.0.2
-
Since you are building GammaRay, the sources of GammaRay.
-
I did them but get an error about cmake:
C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed\build>cmake -G "MinGW Makefiles"
'cmake' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed\build> -
I did them but get an error about cmake:
C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed\build>cmake -G "MinGW Makefiles"
'cmake' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed\build>@qcoderpro Then download and install CMake and make sure the folder containing cmake.exe is in your PATH
-
@qcoderpro Then download and install CMake and make sure the folder containing cmake.exe is in your PATH
-
@jsulm
But I'm using CMake on Qt Creator for Qt projects. Do you mean that I should download a standalone version of CMake and install it?@qcoderpro If you already have CMake installed: "make sure the folder containing cmake.exe is in your PATH".
You can also use full path to cmake.exe to call it. -
@qcoderpro If you already have CMake installed: "make sure the folder containing cmake.exe is in your PATH".
You can also use full path to cmake.exe to call it. -
@jsulm
I found it here: C:\Qt\Tools\CMake_64\bin\cmake.exe
Then added the path into System variables:
But still get the error!
@qcoderpro You need to add the FOLDER to PATH NOT exe!
After adding to PATH you need to log out and login again.
But you can also use full path instead. -
@qcoderpro You need to add the FOLDER to PATH NOT exe!
After adding to PATH you need to log out and login again.
But you can also use full path instead. -
@qcoderpro said in installing GammaRay on Qt Creator 6.0.2:
MinGW Makefiles
You use "MinGW MakeFiles", but it needs to be "MinGW Makefiles" as you can see from CMake output...
-
@qcoderpro said in installing GammaRay on Qt Creator 6.0.2:
MinGW Makefiles
You use "MinGW MakeFiles", but it needs to be "MinGW Makefiles" as you can see from CMake output...
@jsulm
Should we add a CMakeLists.txt fild into the build folder already!?C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed\build>C:\Qt\Tools\CMake_64\bin\cmake.exe -G "MinGW Makefiles"
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.CMake Error: The source directory "C:/Users/ME/Desktop/KDAB-GammaRay-62bd4ed/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed\build>
-
@jsulm
Should we add a CMakeLists.txt fild into the build folder already!?C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed\build>C:\Qt\Tools\CMake_64\bin\cmake.exe -G "MinGW Makefiles"
CMake Warning:
No source or binary directory provided. Both will be assumed to be the
same as the current working directory, but note that this warning will
become a fatal error in future CMake releases.CMake Error: The source directory "C:/Users/ME/Desktop/KDAB-GammaRay-62bd4ed/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed\build>
@qcoderpro You also need to provide the source folder, try:
cmake -G "MinGW Makefiles" PATH_TO_SOURCEFOLDER
This is also explained here: https://github.com/KDAB/GammaRay/blob/master/INSTALL.md
-
@qcoderpro You also need to provide the source folder, try:
cmake -G "MinGW Makefiles" PATH_TO_SOURCEFOLDER
This is also explained here: https://github.com/KDAB/GammaRay/blob/master/INSTALL.md
-
Does it say: inside the build folder on CMD to execute:
cmake.exe -G "MinGW Makefiles" C:\Qt\6.2.3\mingw_64\bin C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed
?@qcoderpro said in installing GammaRay on Qt Creator 6.0.2:
C:\Qt\6.2.3\mingw_64\bin
Why did you put it here?!
It is as easy as:C:\Qt\Tools\CMake_64\bin\cmake.exe -G "MinGW Makefiles" C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed
-
@qcoderpro said in installing GammaRay on Qt Creator 6.0.2:
C:\Qt\6.2.3\mingw_64\bin
Why did you put it here?!
It is as easy as:C:\Qt\Tools\CMake_64\bin\cmake.exe -G "MinGW Makefiles" C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed
-
@jsulm
I have already done that: CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles"@qcoderpro <from the link I gave you above:
set "PATH=c:\MinGW\mingw64\bin;%PATH%"
Did you do this step?
-
@qcoderpro <from the link I gave you above:
set "PATH=c:\MinGW\mingw64\bin;%PATH%"
Did you do this step?
@jsulm
I meant that in the previous steps that you asked why. I don't understand that section good enough. If it means to set the path of mingw to the %PATH% (of the System variables), that path (C:\Qt\6.2.3\mingw_64\bin) already exists there and shown in the related screenshot above. -
@jsulm
I meant that in the previous steps that you asked why. I don't understand that section good enough. If it means to set the path of mingw to the %PATH% (of the System variables), that path (C:\Qt\6.2.3\mingw_64\bin) already exists there and shown in the related screenshot above.@qcoderpro This was plain wrong: cmake.exe -G "MinGW Makefiles" C:\Qt\6.2.3\mingw_64\bin C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed
It needs to be
cmake.exe -G "MinGW Makefiles" C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed
There is really not much to it: you need to tell CMake where the source code is. That's why you need to add the path to source code folder (C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed).
-
@qcoderpro This was plain wrong: cmake.exe -G "MinGW Makefiles" C:\Qt\6.2.3\mingw_64\bin C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed
It needs to be
cmake.exe -G "MinGW Makefiles" C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed
There is really not much to it: you need to tell CMake where the source code is. That's why you need to add the path to source code folder (C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed).
-
Sorry, but this was done already. Please scroll up two posts. There I stated that and also the cmake error message! :|
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles"@qcoderpro I suggest you start command line from MinGW and do all these buid steps there. To start MinGW command line do: press Windows key, enter "min" and you will see something with Qt and MinGW, open it.
-
@qcoderpro I suggest you start command line from MinGW and do all these buid steps there. To start MinGW command line do: press Windows key, enter "min" and you will see something with Qt and MinGW, open it.
@jsulm
You mean something like:Setting up environment for Qt usage...
C:\Qt\6.2.3\mingw_64> C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed\build cmake -G "NMake Makefiles" C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed
'C:\Users\ME\Desktop\KDAB-GammaRay-62bd4ed\build' is not recognized as an internal or external command,
operable program or batch file.C:\Qt\6.2.3\mingw_64>
I thought the path to the build folder should also be added but it itself causes an error.