Youcompleteme: CMake Error: Could not create named generator Unix MakeFiles

Created on 13 Jan 2016  Â·  9Comments  Â·  Source: ycm-core/YouCompleteMe

Any ideas on what is wrong would be greatly appreciated thanks.

cmake -G Unix\ MakeFiles -DPATH_TO_LLVM_ROOT=~/ycm_temp/llvm_root_dir . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/ccp
CMake Error: Could not create named generator Unix MakeFiles

Generators
  Unix Makefiles               = Generates standard UNIX makefiles.
...

Same issue when using:
cmake -G "Unix MakeFiles" -DPATH_TO_LLVM_ROOT=~/ycm_temp/llvm_root_dir . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/ccp CMake Error: Could not create named generator Unix MakeFiles

Most helpful comment

cmake -G "Unix Makefiles" -DPATH_TO_LLVM_ROOT=~/ycm_temp/llvm_root_dir . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp

this will work
you were missing "" there

All 9 comments

have you solved the problem?

I don't know if you made the same typo but OP wrote Unix MakeFiles (uppercase F) instead of Unix Makefiles (lowercase f) for the generator name.

jagdeepkumar@kumar:~$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -G "Unix Makefiles"//-DCMAKE_INSTALL_PREFIX=${INSTALL_BASE_DIR} ..

CMake Error: Could not create named generator Unix Makefiles//-DCMAKE_INSTALL_PREFIX=

Generators
Unix Makefiles = Generates standard UNIX makefiles.
Ninja = Generates build.ninja files.
Watcom WMake = Generates Watcom WMake makefiles.

solve this problem?

Replace the // with a space. Your command line is incorrect.

On 24 Jan 2017, at 05:39, Jagdeepkumarboyat notifications@github.com wrote:

solve this problem?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

cmake -G "Unix Makefiles" -DPATH_TO_LLVM_ROOT=~/ycm_temp/llvm_root_dir . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp

this will work
you were missing "" there

cmake -G "UnixMakefiles"-DPATH_TO_LLVM_ROOT=~/ycm_temp/llvm_root_dir .~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp
CMake Error: Could not create named generator UnixMakefiles-DPATH_TO_LLVM_ROOT=~/ycm_temp/llvm_root_dir

doesn't work.

@DariaExaco You missed the space between Unix and Makefiles in the generator name.

The below format helped me fix the problem
"args": [
"-G",
"Unix Makefiles",
"-DCMAKE_BUILD_TYPE=Debug",
".."
]

Just use install.py.

Was this page helpful?
0 / 5 - 0 ratings