Using the command line and nmake

From Net-SNMP Wiki
Revision as of 23:50, 6 January 2008 by Kschehr (Talk | contribs) (Building Net-SNMP Using Visual C++ 2005 (command line and nmake))

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Download and install Microsoft Visual Studio 2005 Express Download and install the Microsoft SDK Download and install ActivePerl for the Make scripts

Open a command prompt with the correct options:

  • cmd \V:ON \E:ON

Set the environment variables for Visual Studio as well as the SDK (modify paths to match your install locations)Italic text

  • C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin\setenv.cmd
  • C:\Program Files\Microsoft Visual Studio 8\VC\bin\vcvars32.bat

Set the install directory variable to what net-snmp expects

  • SET MSVCDir=%VSINSTALLDIR%

Run the build script

  • c:\net-snmp\win32\build.bat


      • Note: This as far as I've made it to date, the build is still failing, but as I make progress I will update this page. I am not a Windows coder by any stretch of imagination so I'm sure there is a better way to do this. ***