INSTALL.win32 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. Building neon on Windows uses a single Nmake neon.mak file. By
  2. placing various parameters on nmake's command line, you can specify
  3. exactly the features and behavior of the Neon libraries. The
  4. parameters are additive, so to add more features, add the command line
  5. options specified in the particular section below.
  6. All the builds described below should work with Microsoft VC++ 5 and
  7. 6.
  8. Build neon
  9. __________
  10. This is the most basic version of the Neon library you can build. It
  11. does not require any third party libraries, but you do not get the
  12. full capabilities of Neon.
  13. Compile Neon with no parameters
  14. nmake /f neon.mak
  15. After compiling the library, the directory contains libneon.lib,
  16. against which you can link your program.
  17. Build neon with WebDAV support
  18. ______________________________
  19. To compile Neon with WebDAV support, Neon must compile and link
  20. against a third-party XML parser, either expat, expat-lite, libxml or
  21. libxml2. This Windows neon.mak file is designed to compile and link
  22. against the pre-built Expat Windows libraries version 1.95.X or newer.
  23. This library is available for download from
  24. http://sourceforge.net/projects/expat/
  25. Download the latest expat_win32bin package named
  26. expat_win32bin_X_YY_Z.exe
  27. and install it on your system. It wants to install itself into
  28. Q:\some\dir\Expat-X.Y.ZZ. Choose your installation location for expat
  29. and then compile Neon with
  30. nmake /f neon.mak EXPAT_SRC=\path\to\Expat-X.YY.Z
  31. NOTE: When you run your program make sure the LIBEXPAT.DLL from expat
  32. is accessible, i.e. is in your PATH.
  33. This should work with Microsoft VC++ 5 and 6.
  34. Build neon with dynamically linked SSL support
  35. ______________________________________________
  36. To build neon on Windows with SSL support you need OpenSSL already
  37. installed on your system (I used OpenSSL 0.9.7g). It can be
  38. downloaded from
  39. http://www.openssl.org/source/openssl-0.9.7g.tar.gz
  40. After compiling OpenSSL, now simply point make to the OpenSSL sources:
  41. nmake /f neon.mak OPENSSL_SRC=\path\to\openssl
  42. NOTE: The include files for OpenSSL reside in inc32/ directory
  43. ("../openssl-0.9.7g/inc32").
  44. NOTE: Make sure that your program is linked against libeay32.lib and
  45. ssleay32.lib (normally in "../openssl-0.9.7g/out32dll") and that
  46. libeay32.dll and ssleay32.dll is accessible, i.e. is in your PATH.
  47. Build neon with statically linked OpenSSL support
  48. _________________________________________________
  49. If you want to statically link against OpenSSL, then add the
  50. OPENSSL_STATIC parameter.
  51. nmake /f neon.mak OPENSSL_SRC=\path\to\openssl OPENSSL_STATIC=yes
  52. Build neon with statically linked Zlib support
  53. ______________________________________________
  54. If you want to build Neon with the capability to decompress compressed
  55. content, then you need to compile against the Zlib library.
  56. Neon's neon.mak file will compile and link the Zlib sources. You need
  57. Zlib 1.2.1 or later, as previous versions do not include build scripts
  58. for Win32.
  59. Here's how to compile in Zlib support.
  60. 1) Get one of the Zlib source file packages in Zip format from
  61. http://www.gzip.org/zlib/; for example,
  62. http://www.gzip.org/zlib/zlib121.zip
  63. 2) Unzip it.
  64. Now add the ZLIB_SRC parameter to Neon's neon.mak pointing to your
  65. newly compiled zlib.
  66. nmake /f neon.mak ZLIB_SRC=\path\to\zlib
  67. Build neon with dynamically linked Zlib support
  68. _______________________________________________
  69. To build Neon with dynamically linked Zlib support, use the
  70. instructions for the statically linked Zlib support above and add the
  71. ZLIB_DLL parameter
  72. nmake /f neon.mak ZLIB_SRC=\path\to\zlib ZLIB_DLL=yes
  73. Build neon with IPv6 support
  74. ____________________________
  75. To build neon with support for IPv6, use parameter ENABLE_IPV6.
  76. nmake /f neon.mak ENABLE_IPV6=yes
  77. This requires a copy of the Platform SDK which contains the IPv6
  78. headers and libraries.
  79. Build neon with debugging support
  80. _________________________________
  81. Set the DEBUG_BUILD parameter
  82. nmake /f neon.mak DEBUG_BUILD=yes
  83. It does not matter what value DEBUG_BUILD is set to, as long as it is
  84. not set to "".
  85. After compiling the library, the directory contains libneonD.lib,
  86. against which you can link your program.