Small corrections on wiki? - Compiling / With command line using nmake (installed by Visual C++) (closed)

Added by ragnar-gd over 4 years ago

As compile-time is high, i set up my coding-environment on a second PC (XP pro 32 bit), which i handle remotely over rdp.
I tried the commandline-style compiling, to minimize my visits on that pc, thinking about automaticly scheduled nightly builds etc.
The PC is pretty virgin, i literally only did what was written on the wiki (installing SDK, VC++, etc.), just after installing the OS.

Let's see what is written on the wiki:

-------------------
Compiling¶
-------------------
With command line using nmake (installed by Visual C++)¶
-------------------

In the command line, type:

cd code

md build

cd build

cmake ..

nmake


I did just that, and (of course) the result was like this:

-------------------
R:\Projects\Ryzom\code\build>cmake ..

-- Building for: NMake Makefiles

CMake Warning at CMakeLists.txt:49 (PROJECT):

To use the NMake generator, cmake must be run from a shell that can use the

compiler cl from the command line. This environment does not contain

INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to

work.


I'd suggest to add an instruction/reminder for "beginners" like me on the wiki to set LIBPATH etc. accordingly.

And while i'm at it: How did you set that up? What shows your cmdline, when entering "SET LIBPATH" etc.?


Replies (4)

RE: Small corrections on wiki? - Compiling / With command line using nmake (installed by Visual C++) - Added by kervala over 4 years ago

Did you use the links "Windows SDK 7.1 Command Prompt" or "Visual Studio Command Prompt (2008)" from Start Menu ?

Both of them should set the correct environment variables.

If you don't have access to Windows GUI, you can launch "bin\SetEnv.cmd" from Windows SDK, "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat" or one of "vsvars*.bat" from "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin"

RE: Small corrections on wiki? - Compiling / With command line using nmake (installed by Visual C++) - Added by ragnar-gd over 4 years ago

kervala,

thank you!
It shows i never worked with vc on the command-line.
Thank you for being so friendly and not frying me for not reading the compilers manual. :)

(1-4/4)