1Rules for building LDAP 2----------------------- 3 4Note 1: During the entire build process, you can ignore warnings about 5 inconsistent DLL linkage. 6 7 8- Open LDAP under php_build. Rename this directory to 'OpenLDAP'. 9- Rename OpenLDAP\include\portable.h.nt to OpenLDAP\include\portable.h 10- Rename OpenLDAP\include\ldapconfig.h.nt to OpenLDAP\include\ldapconfig.h 11- Launch Visual Studio with OpenLDAP\libraries\libldap\libldap.dsw 12- Enter Project->Settings. 13 Select the C/C++ tab, and select 'Code Generation' in the Category box. 14 For 'Win32 Debug', change the runtime library to 'Debug Multithreaded DLL' 15 For 'Win32 Release', change the runtime library to 'Multithreaded DLL' 16 Select the Preprocessor tab, select 'All Configurations'. 17 Add '..\..\..\..\php5\regex' to the 'Additional include directories' list. 18 Add 'HAVE_MKTEMP' to the 'Preprocessor definitions' list. 19- Compile (you can compile both Debug and Release versions). 20 21 22- Launch Visual Studio with OpenLDAP\libraries\liblber\liblber.dsw 23- Enter Project->Settings. 24 Select the C/C++ tab, and select 'Code Generation' in the Category box. 25 For 'Win32 Debug', change the runtime library to 'Debug Multithreaded DLL' 26 For 'Win32 Release', change the runtime library to 'Multithreaded DLL' 27 Select the Preprocessor tab, select 'All Configurations'. 28 Add 'HAVE_MKTEMP' to the 'Preprocessor definitions' list. 29- Compile (you can compile both Debug and Release versions). 30 31 32Start Visual Studio, load php_modules.dsw, select the LDAP project, and build 33it. 34