Advertisement
xsbr

HOW-TO: Compiling Zabbix Agent on Windows

Sep 8th, 2011
1,365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. =====================================================
  2. HOW-TO: Compiling Zabbix Agent on Windows v20110908
  3. by Ricardo Santos - rsantos at gmail
  4. =====================================================
  5.  
  6. Tested with Zabbix 1.8.6 on Windows 2008 R2 Datacenter 64bits
  7.  
  8. Requirements
  9.  
  10. * Windows SDK for Windows 7 http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=3138
  11. * Visual Studio 2010 Express http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express
  12. * Zabbix Source http://www.zabbix.com/download.php
  13. * 7-Zip http://www.7-zip.org/download.html
  14.  
  15. --- Compiling for 32bits (x86)
  16.  
  17. > "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
  18. > cd "C:\Users\Administrator\Downloads\zabbix-1.8.6\build\win32\project"
  19. > copy ..\include\config.h ..\..\..\include\
  20. > nmake Makefile_agent
  21.  
  22. edit "resource.rc" file and replace "afxres.h" with "windows.h"
  23.  
  24. > nmake Makefile_agent (run again)
  25.  
  26. All binaries should be in "C:\Users\Administrator\Downloads\zabbix-1.8.6\bin\win32"
  27.  
  28. --- Compiling for 64bits (x64)
  29.  
  30. > "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat"
  31. > cd "C:\Users\Administrator\Downloads\zabbix-1.8.6\build\win32\project"
  32. > copy ..\include\config.h ..\..\..\include\
  33. > nmake Makefile_agent_x64
  34.  
  35. edit "resource.rc" file and replace "afxres.h" with "windows.h"
  36.  
  37. > nmake Makefile_agent_x64 (run again)
  38.  
  39. All binaries should be in "C:\Users\Administrator\Downloads\zabbix-1.8.6\bin\win64"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement