Windows Build CMake Error

894 views
Skip to first unread message

Davy Pough

unread,
Sep 5, 2016, 1:53:57 PM9/5/16
to Fast Downward
An attempt to build from the Developer Command Prompt for VS2015 produces
the message below (after setting up the environment with VsDevCmd.bat as per
instructions).  Any any help appreciated:

D:\Users Data\Dave\SW Library\AI\Planning\Fast-Downward>python build.py
Building configuration release32
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.

Florian Pommerening

unread,
Sep 5, 2016, 3:29:56 PM9/5/16
to fast-d...@googlegroups.com
Hi Davy,

looks like your CMake knows about how to create Unix Makefiles but not
how to create NMake Makefiles. The other available generators also look
unix'y. Are you running this from within an emulator like cygwin? If so,
please try again in an a regular "cmd" shell.

Does the command "nmake" output anything?

Cheers,
Florian
> --
> You received this message because you are subscribed to the Google
> Groups "Fast Downward" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to fast-downwar...@googlegroups.com
> <mailto:fast-downwar...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Davy Pough

unread,
Sep 6, 2016, 3:59:39 AM9/6/16
to Fast Downward
OK, the problem did turn out to be Cygwin, which I was using to run another planner.  Downward build was picking up the cygwin gcc compiler, rather than the Visual Studio 15 C++ compiler.  Uninstalling cygwin fixed the problem.  For info, I still had to run from the Visual Studio command prompt (the normal windows command prompt didn't work) with admin privileges. 
Reply all
Reply to author
Forward
0 new messages