Difference between revisions of "Using the command line and nmake"

From Net-SNMP Wiki
Jump to: navigation, search
Line 6: Line 6:
 
'''Build Net-SNMP'''<br>
 
'''Build Net-SNMP'''<br>
 
Open a command prompt with the correct options:
 
Open a command prompt with the correct options:
*cmd \V:ON \E:ON
+
*cmd /V:ON /E:ON
 
<br>
 
<br>
 
Set the environment variables for Visual Studio as well as the SDK '''''(modify paths to match your install locations)'''''
 
Set the environment variables for Visual Studio as well as the SDK '''''(modify paths to match your install locations)'''''

Revision as of 00:02, 7 January 2008

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.