====== net-smnp Windows, How to compile ======
===== Building net-snmp 5.4.1 =====
==== Requirements =====
* Our Net-snmp Sources ([[https://github.com/winlibs/net-snmp]])
* Net-snmp Sources ([[http://www.net-snmp.org]])
* Native Perl from ActiveState ([[http://www.activestate.com/Products/activeperl/]]) installed and perl being in your PATH
* Common tools used to compile PHP
==== Configure =====
Configure for Win32
SET INCLUDE=c:\User\Pierre\Document\php-sdk\vc9\x86\deps\include;%INCLUDE%
SET LIB=c:\User\Pierre\Document\php-sdk\vc9\x86\deps\lib;%LIB%
SET MSVCDir=%VSINSTALLDIR%
Configure script (menu based):
cd C:\phpbuild\libs\netsnmp-5.4.1\
win32\build.bat
Configure manually:
cd C:\phpbuild\libs\netsnmp-5.4.1\win32
perl Configure --with-ssl --linktype=static --prefix=c:\usr --config=release --with-ipv6 --with-sdk
==== Compiling ====
Only the libraries are necessary (actually only netsmnp.lib):
nmake libs
==== Install ====
Install the libs and the development files (header and libs):
nmake install
nmake install_devel