Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 4.11.0
-
None
Description
I'm not very sure if it's QtCreator itself issue, or CMake is not able to handle such paths.
Run as Admin user
Wykrywanie urządzeń Windows Runtime. Brak winrtrunner.exe. Wykrywanie urządzeń Windows Runtime. Brak winrtrunner.exe. Wykrywanie urządzeń Windows Runtime. Brak winrtrunner.exe. Running C:\Program Files\CMake\bin\cmake.exe D:/projects/cpp/NamedType "-GCodeBlocks - MinGW Makefiles" "-DCMAKE_BUILD_TYPE:STRING=Debug" "-DCMAKE_CXX_COMPILER:STRING=D:/software/programming/Qt/Tools/mingw730_64/bin/g++.exe" "-DCMAKE_C_COMPILER:STRING=D:/software/programming/Qt/Tools/mingw730_64/bin/gcc.exe" "-DCMAKE_PREFIX_PATH:STRING=D:/software/programming/Qt/5.14.0/mingw73_64" "-DQT_QMAKE_EXECUTABLE:STRING=D:/software/programming/Qt/5.14.0/mingw73_64/bin/qmake.exe" in C:\Users\Admin\AppData\Local\Temp\QtCreator-vjiEyv\qtc-cmake-hxNOGzBz. -- The CXX compiler identification is GNU 7.3.0 -- Check for working CXX compiler: D:/software/programming/Qt/Tools/mingw730_64/bin/g++.exe -- Check for working CXX compiler: D:/software/programming/Qt/Tools/mingw730_64/bin/g++.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_C_COMPILER QT_QMAKE_EXECUTABLE -- Build files have been written to: C:/Users/Admin/AppData/Local/Temp/QtCreator-vjiEyv/qtc-cmake-hxNOGzBz
Run as Mikołaj
Wykrywanie urządzeń Windows Runtime. Brak winrtrunner.exe. Wykrywanie urządzeń Windows Runtime. Brak winrtrunner.exe. Wykrywanie urządzeń Windows Runtime. Brak winrtrunner.exe. Running C:\Program Files\CMake\bin\cmake.exe D:/projects/cpp/NamedType "-GMinGW Makefiles" "-DCMAKE_BUILD_TYPE:STRING=Debug" "-DCMAKE_CXX_COMPILER:STRING=D:/software/programming/Qt/Tools/mingw730_64/bin/g++.exe" "-DCMAKE_C_COMPILER:STRING=D:/software/programming/Qt/Tools/mingw730_64/bin/gcc.exe" "-DCMAKE_PREFIX_PATH:STRING=D:/software/programming/Qt/5.14.0/mingw73_64" "-DQT_QMAKE_EXECUTABLE:STRING=D:/software/programming/Qt/5.14.0/mingw73_64/bin/qmake.exe" in C:\Users\Mikołaj\AppData\Local\Temp\QtCreator-GgdOLi\qtc-cmake-DppRflFL. -- The CXX compiler identification is GNU 7.3.0 -- Check for working CXX compiler: D:/software/programming/Qt/Tools/mingw730_64/bin/g++.exe -- Check for working CXX compiler: D:/software/programming/Qt/Tools/mingw730_64/bin/g++.exe -- broken CMake Error at C:/Program Files/CMake/share/cmake-3.16/Modules/CMakeTestCXXCompiler.cmake:53 (message): The C++ compiler "D:/software/programming/Qt/Tools/mingw730_64/bin/g++.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/Users/MikoĹ‚aj/AppData/Local/Temp/QtCreator-GgdOLi/qtc-cmake-DppRflFL/CMakeFiles/CMakeTmp Run Build Command(s):D:/software/programming/Qt/Tools/mingw730_64/bin/mingw32-make.exe cmTC_d3013/fast && D:/software/programming/Qt/Tools/mingw730_64/bin/mingw32-make.exe -f CMakeFiles\cmTC_d3013.dir\build.make CMakeFiles/cmTC_d3013.dir/build mingw32-make.exe[1]: Entering directory 'C:/Users/Miko│aj/AppData/Local/Temp/QtCreator-GgdOLi/qtc-cmake-DppRflFL/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_d3013.dir/testCXXCompiler.cxx.obj D:\software\programming\Qt\Tools\mingw730_64\bin\g++.exe -o CMakeFiles\cmTC_d3013.dir\testCXXCompiler.cxx.obj -c C:\Users\Mikołaj\AppData\Local\Temp\QtCreator-GgdOLi\qtc-cmake-DppRflFL\CMakeFiles\CMakeTmp\testCXXCompiler.cxx g++.exe: error: C:\Users\Mikołaj\AppData\Local\Temp\QtCreator-GgdOLi\qtc-cmake-DppRflFL\CMakeFiles\CMakeTmp\testCXXCompiler.cxx: No such file or directory g++.exe: fatal error: no input files compilation terminated. mingw32-make.exe[1]: *** [CMakeFiles\cmTC_d3013.dir\build.make:65: CMakeFiles/cmTC_d3013.dir/testCXXCompiler.cxx.obj] Error 1 mingw32-make.exe[1]: Leaving directory 'C:/Users/Miko│aj/AppData/Local/Temp/QtCreator-GgdOLi/qtc-cmake-DppRflFL/CMakeFiles/CMakeTmp' mingw32-make.exe: *** [Makefile:120: cmTC_d3013/fast] Error 2 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:3 (project) -- Configuring incomplete, errors occurred! See also "C:/Users/MikoĹ‚aj/AppData/Local/Temp/QtCreator-GgdOLi/qtc-cmake-DppRflFL/CMakeFiles/CMakeOutput.log". See also "C:/Users/MikoĹ‚aj/AppData/Local/Temp/QtCreator-GgdOLi/qtc-cmake-DppRflFL/CMakeFiles/CMakeError.log". CMake process exited with exit code 1.
Also I suppose that, QtCreator does some hidden magic behind, because if I run cmake by hand in cmd I get an error (I'm able to run, in the same command prompt, mingw32-make)
C:\Users\Mikołaj\Desktop\Namedtype>"c:\Program Files\CMake\bin\cmake.exe" -S d:\projects\cpp\NamedType -B . -G"MinGW Makefiles" -DCMAKE_C_COMPILER:STRING=D:/software/programming/Qt/Tools/mingw730_64/bin/gcc.exe -DCMAKE_CXX_COMPILER:STRING=D:/software/programming/Qt/Tools/mingw730_64/bin/g++.exe -DCMAKE_C_COMPILER:STRING=D:/software/programming/Qt/Tools/mingw730_64/bin/gcc.exe -DCMAKE_PREFIX_PATH:STRING=D:/software/programming/Qt/5.14.0/mingw73_64 CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. -- Configuring incomplete, errors occurred!
Attachments
Issue Links
- relates to
-
QTCREATORBUG-20834 Warn if project or build directory contains spaces, non-ASCII or special characters
- Closed