A
A
artem782017-09-15 16:23:41
Perl
artem78, 2017-09-15 16:23:41

Why does "Could not create named generator NMake Makefiles" error occur in cmake?

Installing the Image::Scale module for Perl on Windows 7. It requires building the libjpeg-tubo library. Following these instructions , I installed visual studio 2005, cygwin, nmake and cmake, unpacked the archive with the library. Then in the cygwin terminal I execute the command:

cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release ..

An error comes out:
CMake Error: Could not create named generator NMake Makefiles

Generators
  Unix Makefiles               = Generates standard UNIX makefiles.
  Ninja                        = Generates build.ninja files.
  CodeBlocks - Ninja           = Generates CodeBlocks project files.
  CodeBlocks - Unix Makefiles  = Generates CodeBlocks project files.
  CodeLite - Ninja             = Generates CodeLite project files.
  CodeLite - Unix Makefiles    = Generates CodeLite project files.
  Eclipse CDT4 - Ninja         = Generates Eclipse CDT 4.0 project files.
  Eclipse CDT4 - Unix Makefiles= Generates Eclipse CDT 4.0 project files.
  KDevelop3                    = Generates KDevelop 3 project files.
  KDevelop3 - Unix Makefiles   = Generates KDevelop 3 project files.
  Kate - Ninja                 = Generates Kate project files.
  Kate - Unix Makefiles        = Generates Kate project files.
  Sublime Text 2 - Ninja       = Generates Sublime Text 2 project files.
  Sublime Text 2 - Unix Makefiles
                               = Generates Sublime Text 2 project files.

How to fix it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question