test cmake run finished with errors что делать
Test cmake run finished with errors
Здравствуйте. две недели назад столкнулся с проблемой и никак не могу ее решить. Очень прошу помочь. Установил CLion и по видео установил MinGW. Однако в настройках Выводится «Test cmake run finished with errors more. «. Ниже приведен текст ошибки. Уверен на 75% что проблема заключается в русских символах в пути, но никак не удается решить это.
система Windows 10(64-битная)
It fails with the following output:
Change Dir: C:/Users/�ван/AppData/Local/Temp/cmake_check_environment1/_build/CMakeFiles/CMakeTmp
Run Build Command:»C:/MinGW/bin/mingw32-make.exe» «cmTC_00531/fast»
mingw32-make.exe[1]: Entering directory
‘C:/Users/╚трэ/AppData/Local/Temp/cmake_check_environment1/_build/CMakeFiles/CMakeTmp’
Building C object CMakeFiles/cmTC_00531.dir/testCCompiler.c.obj
gcc.exe: error:
C:\Users\в•ЁРЁв•Ёв–“в•Ёв–‘в•Ёв•њ\AppData\Local\Temp\cmake_ch eck_environment1\_build\CMakeFiles\CMakeTmp\testCCompiler.c:
No such file or directory
gcc.exe: fatal error: no input files
CMakeFiles\cmTC_00531.dir\build.make:64: recipe for target
‘CMakeFiles/cmTC_00531.dir/testCCompiler.c.obj’ failed
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_00531.dir/testCCompiler.c.obj]
Error 1
mingw32-make.exe[1]: Leaving directory
‘C:/Users/╚трэ/AppData/Local/Temp/cmake_check_environment1/_build/CMakeFiles/CMakeTmp’
Makefile:125: recipe for target ‘cmTC_00531/fast’ failed
CLion + MinGW Test CMake run finished with errors
I’m new on this IDE, and programming on Windows, I’ve installed MinGW and added to enviroment path all is ok, I can compile and execute code from «cmd», but when I run CLion I have this error:
It fails with the following output:
Change Dir: C:/Users/noName/AppData/Local/Temp/cmake_check_environment/_build/CMakeFiles/CMakeTmp
Run Build Command:»C:/MinGW/bin/mingw32-make.exe» «cmTC_2e43b/fast»
mingw32-make.exe1: Entering directory
‘C:/Users/noName/AppData/Local/Temp/cmake_check_environment/_build/CMakeFiles/CMakeTmp’
CMakeFiles\cmTC_2e43b.dir\build.make:64: recipe for target
‘CMakeFiles/cmTC_2e43b.dir/testCCompiler.c.obj’ failed
make (e=2): El sistema no puede encontrar el archivo especificado.
mingw32-make.exe1: *** [CMakeFiles/cmTC_2e43b.dir/testCCompiler.c.obj] Error 2
mingw32-make.exe1: Leaving directory
‘C:/Users/noName/AppData/Local/Temp/cmake_check_environment/_build/CMakeFiles/CMakeTmp’
Makefile:125: recipe for target ‘cmTC_2e43b/fast’ failed
mingw32-make.exe: *** [cmTC_2e43b/fast] Error 2
CMake will not be able to correctly generate this project. Call Stack (most recent call first):
CMakeLists.txt:1 (project)
— Configuring incomplete, errors occurred!
See also «C:/Users/noName/AppData/Local/Temp/cmake_check_environment/_build/CMakeFiles/CMakeOutput.log».
See also «C:/Users/noName/AppData/Local/Temp/cmake_check_environment/_build/CMakeFiles/CMakeError.log».
This is the photo. I think this is and error with CMake(?)
CLion Installation: Cmake compilers not found, GDB not found
I have installed CMake under the path C:\Users\Gaga\Downloads\cmake-3.4.1 but I don’t see a cmake.exe, the closest thing is cmake.cxx.
Without these I’m not able to compile anything, please help
3 Answers 3
In the «Use specified» field I put C:\cygwin64\bin\cmake.exe your path may be different. Just ensure you have CMake, Make, gdb and gcc installed already in Cygwin (using the Cygwin setup.exe not via the CMake website) but I believe Clion checks if you have them installed after inputting the path.
The workaround would be to use MinGW. If you download it from the website it should come with cmake, and take care of the errors.
When extract it and go to the installer you should check something like gcc and then from the top left corner something like ‘install packages’
Be sure not to accidentally download the source, which I did, which would lead you toward this error: CLion: CMake Errors Source directory does not exist
Edit: So over a year later, I’ve learned a little more about Cygwin and mingw beyond what the internet says. CLion needs a «Unix-like» environment. If you use CLion on MacOS or a Linux it’s already Unix based. Anything that is «POSIX» compliant will work. CygWin is a terminal emulator for windows where Unix commands like mkdir work. MinGW is something similar but not posix. Comes with GCC tho. I’m still a noob.
CLion — ошибка CMake при создании нового проекта
Я только что установил CLion на свой компьютер с MinGW и решил создать простой проект Hello World, чтобы протестировать его, но когда я его создаю, консоль выдает ошибку:
Из того, что я понял, не удалось создать некоторые файлы в каталоге проекта. Кто-нибудь знает почему?
РЕДАКТИРОВАТЬ:
Похоже, я наконец исправил это. Из того, что я понимаю, gcc.exe не распознавал каталог проекта, потому что в нем были пробелы и другие символы, такие как «ç» и «ã». Таким образом, изменение некоторых имен папок решило проблему.
Решение
Эти 2 строки означают, что с установкой CLion на вашем компьютере что-то не так. Я знаю это по своему опыту, потому что я впервые получил эту ошибку, когда установил CLion, используя то же видео, которое вы смотрели.
Я предлагаю вам посмотреть это видео:
Причина, по которой я предлагаю это видео, заключается в том, что оно является самым новым, доступным для установки CLion на компьютере с Windows 10. Что вы должны сделать, это просмотреть все видео и посмотреть, как установлены пакеты MinGW, какие установлены, а также как установлен и настроен CLion. Если вы сделали что-то отличное от этого видео, то это, вероятно, ошибка, которую вам нужно устранить. Кроме этого, я также использовал это видео, и оно сработало для меня.
Если вы следовали всем инструкциям в видео, то вам, вероятно, следует просто удалить MinGW и Clion и попробовать снова; Вот как я это сделал. Но делайте это только в крайнем случае. Сначала убедитесь, что вы ничего не пропустили в руководстве, особенно в том, как были установлены пакеты MinGW.
Кстати, этот вопрос был похож на этот, и ответ на него сработал, так что вы также можете посмотреть на это:
I just installed CLion on my computer with MinGW and decided to create a simple Hello World project to test it, but when I create it the console outputs an error:
From what I understood, it failed to create some files in the project directory. Does anyone know why?
I should also point out that I was running into problems because my antivirus was detecting cmake temp files in appdata as viruses as well as the «Hello World\cmake-build-debug\CMakeFiles\3.6.3\CompilerIdC\a.exe» executable.
EDIT: It looks like I finally fixed it. From what I understand gcc.exe was not recognizing the project directory because it had spaces and other symbols like «ç» and «ã». So changing some folder names fixed the problem.
1 Answer 1
These 2 lines mean that there is somethig wrong with the installation of CLion on your machine. I know this from experience, because I got this error myself the first time I installed CLion, using the same video you watched.
What I suggest is that you look at this video:
The reason I suggest this video is because it is the newest one available for installing CLion on a Windows 10 machine. What you should do is go over the entire video, and see how the MinGW packages are installed, which ones are installed, and how CLion is installed and set up. If you did anything different from this video, then that is probably the error you need to address. Just as an aside, I also used this video, and it worked for me.
If you followed all the insuctions in the video, then you should probably just uninstall MinGW and Clion and try it again; that’s how I did it. But only do this as a last resort. First make sure that you did not miss anything in the tutorial, esoecially in how the MinGW packages were installed.
By the way, there was a similar question to this one, and the answer posted for it worked, so you may also want to look at that: