Using the command line and nmake (VC++ 2010 Express)
From Net-SNMP Wiki
Revision as of 17:06, 10 November 2014 by Mikeycnp (Talk | contribs) (Created page with "'''Setup the build system''' *Download and install Microsoft Visual C++ 2008 Express [http://go.microsoft.com/fwlink/?LinkId=104679] *Download and install Microsoft Visual C++...")
Setup the build system
- Download and install Microsoft Visual C++ 2008 Express [1]
- Download and install Microsoft Visual C++ 2010 Express [2]
- Download and install Windows SDK v7.1 [3]
- Download an
- Download and install ActivePerl v.5.16.3.1604 (x64) for the Make scripts and/or Perl Net-SNMP modules [4]
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
Common Issues
- "This application ahs failed to start because MSVCR80.dll was not found. Re-installing the applcation may fix this problem."
- This error is related to the MS Visual C++ Redistributable Package. Generally you can remedy this issue by runing vcredist_x86.exe (MS Visual C++ Redistributable Package) on the target system.