On 2009-09-09 14:04+0100 David Aldrich wrote:
> Hi Arjen
> Understood. But -G "NMake Makefiles" is specified on the wiki page.
My apologies in advance for entering late into your conversation with Arjen
especially since I have no Windows experience (although I do have lots of
CMake experience on Linux).
However, I was intrigued by this part of your report.
> C:\plplot-5.9.5\buildnmake>cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=install ..
> CMake Error: Could not create named generator
You should run cmake -help to see what generators are available for
your version of cmake. For my version of cmake on linux, here is what
cmake --help says:
The following generators are available on this platform:
Unix Makefiles = Generates standard UNIX makefiles.
CodeBlocks - Unix Makefiles = Generates CodeBlocks 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.
So if I specify
cmake -G "Unix Makefiles"
all is well, but if I specify some generator unknown to my version of CMake,
cmake -G "Unix Makefilesx"
then I get the message
CMake Error: Could not create named generator Unix Makefilesx
Note that my cmake version (2.6.4) repeats back the string that it doesn't
understand. In your case, you get the same error message, but with the
repeat back string empty. That is an intriguing result (see speculation
below) although it could be explained by the possibility that you have a
cmake version older than 2.6.4 that _might_ not bother to repeat back the
string in the error message.
Could you please post the cmake --help result here for the generators that
are supported by your version of cmake? Also, note above I used the exact
spelling/capitalization of "Unix Makefiles" as appeared in cmake --help for
the version that worked, and not some variant like "unix makefiles".
My web searches indicated that -G "NMake Makefiles" is the
correct form to use for cmake versions that support nmake, but your cmake
--help results should confirm that.
One speculative possibility is your version of cmake is not aware of the
nmake support you have on your platform (perhaps you need a PATH change?),
and you will have to change your PATH, use a different generator (as
reported by cmake --help) or else a different version of cmake that does
Another more speculative possibility (because your error message does not
reflect the -G option string that you specified) is your windows platform
shell is dropping the contents of the -G option and delivering -G "" to
cmake instead or that your version of cmake is broken/incompatible with your
windows platform so it doesn't receive the -G option string properly from
the windows environment.
Where exactly did you get your version of cmake?
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project