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.

Кстати, этот вопрос был похож на этот, и ответ на него сработал, так что вы также можете посмотреть на это:

Источник

C compiler broken: is not able to compile a simple test program

On my Dektop and on my Surface Pro 6 CLion has stopped working and I don´t know exactly why.

Читайте также:  ааа инициалы что значат

That is written on my Desktop:

And for my Surface Pro 6:

2 Answers 2

Check out the previous answer to the title: How to use CMAKE in MinGW or MinGW-w64 to compile Clion:

The answer is: you shouldn’t let sh.exe in your PATH environment variable, it’s known to cause problem.

Or to use ninja as an alternative to make.

Avoid special characters and spaces in paths, in your case übung is not a good idea.

GCC on Windows will not handle these paths properly.

Also I see you’re using GCC 6 and 7, which are quite outdated. You can get more recent versions of MinGW-w64 GCC builds for Windows from https://winlibs.com/

Not the answer you’re looking for? Browse other questions tagged c cmake mingw clion or ask your own question.

Linked

Related

Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.11.24.40828

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

Информ портал о технике и не только