Cmake error could not create named generator mingw makefiles

I have cmake 3.2.3 installed via pacman. I get an error when I try to use it from a msys64 shell: $ cmake -G "MSYS Makefiles" .. CMake Error: Could not create named generator MSYS Makefiles cmak...

If you compile native Windows binaries on Linux with MinGW

The MinGW and MSYS generators are only available on Windows based distributions. See #ifdef in cmake.cxx:

#if defined(_WIN32) && !defined(__CYGWIN__)

If you’re cross-compiling use one of the available MinGW toolchains. See e.g. «How to use MinGW to cross compile software for Windows» chapter in CMake’s wiki.

If you compile Windows binaries on Windows with MinGW

On my Windows PC I only have one CMake installation (the normal MSI Windows Installer with CMake directory added to PATH environment), which works from standard CMD shells and from my MSYS shells.

So in this case there is no need to install a special MinGW version of CMake (like e.g. for CygWin).

But I’ve rebuild CMake from source with MinGW-w64 several times lately to test some performance optimizations of cmake.exe and it did not work out-of-the-box. To work around the linker errors I’ve added -DCMAKE_EXE_LINKER_FLAGS="-Wl,--allow-multiple-definition" like recommended here and the resulting cmake.exe still supports the «MSYS Makefiles» generator.

So yes, there is — as you have commented — most probably something wrong with the pacman build.

hptphuong

CodeLite Curious
Posts: 8
Joined: Mon May 29, 2017 1:18 pm
Genuine User: Yes
IDE Question: PHP
Contact:

CMake Error: Could not create named generator MinGW Makefile

Hi all,

I want to create a project with cmake generator.

But when i create new project with cmake by codelite and «run cmake», i have the issue «CMake Error: Could not create named generator MinGW Makefiles».

I already install MinGW64 in my lap. But it’s not solve.

Please let me know how to fix this problem.

One more question , how to modify ‘ -G»MinGW Makefiles» ‘ ( default variable when «run cmake»).

Thanks & Best Regards,

Jame

User avatar

eranif

CodeLite Plugin
Posts: 6314
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CMake Error: Could not create named generator MinGW Make

Post

by eranif » Mon May 29, 2017 3:35 pm

You need to provide a new generator in the project settings.
Open your project settings->general->build->Makefile generator->Arguments, set the generator you want (e.g. -G»Unix Makefiles»)

cmake-settings.png

You do not have the required permissions to view the files attached to this post.

Make sure you have read the HOW TO POST thread

User avatar

eranif

CodeLite Plugin
Posts: 6314
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CMake Error: Could not create named generator MinGW Make

Post

by eranif » Tue May 30, 2017 5:52 pm

This looks like a bug in CodeLite.
However, if you add in the «Arguments» field (NOTICE the space before the -G):

— it will use a different generator

EDIT:
I have fixed the extra space needed bug in git master

EDIT2:
You really need to ask yourself, how come CMake does not know MinGW generator… it should be enabled by default on Windows (unless you are running in some kind of Unix emulator etc)

Make sure you have read the HOW TO POST thread

Содеожимое фала CMakeOutput.log (по частям):

CMakeOutput.log(часть 1):
The system is: MSYS — 3.0.7-338.x86_64 — x86_64
Compiling the C compiler identification source file «CMakeCCompilerId.c» succeeded.
Compiler: /usr/bin/cc.exe
Build flags:
Id flags:

The output was:
0

Compilation of the C compiler identification source «CMakeCCompilerId.c» produced «a.exe»

The C compiler identification is GNU, found in «/g/freeglut-3.2.1/CMakeFiles/3.15.5/CompilerIdC/a.exe»

Compiling the CXX compiler identification source file «CMakeCXXCompilerId.cpp» succeeded.
Compiler: /usr/bin/c++.exe
Build flags:
Id flags:

The output was:
0

Compilation of the CXX compiler identification source «CMakeCXXCompilerId.cpp» produced «a.exe»

The CXX compiler identification is GNU, found in «/g/freeglut-3.2.1/CMakeFiles/3.15.5/CompilerIdCXX/a.exe»

Determining if the C compiler works passed with the following output:
Change Dir: /g/freeglut-3.2.1/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make.exe cmTC_503de/fast && /usr/bin/make -f CMakeFiles/cmTC_503de.dir/build.make CMakeFiles/cmTC_503de.dir/build
make[1]: вход в каталог «/g/freeglut-3.2.1/CMakeFiles/CMakeTmp»
Building C object CMakeFiles/cmTC_503de.dir/testCCompiler.c.o
/usr/bin/cc.exe -o CMakeFiles/cmTC_503de.dir/testCCompiler.c.o -c /g/freeglut-3.2.1/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_503de.exe
/usr/bin/cmake.exe -E cmake_link_script CMakeFiles/cmTC_503de.dir/link.txt —verbose=1
/usr/bin/cc.exe -Wl,—enable-auto-import CMakeFiles/cmTC_503de.dir/testCCompiler.c.o -o cmTC_503de.exe -Wl,—out-implib,libcmTC_503de.dll.a -Wl,—major-image-version,0,—minor-image-version,0
make[1]: выход из каталога «/g/freeglut-3.2.1/CMakeFiles/CMakeTmp»

Detecting C compiler ABI info compiled with the following output:
Change Dir: /g/freeglut-3.2.1/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make.exe cmTC_71c7e/fast && /usr/bin/make -f CMakeFiles/cmTC_71c7e.dir/build.make CMakeFiles/cmTC_71c7e.dir/build
make[1]: Entering directory ‘/g/freeglut-3.2.1/CMakeFiles/CMakeTmp’
Building C object CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o
/usr/bin/cc.exe -v -o CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.15.5/Modules/CMakeCCompilerABI.c
Using built-in specs.
COLLECT_GCC=/usr/bin/cc
Target: x86_64-pc-msys
Configured with: /msys_scripts/gcc/src/gcc-9.1.0/configure —build=x86_64-pc-msys —prefix=/usr —libexecdir=/usr/lib —enable-bootstrap —enable-shared —enable-shared-libgcc —enable-static —enable-version-specific-runtime-libs —with-arch=x86-64 —with-tune=generic —disable-multilib —enable-__cxa_atexit —with-dwarf2 —enable-languages=c,c++,fortran,lto —enable-graphite —enable-threads=posix —enable-libatomic —enable-libgomp —enable-libitm —enable-libquadmath —enable-libquadmath-support —disable-libssp —disable-win32-registry —disable-symvers —with-gnu-ld —with-gnu-as —disable-isl-version-check —enable-checking=release —without-libiconv-prefix —without-libintl-prefix —with-system-zlib —enable-linker-build-id —with-default-libstdcxx-abi=gcc4-compatible —enable-libstdcxx-filesystem-ts
Thread model: posix
gcc version 9.1.0 (GCC)
COLLECT_GCC_OPTIONS=’-v’ ‘-o’ ‘CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o’ ‘-c’ ‘-mtune=generic’ ‘-march=x86-64’
/usr/lib/gcc/x86_64-pc-msys/9.1.0/cc1.exe -quiet -v -idirafter /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/../include/w32api -idirafter /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib/../../include/w32api /usr/share/cmake-3.15.5/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o -version -o /tmp/ccMAQSme.s
GNU C17 (GCC) version 9.1.0 (x86_64-pc-msys)
compiled by GNU C version 9.1.0, GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.21-GMP

GGC heuristics: —param ggc-min-expand=100 —param ggc-min-heapsize=131072
ignoring nonexistent directory «/usr/local/include»
ignoring nonexistent directory «/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/include»
ignoring duplicate directory «/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib/../../include/w32api»
#include «…» search starts here:
#include <…> search starts here:
/usr/lib/gcc/x86_64-pc-msys/9.1.0/include
/usr/lib/gcc/x86_64-pc-msys/9.1.0/include-fixed
/usr/include
/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/../include/w32api
End of search list.
GNU C17 (GCC) version 9.1.0 (x86_64-pc-msys)
compiled by GNU C version 9.1.0, GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.21-GMP

GGC heuristics: —param ggc-min-expand=100 —param ggc-min-heapsize=131072
Compiler executable checksum: 7f510fbb3faa166a40407e74feefff38
COLLECT_GCC_OPTIONS=’-v’ ‘-o’ ‘CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o’ ‘-c’ ‘-mtune=generic’ ‘-march=x86-64’
/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/bin/as.exe -v -o CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o /tmp/ccMAQSme.s
GNU assembler version 2.30 (x86_64-pc-msys) using BFD version (GNU Binutils) 2.30
COMPILER_PATH=/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/bin/
LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../:/usr/lib/
COLLECT_GCC_OPTIONS=’-v’ ‘-o’ ‘CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o’ ‘-c’ ‘-mtune=generic’ ‘-march=x86-64’
Linking C executable cmTC_71c7e.exe
/usr/bin/cmake.exe -E cmake_link_script CMakeFiles/cmTC_71c7e.dir/link.txt —verbose=1
/usr/bin/cc.exe -Wl,—enable-auto-import -v CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o -o cmTC_71c7e.exe -Wl,—out-implib,libcmTC_71c7e.dll.a -Wl,—major-image-version,0,—minor-image-version,0
Using built-in specs.
COLLECT_GCC=/usr/bin/cc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-msys/9.1.0/lto-wrapper.exe
Target: x86_64-pc-msys
Configured with: /msys_scripts/gcc/src/gcc-9.1.0/configure —build=x86_64-pc-msys —prefix=/usr —libexecdir=/usr/lib —enable-bootstrap —enable-shared —enable-shared-libgcc —enable-static —enable-version-specific-runtime-libs —with-arch=x86-64 —with-tune=generic —disable-multilib —enable-__cxa_atexit —with-dwarf2 —enable-languages=c,c++,fortran,lto —enable-graphite —enable-threads=posix —enable-libatomic —enable-libgomp —enable-libitm —enable-libquadmath —enable-libquadmath-support —disable-libssp —disable-win32-registry —disable-symvers —with-gnu-ld —with-gnu-as —disable-isl-version-check —enable-checking=release —without-libiconv-prefix —without-libintl-prefix —with-system-zlib —enable-linker-build-id —with-default-libstdcxx-abi=gcc4-compatible —enable-libstdcxx-filesystem-ts
Thread model: posix
gcc version 9.1.0 (GCC)
COMPILER_PATH=/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/bin/
LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../:/usr/lib/
COLLECT_GCC_OPTIONS=’-v’ ‘-o’ ‘cmTC_71c7e.exe’ ‘-mtune=generic’ ‘-march=x86-64’
/usr/lib/gcc/x86_64-pc-msys/9.1.0/collect2.exe -plugin /usr/lib/gcc/x86_64-pc-msys/9.1.0/msys-lto_plugin.dll -plugin-opt=/usr/lib/gcc/x86_64-pc-msys/9.1.0/lto-wrapper.exe -plugin-opt=-fresolution=/tmp/ccVCUNou.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmsys-2.0 -plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc —build-id -m i386pep —wrap _Znwm —wrap _Znam —wrap _ZdlPv —wrap _ZdaPv —wrap _ZnwmRKSt9nothrow_t —wrap _ZnamRKSt9nothrow_t —wrap _ZdlPvRKSt9nothrow_t —wrap _ZdaPvRKSt9nothrow_t -Bdynamic —dll-search-prefix=msys- —tsaware -o cmTC_71c7e.exe /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/crt0.o /usr/lib/gcc/x86_64-pc-msys/9.1.0/crtbegin.o -L/usr/lib/gcc/x86_64-pc-msys/9.1.0 -L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib -L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib -L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../.. —enable-auto-import CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o —out-implib libcmTC_71c7e.dll.a —major-image-version 0 —minor-image-version 0 -lgcc_s -lgcc -lmsys-2.0 -ladvapi32 -lshell32 -luser32 -lkernel32 -lgcc_s -lgcc /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/default-manifest.o /usr/lib/gcc/x86_64-pc-msys/9.1.0/crtend.o
COLLECT_GCC_OPTIONS=’-v’ ‘-o’ ‘cmTC_71c7e.exe’ ‘-mtune=generic’ ‘-march=x86-64’
make[1]: Leaving directory ‘/g/freeglut-3.2.1/CMakeFiles/CMakeTmp’

Добавлено через 46 секунд
Содеожимое фала CMakeOutput.log (по частям):

CMakeOutput.log(часть 2):
Parsed C implicit include dir info from above output: rv=done
found start of include info
found start of implicit include info
add: [/usr/lib/gcc/x86_64-pc-msys/9.1.0/include]
add: [/usr/lib/gcc/x86_64-pc-msys/9.1.0/include-fixed]
add: [/usr/include]
add: [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/../include/w32api]
end of search list found
collapse include dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/include] ==> [/usr/lib/gcc/x86_64-pc-msys/9.1.0/include]
collapse include dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/include-fixed] ==> [/usr/lib/gcc/x86_64-pc-msys/9.1.0/include-fixed]
collapse include dir [/usr/include] ==> [/usr/include]
collapse include dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/../include/w32api] ==> [/usr/include/w32api]
implicit include dirs: [/usr/lib/gcc/x86_64-pc-msys/9.1.0/include;/usr/lib/gcc/x86_64-pc-msys/9.1.0/include-fixed;/usr/include;/usr/include/w32api]

