Closed ghost closed 8 years ago
Did you install Ninja? I think that means that Ninja wasn't found in your $PATH
.
I have got ninja from here (https://ninja-build.org/), don't know how to install it, as I click on the file, it comes for a second and then disappeared, it means installed? thanks
You can follow the instructions here: https://www.java.com/en/download/help/path.xml to add the folder where ninja is located to your $PATH.
On Tue, Mar 21, 2017 at 05:31 arash111 notifications@github.com wrote:
I have got ninja from here (https://ninja-build.org/), don't know how to install it, as I click on it, comes for a second and then disappeared, it means installed? and how to add to path in win 10 please? thanks
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/facebook/xcbuild/issues/108#issuecomment-288064270, or mute the thread https://github.com/notifications/unsubscribe-auth/AADHbDCLljQRGjLOks2tY0_HY-_T3e3Eks5rn8MqgaJpZM4JmE7Y .
-- -- Stephane Sezer
I have the same problem. I downloaded ninja.exe file form here https://github.com/ninja-build/ninja/releases . I put into folder "C:\projects\ninja", I added that path into PATH variable, and it still tells CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. and it is the same as before
Can you provide the version of cmake you have installed, where you downloaded it from, and the full contents of your $PATH variable?
On Thu, Mar 23, 2017 at 3:02 PM jurajmuran321 notifications@github.com wrote:
I have the same problem. I downloaded ninja.exe file form here https://github.com/ninja-build/ninja/releases . I put into folder "C:\projects\ninja", I added that path into PATH variable, and it still tells CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. and it is the same as before
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/facebook/xcbuild/issues/108#issuecomment-288874458, or mute the thread https://github.com/notifications/unsubscribe-auth/AADHbLayM9F4JyTcQbpgPqg7-VqcAUpzks5rouwQgaJpZM4JmE7Y .
-- -- Stephane Sezer
well, this is interesting. I did absolutely no changes since I sent this post, I only restarted computer, and now it's working. I don't understand it, but thank you, anyway
Ah. Yes. You are supposed to re-login to your account after changing these variables to make sure they are applied to all processes. Restarting had the same effect.
Sorry I didn't think about mentioning this earlier.
Does everything work well now?
On Fri, Mar 24, 2017 at 2:12 AM jurajmuran321 notifications@github.com wrote:
well, this is interesting. I did absolutely no changes since I sent this post, I only restarted computer, and now it's working. I don't understand it, but thank you, anyway
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/facebook/xcbuild/issues/108#issuecomment-288970433, or mute the thread https://github.com/notifications/unsubscribe-auth/AADHbLUpt-91ZJi7O9HthIzyUyc0EwUhks5ro4kUgaJpZM4JmE7Y .
-- -- Stephane Sezer
Never mind, I will remember it for the next time. Everything works now, problem solved, thanks for your help
@sas Hi I already restarted still get the same problem. What to do?
I tried
C:\> ninja --version
in the CMD and it says:
'ninja' is not recognized as an internal or external command, operable program or batch file.
well, this is interesting. I did absolutely no changes since I sent this post, I only restarted computer, and now it's working. I don't understand it, but thank you, anyway
Me too. I installed jenkins then got this error. After restarting computer, everything's ok :)
@chaine09: I suppose you didn't add the directory where ninja.exe
is located to your %PATH%
. Try adding the correct directory to your path and restarting your host.
I firstly added myPath/ninja/bin
to PATH instead of adding myPath/ninja
. After I did the last option ninja worked.
Hello, when i'm trying to build my project in android studio then it shows "CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool." anyone can tell me how to fix that error?
but i'm downloaded and installed cmake in android studio. I have no idea how to fix it?
I'm having same problem on Windows. Does anyone know how to use CMake with ninja on Windows?
PS F:\build> cmake -G Ninja F:\llvm
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "F:/build/CMakeFiles/CMakeOutput.log".
PS F:\build>
I have MacOS Catalina, Cmake, Ninja and QtCreator installed with the following versions and paths:
[@bin]$ sw_vers -productVersion
10.15.6
[@bin]$ which cmake
/usr/local/bin/cmake
[@bin]$ cmake --version
cmake version 3.18.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
[@bin]$ which ninja
/usr/local/bin/ninja
I'm trying to build a project with QT creator using Cmake. However, the following message appears in QT Creator
Running /usr/local/Cellar/cmake/3.18.2/bin/cmake '-GCodeBlocks - Ninja' -C /private/var/folders/jq/yyp9q2fs1z5780k9l1_2ph4r0000gn/T/QtCreator-HXderc/qtc-cmake-TuClFWan/qtcsettings.cmake /Users/mymac/Documents/programming/Cpp/Qt/try6 in /private/var/folders/jq/yyp9q2fs1z5780k9l1_2ph4r0000gn/T/QtCreator-HXderc/qtc-cmake-TuClFWan.
loading initial cache file /private/var/folders/jq/yyp9q2fs1z5780k9l1_2ph4r0000gn/T/QtCreator-HXderc/qtc-cmake-TuClFWan/qtcsettings.cmake
-- Configuring incomplete, errors occurred!
See also "/private/var/folders/jq/yyp9q2fs1z5780k9l1_2ph4r0000gn/T/QtCreator-HXderc/qtc-cmake-TuClFWan/CMakeFiles/CMakeOutput.log".
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake process exited with exit code 1.
Elapsed time: 00:00.
As indicated on several websites (such as this SO question I tried the following command but it didn't work:
[@bin]$ ln -s /usr/bin/ninja /usr/bin/ninja-build
ln: /usr/bin/ninja-build: Operation not permitted
I tried also tried the following:
[@bin]$ sudo /usr/bin/ninja-build
Password:
sudo: /usr/bin/ninja-build: command not found
share:xcbuild chen-pc$ make mkdir -p build cmake -Bbuild -H. -G Ninja -DCMAKE_INSTALL_PREFIX= CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_C_COMPILER_ENV_VAR CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_C_COMPILER CMake Error: Could not find cmake module file: /Users/chen-pc/xcbuild/build/CMakeFiles/3.2.2/CMakeCCompiler.cmake CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_CXX_COMPILER_ENV_VAR CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly. Missing variable is: CMAKE_CXX_COMPILER CMake Error: Could not find cmake module file: /Users/chen-pc/xcbuild/build/CMakeFiles/3.2.2/CMakeCXXCompiler.cmake CMake Error at CMakeLists.txt:10 (project): No CMAKE_C_COMPILER could be found.
Tell CMake where to find the compiler by setting the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:10 (project): No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred!