Using the command line and nmake

From Net-SNMP Wiki
Revision as of 00:02, 7 January 2008 by Kschehr (Talk | contribs)

Jump to: navigation, search

Setup the build system

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


Build Net-SNMP
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)

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


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.