Parsed C implicit link information from above output:
link line regex: [^( *|.*[/])(ld.exe|CMAKE_LINK_STARTFILE-NOTFOUND|([^/]+-)?ld|collect2)[^/]*( |$)]
ignore line: [Change Dir: /g/freeglut-3.2.1/CMakeFiles/CMakeTmp]
ignore line: []
ignore line: [Run Build Command(s):/usr/bin/make.exe cmTC_71c7e/fast && /usr/bin/make -f CMakeFiles/cmTC_71c7e.dir/build.make CMakeFiles/cmTC_71c7e.dir/build]
ignore line: [make[1]: Entering directory ‘/g/freeglut-3.2.1/CMakeFiles/CMakeTmp’]
ignore line: [Building C object CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o]
ignore line: [/usr/bin/cc.exe -v -o CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.15.5/Modules/CMakeCCompilerABI.c]
ignore line: [Using built-in specs.]
ignore line: [COLLECT_GCC=/usr/bin/cc]
ignore line: [Target: x86_64-pc-msys]
ignore line: [Configured with: /msys_scripts/gcc/src/gcc-9.1.0/configure —build=x86_64-pc-msys —prefix=/usr —libexecdir=/usr/lib —enable-bootstrap —enable-shared —enable-shared-libgcc —enable-static —enable-version-specific-runtime-libs —with-arch=x86-64 —with-tune=generic —disable-multilib —enable-__cxa_atexit —with-dwarf2 —enable-languages=c,c++,fortran,lto —enable-graphite —enable-threads=posix —enable-libatomic —enable-libgomp —enable-libitm —enable-libquadmath —enable-libquadmath-support —disable-libssp —disable-win32-registry —disable-symvers —with-gnu-ld —with-gnu-as —disable-isl-version-check —enable-checking=release —without-libiconv-prefix —without-libintl-prefix —with-system-zlib —enable-linker-build-id —with-default-libstdcxx-abi=gcc4-compatible —enable-libstdcxx-filesystem-ts]
ignore line: [Thread model: posix]
ignore line: [gcc version 9.1.0 (GCC) ]
ignore line: [COLLECT_GCC_OPTIONS=’-v’ ‘-o’ ‘CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o’ ‘-c’ ‘-mtune=generic’ ‘-march=x86-64’]
ignore line: [ /usr/lib/gcc/x86_64-pc-msys/9.1.0/cc1.exe -quiet -v -idirafter /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/../include/w32api -idirafter /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib/../../include/w32api /usr/share/cmake-3.15.5/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o -version -o /tmp/ccMAQSme.s]
ignore line: [GNU C17 (GCC) version 9.1.0 (x86_64-pc-msys)]
ignore line: [ compiled by GNU C version 9.1.0, GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.21-GMP]
ignore line: []
ignore line: [GGC heuristics: —param ggc-min-expand=100 —param ggc-min-heapsize=131072]
ignore line: [ignoring nonexistent directory «/usr/local/include»]
ignore line: [ignoring nonexistent directory «/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/include»]
ignore line: [ignoring duplicate directory «/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib/../../include/w32api»]
ignore line: [#include «…» search starts here:]
ignore line: [#include <…> search starts here:]
ignore line: [ /usr/lib/gcc/x86_64-pc-msys/9.1.0/include]
ignore line: [ /usr/lib/gcc/x86_64-pc-msys/9.1.0/include-fixed]
ignore line: [ /usr/include]
ignore line: [ /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/../include/w32api]
ignore line: [End of search list.]
ignore line: [GNU C17 (GCC) version 9.1.0 (x86_64-pc-msys)]
ignore line: [ compiled by GNU C version 9.1.0, GMP version 6.1.2, MPFR version 4.0.2, MPC version 1.1.0, isl version isl-0.21-GMP]
ignore line: []
ignore line: [GGC heuristics: —param ggc-min-expand=100 —param ggc-min-heapsize=131072]
ignore line: [Compiler executable checksum: 7f510fbb3faa166a40407e74feefff38]
ignore line: [COLLECT_GCC_OPTIONS=’-v’ ‘-o’ ‘CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o’ ‘-c’ ‘-mtune=generic’ ‘-march=x86-64’]
ignore line: [ /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/bin/as.exe -v -o CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o /tmp/ccMAQSme.s]
ignore line: [GNU assembler version 2.30 (x86_64-pc-msys) using BFD version (GNU Binutils) 2.30]
ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/bin/]
ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../:/usr/lib/]
ignore line: [COLLECT_GCC_OPTIONS=’-v’ ‘-o’ ‘CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o’ ‘-c’ ‘-mtune=generic’ ‘-march=x86-64’]
ignore line: [Linking C executable cmTC_71c7e.exe]
ignore line: [/usr/bin/cmake.exe -E cmake_link_script CMakeFiles/cmTC_71c7e.dir/link.txt —verbose=1]
ignore line: [/usr/bin/cc.exe -Wl,—enable-auto-import -v CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o -o cmTC_71c7e.exe -Wl,—out-implib,libcmTC_71c7e.dll.a -Wl,—major-image-version,0,—minor-image-version,0 ]
ignore line: [Using built-in specs.]
ignore line: [COLLECT_GCC=/usr/bin/cc]
ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-msys/9.1.0/lto-wrapper.exe]
ignore line: [Target: x86_64-pc-msys]
ignore line: [Configured with: /msys_scripts/gcc/src/gcc-9.1.0/configure —build=x86_64-pc-msys —prefix=/usr —libexecdir=/usr/lib —enable-bootstrap —enable-shared —enable-shared-libgcc —enable-static —enable-version-specific-runtime-libs —with-arch=x86-64 —with-tune=generic —disable-multilib —enable-__cxa_atexit —with-dwarf2 —enable-languages=c,c++,fortran,lto —enable-graphite —enable-threads=posix —enable-libatomic —enable-libgomp —enable-libitm —enable-libquadmath —enable-libquadmath-support —disable-libssp —disable-win32-registry —disable-symvers —with-gnu-ld —with-gnu-as —disable-isl-version-check —enable-checking=release —without-libiconv-prefix —without-libintl-prefix —with-system-zlib —enable-linker-build-id —with-default-libstdcxx-abi=gcc4-compatible —enable-libstdcxx-filesystem-ts]
ignore line: [Thread model: posix]
ignore line: [gcc version 9.1.0 (GCC) ]
ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/bin/]
ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-msys/9.1.0/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/:/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../:/usr/lib/]
ignore line: [COLLECT_GCC_OPTIONS=’-v’ ‘-o’ ‘cmTC_71c7e.exe’ ‘-mtune=generic’ ‘-march=x86-64’]
link line: [ /usr/lib/gcc/x86_64-pc-msys/9.1.0/collect2.exe -plugin /usr/lib/gcc/x86_64-pc-msys/9.1.0/msys-lto_plugin.dll -plugin-opt=/usr/lib/gcc/x86_64-pc-msys/9.1.0/lto-wrapper.exe -plugin-opt=-fresolution=/tmp/ccVCUNou.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmsys-2.0 -plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc —build-id -m i386pep —wrap _Znwm —wrap _Znam —wrap _ZdlPv —wrap _ZdaPv —wrap _ZnwmRKSt9nothrow_t —wrap _ZnamRKSt9nothrow_t —wrap _ZdlPvRKSt9nothrow_t —wrap _ZdaPvRKSt9nothrow_t -Bdynamic —dll-search-prefix=msys- —tsaware -o cmTC_71c7e.exe /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/crt0.o /usr/lib/gcc/x86_64-pc-msys/9.1.0/crtbegin.o -L/usr/lib/gcc/x86_64-pc-msys/9.1.0 -L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib -L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib -L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../.. —enable-auto-import CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o —out-implib libcmTC_71c7e.dll.a —major-image-version 0 —minor-image-version 0 -lgcc_s -lgcc -lmsys-2.0 -ladvapi32 -lshell32 -luser32 -lkernel32 -lgcc_s -lgcc /usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/default-manifest.o /usr/lib/gcc/x86_64-pc-msys/9.1.0/crtend.o]
arg [/usr/lib/gcc/x86_64-pc-msys/9.1.0/collect2.exe] ==> ignore
arg [-plugin] ==> ignore
arg [/usr/lib/gcc/x86_64-pc-msys/9.1.0/msys-lto_plugin.dll] ==> ignore
arg [-plugin-opt=/usr/lib/gcc/x86_64-pc-msys/9.1.0/lto-wrapper.exe] ==> ignore
arg [-plugin-opt=-fresolution=/tmp/ccVCUNou.res] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
arg [-plugin-opt=-pass-through=-lmsys-2.0] ==> ignore
arg [-plugin-opt=-pass-through=-ladvapi32] ==> ignore
arg [-plugin-opt=-pass-through=-lshell32] ==> ignore
arg [-plugin-opt=-pass-through=-luser32] ==> ignore
arg [-plugin-opt=-pass-through=-lkernel32] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
arg [—build-id] ==> ignore
arg [-m] ==> ignore
arg [i386pep] ==> ignore
arg [—wrap] ==> ignore
arg [_Znwm] ==> ignore
arg [—wrap] ==> ignore
arg [_Znam] ==> ignore
arg [—wrap] ==> ignore
arg [_ZdlPv] ==> ignore
arg [—wrap] ==> ignore
arg [_ZdaPv] ==> ignore
arg [—wrap] ==> ignore
arg [_ZnwmRKSt9nothrow_t] ==> ignore
arg [—wrap] ==> ignore
arg [_ZnamRKSt9nothrow_t] ==> ignore
arg [—wrap] ==> ignore
arg [_ZdlPvRKSt9nothrow_t] ==> ignore
arg [—wrap] ==> ignore
arg [_ZdaPvRKSt9nothrow_t] ==> ignore
arg [-Bdynamic] ==> ignore
arg [—dll-search-prefix=msys-] ==> ignore
arg [—tsaware] ==> ignore
arg [-o] ==> ignore
arg [cmTC_71c7e.exe] ==> ignore
arg [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/crt0.o] ==> ignore
arg [/usr/lib/gcc/x86_64-pc-msys/9.1.0/crtbegin.o] ==> ignore
arg [-L/usr/lib/gcc/x86_64-pc-msys/9.1.0] ==> dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0]
arg [-L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib] ==> dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib]
arg [-L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib]
arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib]
arg [-L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib] ==> dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib]
arg [-L/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../..] ==> dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../..]
arg [—enable-auto-import] ==> ignore
arg [CMakeFiles/cmTC_71c7e.dir/CMakeCCompilerABI.c.o] ==> ignore
arg [—out-implib] ==> ignore
arg [libcmTC_71c7e.dll.a] ==> ignore
arg [—major-image-version] ==> ignore
arg [0] ==> ignore
arg [—minor-image-version] ==> ignore
arg [0] ==> ignore
arg [-lgcc_s] ==> lib [gcc_s]
arg [-lgcc] ==> lib [gcc]
arg [-lmsys-2.0] ==> lib [msys-2.0]
arg [-ladvapi32] ==> lib [advapi32]
arg [-lshell32] ==> lib [shell32]
arg [-luser32] ==> lib [user32]
arg [-lkernel32] ==> lib [kernel32]
arg [-lgcc_s] ==> lib [gcc_s]
arg [-lgcc] ==> lib [gcc]
arg [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib/default-manifest.o] ==> ignore
arg [/usr/lib/gcc/x86_64-pc-msys/9.1.0/crtend.o] ==> ignore
collapse library dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0] ==> [/usr/lib/gcc/x86_64-pc-msys/9.1.0]
collapse library dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib/../lib] ==> [/usr/x86_64-pc-msys/lib]
collapse library dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../lib] ==> [/usr/lib]
collapse library dir [/usr/lib/../lib] ==> [/usr/lib]
collapse library dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../../../x86_64-pc-msys/lib] ==> [/usr/x86_64-pc-msys/lib]
collapse library dir [/usr/lib/gcc/x86_64-pc-msys/9.1.0/../../..] ==> [/usr/lib]
implicit libs: [gcc_s;gcc;msys-2.0;advapi32;shell32;user32;kernel32;gcc_s;gcc]
implicit dirs: [/usr/lib/gcc/x86_64-pc-msys/9.1.0;/usr/x86_64-pc-msys/lib;/usr/lib]
implicit fwks: []

This topic has been deleted. Only users with topic management privileges can see it.

  • Hi,
    I struggle through the installation of «QCA»:http://delta.affinix.com/qca/.
    I found 2 guides «here»:http://www.essentialunix.org/index.php?option=com_content&view=article&id=48:qcatutorial&catid=34:qttutorials&Itemid=53 and «here»:https://github.com/JPNaude/dev_notes/wiki/Using-the-Qt-Cryptographic-Architecture-with-Qt5.
    Due to the fact that english isn’t my first language I don’t understand everything from these guides. I couldn’t even complete the first step from the first guide. So I decided to switch to the other one.

    What I have done so far: I downloaded QCA 2.1.0, CMake, Win32OpenSSL 1.0.1L and Visual C++ 2008 Redistributables (32 Bit) and installed VCRedist. and OpenSSL. I copied CMake to C:cmake and QCA to C:qca_2-1-0.
    Then i run cmake in console using cmake c:qca_2-1-0 (where the CMakeLists.txt is located) and get an error.
    The error message and the CMakeError.txt are listed below.

    Can someone please guide me and tell me what I’m doing wrong so that I’m able to use QCA?

    Thank you!

    Error:

    — Building for: NMake Makefiles
    CMake Warning at CMakeLists.txt:9 (project):
    To use the NMake generator, cmake must be run from a shell that can use the
    compiler cl from the command line. This environment does not contain
    INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
    work.

    — The C compiler identification is unknown
    — The CXX compiler identification is unknown
    CMake Error at CMakeLists.txt:9 (project):
    The CMAKE_C_COMPILER:

    cl
    

    is not a full path and was not found in the PATH.

    Tell CMake where to find the compiler by setting either the environment
    variable «CC» or 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:9 (project):
    The CMAKE_CXX_COMPILER:

    cl
    

    is not a full path and was not found in the PATH.

    Tell CMake where to find the compiler by setting either the environment
    variable «CXX» or 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.

    — Configuring incomplete, errors occurred!
    See also «C:/cmake/bin/CMakeFiles/CMakeOutput.log».
    See also «C:/cmake/bin/CMakeFiles/CMakeError.log».

    CMakeError.txt:

    Compiling the C compiler identification source file «CMakeCCompilerId.c» failed.
    Compiler: cl
    Build flags:
    Id flags:

    The output was:
    Das System kann die angegebene Datei nicht finden

    Compiling the C compiler identification source file «CMakeCCompilerId.c» failed.
    Compiler: cl
    Build flags:
    Id flags: -c

    The output was:
    Das System kann die angegebene Datei nicht finden

    Compiling the C compiler identification source file «CMakeCCompilerId.c» failed.
    Compiler: cl
    Build flags:
    Id flags: -Aa

    The output was:
    Das System kann die angegebene Datei nicht finden

    Checking whether the C compiler is IAR using «» did not match «IAR .+ Compiler»:
    Compiling the CXX compiler identification source file «CMakeCXXCompilerId.cpp» failed.
    Compiler: cl
    Build flags:
    Id flags:

    The output was:
    Das System kann die angegebene Datei nicht finden

    Compiling the CXX compiler identification source file «CMakeCXXCompilerId.cpp» failed.
    Compiler: cl
    Build flags:
    Id flags: -c

    The output was:
    Das System kann die angegebene Datei nicht finden

    Checking whether the CXX compiler is IAR using «» did not match «IAR .+ Compiler»:

  • Hi and welcome to devnet,

    Do you have Visual Studio installed ? If so, start a development command line from the Visual Studio sub-menu. That will setup the development environment that cmake is currently complaining about.

  • Hi and thanks,
    no I don’t have Visual Studio. Do I need it?

  • It depends on which version of Qt you are using. Which package did you install ?

  • Where can I find that Information? I just downloaded the community-license version. In Qt Creator->Help->About it says:
    Qt Creator 3.3.0
    Based on Qt 5.4.0 (MSVC 2010 32 bit)
    Built on Dec 08.2014 at 15:24:21
    Revision d36c4d87db

    Is that what you wanted to know?

  • In part, the other is: which package exactly did you install ? There are severals available (the name of the file will be enough)

  • You mean the filename of the Qt installer? Sorry but I don’t have that file anymore. I just took the suggested. When I download it again it suggests qt-opensource-windows-x86-online.exe so I guess that’s the right one.

  • So it’s the online installer, then, in your Qt installation you should have a folder name Qt_something for the version you installed, can you tell me what the name looks like ?

  • Uhm unfortunatley I decided to call it just «Qt» during the installation process :/
    Inside that folder there are some folders called

    • 5.3
    • 5.4
    • Docs
    • Examples
    • Extas
    • Licenses
    • temp
    • Tools
    • vcredist

    There are also some files:

    • components.xml
    • InstallationLog.txt
    • MaintenanceTool.dat
    • MaintenanceTool.exe
    • MaintenanceTool.ini
    • network.xml
    • qt-project.org.html
    • README.txt
    • update.rcc
  • I can reinstall Qt if that helps.

  • You should be able to get the information from the Maintenance tool

  • Ok, I found Qt ver. 1.0.8 with Qt 5.4 ver. 5.4.0-1 and Qt 5.3 ver. 5.3.2

  • MSVC ? MinGW ?

  • Oh sorry I missed to open that stuff :/

    • Qt 5.4 MinGW 4.9.1 (32 bit) OpenGL ver. 5.4.0-1, Qt WebEngine ver. 5.4.0-1
    • Qt 5.3 MinGW 4.8.2 (32 bit) ver. 5.3.2-0
    • Tools: MinGW 4.8.2 ver. 4.8.2, MinGW 4.9.1 ver. 4.9.1-2
    • Qt Extras Qt Canvas and QtWebView (doesn’t matter at this point I guess)

    No MSVC selected.

  • No problem, then when calling cmake you should set the generator to «MinGW Makefiles»

  • Ok. make -G «MinGW Makefiles» c:qca_2-1-0 says

    CMake Error: Error: generator : MinGW Makefiles
    Does not match the generator used previously: NMake Makefiles Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.

    Should I remove the suggested file?

  • Yes, you can empty the folder you used

  • But this is the cmake folder c:cmake.
    Do I only have to delete that file or can i specify a folder and how?

  • Don’t call cmake from there.

    Call it either in a build folder inside QCA’s sources or at the same level as the sources

  • Ok I copied cmake into the qca folder and it said

    C:qca_2-1-0>cmake -G «MinGW Makefiles» c:qca_2-1-0

    C:qca_2-1-0>cmake -G «MinGW Makefiles» c:qca_2-1-0
    CMake Error: Could not create named generator «MinGW CMake Error: The current CMakeCache.txt directory C:/qca_2-1-0/CMakeCache.txt is different than the directory c:/cmake/bin where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure,
    reedit the CMakeCache.txt

    Then I copied QCA into a folder inside of the cmake folder and it says

    C:cmakebin>cmake -G «MinGW MakeFiles» c:cmakebinqca
    CMake Error: Could not create named generator MinGW MakeFiles

  • Я хочу построить этот проект:https://github.com/xmrig/xmrig в соответствии с инструкциями здесь: https://github.com/xmrig/xmrig/wiki/Windows-Build , но когда я пытаюсь запустить это:

    C:UsersdminDocumentsxmrig-2.3.1build>cmake .. -G "Visual Studio 15 2017 Win
    64"-T v140_xp -DCMAKE_BUILD_TYPE=Release  -DUV_INCLUDE_DIR=C:Program Fileslibu
    vinclude -DUV_LIBRARY=C:Program FileslibuvReleaseliblibuv.lib
    CMake Error: Could not create named generator Visual Studio 15 2017 Win64-T
    

    Я получаю эти ошибки:

    CMake Error: Could not create named generator Visual Studio 15 2017 Win64-T
    
    Generators
    Visual Studio 15 2017 [arch] = Generates Visual Studio 2017 project files.
    Optional [arch] can be "Win64" or "ARM".
    Visual Studio 14 2015 [arch] = Generates Visual Studio 2015 project files.
    Optional [arch] can be "Win64" or "ARM".
    Visual Studio 12 2013 [arch] = Generates Visual Studio 2013 project files.
    Optional [arch] can be "Win64" or "ARM".
    Visual Studio 11 2012 [arch] = Generates Visual Studio 2012 project files.
    Optional [arch] can be "Win64" or "ARM".
    Visual Studio 10 2010 [arch] = Generates Visual Studio 2010 project files.
    Optional [arch] can be "Win64" or "IA64".
    Visual Studio 9 2008 [arch]  = Generates Visual Studio 2008 project files.
    Optional [arch] can be "Win64" or "IA64".
    Visual Studio 8 2005 [arch]  = Deprecated.  Generates Visual Studio 2005
    project files.  Optional [arch] can be
    "Win64".
    Borland Makefiles            = Generates Borland makefiles.
    NMake Makefiles              = Generates NMake makefiles.
    NMake Makefiles JOM          = Generates JOM makefiles.
    Green Hills MULTI            = Generates Green Hills MULTI files
    (experimental, work-in-progress).
    MSYS Makefiles               = Generates MSYS makefiles.
    MinGW Makefiles              = Generates a make file for use with
    mingw32-make.
    Unix Makefiles               = Generates standard UNIX makefiles.
    Ninja                        = Generates build.ninja files.
    Watcom WMake                 = Generates Watcom WMake makefiles.
    CodeBlocks - MinGW Makefiles = Generates CodeBlocks project files.
    CodeBlocks - NMake Makefiles = Generates CodeBlocks project files.
    CodeBlocks - NMake Makefiles JOM
    = Generates CodeBlocks project files.
    CodeBlocks - Ninja           = Generates CodeBlocks project files.
    CodeBlocks - Unix Makefiles  = Generates CodeBlocks project files.
    CodeLite - MinGW Makefiles   = Generates CodeLite project files.
    CodeLite - NMake Makefiles   = Generates CodeLite project files.
    CodeLite - Ninja             = Generates CodeLite project files.
    CodeLite - Unix Makefiles    = Generates CodeLite project files.
    Sublime Text 2 - MinGW Makefiles
    = Generates Sublime Text 2 project files.
    Sublime Text 2 - NMake Makefiles
    = Generates Sublime Text 2 project files.
    Sublime Text 2 - Ninja       = Generates Sublime Text 2 project files.
    Sublime Text 2 - Unix Makefiles
    = Generates Sublime Text 2 project files.
    Kate - MinGW Makefiles       = Generates Kate project files.
    Kate - NMake Makefiles       = Generates Kate project files.
    Kate - Ninja                 = Generates Kate project files.
    Kate - Unix Makefiles        = Generates Kate project files.
    Eclipse CDT4 - NMake Makefiles
    = Generates Eclipse CDT 4.0 project files.
    Eclipse CDT4 - MinGW Makefiles
    = Generates Eclipse CDT 4.0 project files.
    Eclipse CDT4 - Ninja         = Generates Eclipse CDT 4.0 project files.
    Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.
    

    Как я могу решить это?

    PS: это не дублируется, так как нет ответа CMake Ошибка: не удалось создать именованный генератор Visual Studio 14 2015 win64

    Спасибо

    3

    Решение

    Глядя на сообщение об ошибке, он говорит, что нет:

    Visual Studio 15 2017 Win64-T
    

    Как вы можете заметить, cmake проанализировал вашу команду слияния Win64 «и параметр -T. В командной строке вы вставили:

    между Win64 «и -T нет места.

    Добавьте один и снова введите команду.

    1

    Другие решения

    Других решений пока нет …

    Понравилась статья? Поделить с друзьями:
  • Cmake error cmake c compiler not set after enablelanguage
  • Cmake error cannot open file for write
  • Cmake error cannot determine link language for target
  • Cmake error at cmakelists txt 2 project
  • Cmake error 127