INSTALL.win32.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
  4. </head>
  5. <title>Wt Installation</title>
  6. <body>
  7. <h1>Wt Installation instructions for Windows</h1>
  8. This page lists the instructions for building and installing Wt on Windows.
  9. It is organized in 3 sections:
  10. <ul>
  11. <li>Requirements</li>
  12. <li>Building and installing the library</li>
  13. <li>Trying the examples (or your own Wt application)</li>
  14. </ul>
  15. <h2>Requirements</h2>
  16. <p>
  17. Wt for Windows uses the built-in web server connector or the ISAPI connector.
  18. The fastcgi connector is not supported. The built-in web server is more
  19. convenient during development and is easier to setup than the ISAPI connector.
  20. To use the built-in server, you have to link your projects against libwt
  21. and libwthttp. To use the ISAPI connector, you have to link to libwtisapi
  22. instead of libwthttp.</p>
  23. <p>Requirements:
  24. <ul>
  25. <li>Microsoft Visual Studio C++ 2005 or newer. Wt and its dependencies also
  26. build on the Express Edition, which is free (as in beer) to use.
  27. <li>CMake cross-platform build system (www.cmake.org): cmake-2.6.x,
  28. Windows version (2.8 or newer recommended).</li>
  29. <li>Boost 1.46.1 (or later; a recent version is recommended)</li>
  30. </ul>
  31. </p>
  32. <p>Additional and optional requirements for some of the examples
  33. <ul>
  34. <li>For https support: OpenSSL, version 0.9.8d or newer.</li>
  35. <li>To compress traffic: zlib 1.2.3</li>
  36. <li>Postgres, mysql, firebird client libraries for Dbo database backends</li>
  37. <li><a href="http://libharu.org/">Haru Free PDF Library</a>, which is used to
  38. provide support for rendering PDF (WPdfImage, WPdfRenderer).</li>
  39. <li><a href="http://www.graphicsmagick.org/">GraphicsMagick</a>, for
  40. supporting painting to raster images (PNG, GIF, ...) (WRasterImage).</li>
  41. </ul>
  42. </p>
  43. <p>
  44. We stronly recommend to use libraries which are all built using the same
  45. compiler and the same runtime configuration (/MT, /MD, /MTd
  46. or /MDd) to avoid incompatibilities with the C runtime libraries. Mixing
  47. CRTs is NOT recommended, the <a href="http://www.zlib.net/DLL_FAQ.txt">zlib
  48. DLL FAQ</a> clearly explains why and what you should do about it (in
  49. short: use prebuilt libraries for the exact same compiler as you use, and
  50. if those are not available, rebuild the dependency libraries from the sources).
  51. </p>
  52. <hr />
  53. <h2>Step by step instructions to build and install the Wt library</h2>
  54. Up to date instructions are located on the Wt wiki page:
  55. <a href="http://redmine.emweb.be/projects/wt/wiki/Installing_Wt_on_MS_Windows">Installing Wt on MS Windows</a>
  56. Instructions on how to use the ISAPI connector for deployment under IIS are
  57. also available on the wiki page:
  58. <a href="http://redmine.emweb.be/projects/wt/wiki/ISAPI_on_Microsoft_IIS">ISAPI on Microsoft IIS</a>
  59. <h2>Trying the examples (or your own Wt application) using wthttpd</h3>
  60. <h4>1. Run the example in the MSVC IDE </h4>
  61. Right-click on the example project you want to run, and select 'Properties'.
  62. In Configuration Properties->Debugging, set the Command Arguments to
  63. <pre>
  64. --http-address=0.0.0.0 --http-port=8080 --deploy-path=/hello --docroot=.
  65. </pre>
  66. <p>
  67. This will start a httpd server listening on all local interfaces, on
  68. port 8080, and you may browse the example at <a
  69. href="http://127.0.0.1:8080/hello">http://127.0.0.1:8080/hello</a></p>
  70. <p>
  71. Examples that need extra files to run, should be executed from their source
  72. directory in order to find their dependency files (icons, css files, etc.
  73. Watch for 404 errors in Wt's output). To do so, set the 'Working directory'
  74. for the example to wt-x.y.z/examples/ExampleName. Some examples (e.g. the
  75. wt home page) need the 'resources' directory to work correctly. Copy
  76. the wt-2.x.x/resources to the example's source directory to solve this
  77. problem. Other examples (such as the Charts example) may require the
  78. installation of ExtJs. See the Wt reference manual for more information
  79. on how to obtain and install ExtJs.
  80. <p>
  81. These are all the command-line options that are available (run the examples
  82. with --help to see the most recent list of available options):
  83. <pre>
  84. General options:
  85. -h [ --help ] produce help message
  86. -t [ --threads ] arg (=10) number of threads
  87. --docroot arg document root for static files
  88. --no-compression do not compress dynamic text/html and text/plain
  89. responses
  90. --deploy-path arg (=/) location for deployment
  91. HTTP server options:
  92. --http-address arg IPv4 (e.g. 0.0.0.0) or IPv6 Address (e.g. 0::0)
  93. --http-port arg (=80) HTTP port (e.g. 80)
  94. HTTPS server options:
  95. --https-address arg IPv4 (e.g. 0.0.0.0) or IPv6 Address (e.g. 0::0)
  96. --https-port arg (=443) HTTPS port (e.g. 443)
  97. --ssl-certificate arg SSL server certificate chain file
  98. e.g. "/etc/ssl/certs/vsign1.pem"
  99. --ssl-private-key arg SSL server private key file
  100. e.g. "/etc/ssl/private/company.pem"
  101. --ssl-tmp-dh arg File for temporary Diffie-Hellman parameters
  102. e.g. "/etc/ssl/dh512.pem"
  103. </pre>
  104. </p>
  105. </body>
  106. </html>