IMAP_Win32_HOWTO.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. Rules for building IMAP
  2. -----------------------
  3. Note 1: You *must* use NT's cmd.exe for this job; 4NT.exe will NOT work properly.
  4. Note 2: During the entire build process, you can ignore warnings about
  5. inconsistent DLL linkage.
  6. - Open IMAP under php_build. Rename this directory to 'IMAP'.
  7. - Change to the IMAP directory.
  8. - Edit .\src\osdep\nt\makefile.nt:
  9. Search for '/MT', and change it to '/MD'. If you're compiling in DEBUG mode,
  10. use '/MDd' instead.
  11. Search for 'ERASE'. Comment out the line that contains the ERASE command.
  12. - Run 'nmake nt'
  13. ---Begin Win2K only---
  14. - At some point, the build will fail. Rerun 'nmake nt'.
  15. - After a while, the build will fail again, failing to find auths.c.
  16. - Change directory to 'c-client'
  17. - Create an a file named auths.c, that includes the following line:
  18. #include "auth_md5.c"
  19. - Run 'nmake -f makefile.nt'
  20. ---End Win2K only---
  21. At this point (even if the last build apparently failed), you should have the
  22. client library ready (cclient.lib).
  23. Start Visual Studio, load php_modules.dsw, select the IMAP projects, and build
  24. it.