Hi.
This is how to build windows agent 1.6x more in detail.
There might be some different word in visual studio UI because I'm using japanease version and translated it.
###############################################
1.) Install Visual C++ 2008 Express Edition
2.) Install Microsoft Platform SDK to use winsock2.h
If OS is 32bit, use PSDK-x86.exe
3.) After install, edit Binary path, Include path and Library path.
From top window, "tool - option - project - VC++ directory"
- add following path to "Binary path"
C:\Program Files\Microsoft Platform SDK\Bin
C:\Program Files\Microsoft Platform SDK\Bin\winnt
- add following path to "Include path"
C:\Program Files\Microsoft Platform SDK\Include
C:\Program Files\Microsoft Platform SDK\Include\mfc
- add following path to "Library path"
C:\Program Files\Microsoft Platform SDK\Lib
4.) Replace "include/config.h" with "build/win32/include/config.h"
5.) Delete 76 line in comment src/libs/zbxsys/threads.c (because there is some illegal char)
6.) Open "build/win32/project/ZABBIX.sln" from Visual Studio 2008.
7.) Add "advapi32.lib" to "linker - input - dependent file" in each project's property
8.) Select "Release" and "Win32", and build it. Maybe first build will fail at zabbix_get project, but build it again, it will be ok.
*) If you want build in "debug" mode, you have to change "HAVE_LDAP" to "HAVE_WINLDAP_H" in "C/C++ - preprocesser" in each project's property.
###############################################
This is how to build windows agent 1.6x more in detail.
There might be some different word in visual studio UI because I'm using japanease version and translated it.
###############################################
1.) Install Visual C++ 2008 Express Edition
2.) Install Microsoft Platform SDK to use winsock2.h
If OS is 32bit, use PSDK-x86.exe
3.) After install, edit Binary path, Include path and Library path.
From top window, "tool - option - project - VC++ directory"
- add following path to "Binary path"
C:\Program Files\Microsoft Platform SDK\Bin
C:\Program Files\Microsoft Platform SDK\Bin\winnt
- add following path to "Include path"
C:\Program Files\Microsoft Platform SDK\Include
C:\Program Files\Microsoft Platform SDK\Include\mfc
- add following path to "Library path"
C:\Program Files\Microsoft Platform SDK\Lib
4.) Replace "include/config.h" with "build/win32/include/config.h"
5.) Delete 76 line in comment src/libs/zbxsys/threads.c (because there is some illegal char)
6.) Open "build/win32/project/ZABBIX.sln" from Visual Studio 2008.
7.) Add "advapi32.lib" to "linker - input - dependent file" in each project's property
8.) Select "Release" and "Win32", and build it. Maybe first build will fail at zabbix_get project, but build it again, it will be ok.
*) If you want build in "debug" mode, you have to change "HAVE_LDAP" to "HAVE_WINLDAP_H" in "C/C++ - preprocesser" in each project's property.
###############################################
Comment