Page 1 of 1

CMake Error: Could not create named generator MinGW Makefile

Posted: Mon May 29, 2017 1:26 pm
by hptphuong
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

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

Posted: Mon May 29, 2017 3:35 pm
by eranif
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

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

Posted: Tue May 30, 2017 2:44 pm
by hptphuong
I tried as your said.
But if i add directly to argument, it becomes like that

Code: Select all

-G"MinGW Makefiles" -G"Unix Makefiles"
It's not effect.

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

Posted: Tue May 30, 2017 5:30 pm
by eranif
Can you post the build log? (see my signature)

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

Posted: Tue May 30, 2017 5:52 pm
by eranif
This looks like a bug in CodeLite.
However, if you add in the "Arguments" field (NOTICE the space before the -G):

Code: Select all

 -G"Unix Makefiles"
- 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)