Skip to content

Commit d8d4ecc

Browse files
committed
Several changes:
- Merges from master: - Discard form object that fails to encode properly - Make sure unrender comes before setHtml Fixes an issue where changing the template text could cause an error when there's a WTextEdit in it. - GraphicsMagick: define NOMINMAX on windows - IE doesn't support startsWith; use indexOf - Wt 4 specific: - Seperate -> separate - Added missing parentheses to extensionless headers - Fixed benchmark.cpp includes, environ, compile problems - Updated installation instructions - Fixed example compile issues on Windows
1 parent 0ef504d commit d8d4ecc

File tree

333 files changed

+972
-804
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

333 files changed

+972
-804
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,7 @@ IF(NOT BOOST_WT_FOUND)
392392
"are not defined). When set to true, method 2 is used.\n"
393393
"Note 2: the code to discover boost is located in cmake/WtFindBoost.txt\n"
394394
"Note 3: on windows, set BOOST_PREFIX to the full path, eg "
395-
"c:/Program Files/boost/boost_1_38\n\n"
396-
"Wt requires the following C++ boost libraries: program_options and random")
395+
"c:/Program Files/boost/boost_1_65_1")
397396
MESSAGE(FATAL_ERROR ${ERR})
398397
ENDIF(NOT BOOST_WT_FOUND)
399398

INSTALL

Lines changed: 237 additions & 166 deletions
Large diffs are not rendered by default.

INSTALL.html

Lines changed: 251 additions & 191 deletions
Large diffs are not rendered by default.

INSTALL.win32.html

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,31 @@ <h2>Requirements</h2>
2626
and libwthttp. To use the ISAPI connector, you have to link to libwtisapi
2727
instead of libwthttp.</p>
2828

29+
<p>The prebuilt binaries for Visual Studio include all necessary and optional dependencies,
30+
and enable all features of Wt and can be downloaded from the
31+
<a href="https://github.com/emweb/wt/releases">releases page on GitHub</a>.</p>
32+
2933
<p>Requirements:
3034
<ul>
31-
<li>Microsoft Visual Studio C++ 2005 or newer. Wt and its dependencies also
32-
build on the Express Edition, which is free (as in beer) to use.
33-
<li>CMake cross-platform build system (www.cmake.org): cmake-2.6.x,
34-
Windows version (2.8 or newer recommended).</li>
35+
<li>Microsoft Visual Studio 2015 or newer. Wt and its dependencies also
36+
build on the Community Edition, which is free (as in beer) to use.
37+
<li>CMake cross-platform build system (www.cmake.org): cmake-3.1.x or higher</li>
3538
<li>Boost 1.46.1 (or later; a recent version is recommended)</li>
3639
</ul>
3740
</p>
3841

3942
<p>Additional and optional requirements for some of the examples
4043
<ul>
41-
<li>For https support: OpenSSL, version 0.9.8d or newer.</li>
42-
<li>To compress traffic: zlib 1.2.3</li>
43-
<li>Postgres, mysql, firebird client libraries for Dbo database backends</li>
44+
<li>For HTTPS support: OpenSSL, version 0.9.8d or newer.</li>
45+
<li>To compress traffic: zlib</li>
46+
<li>PostgreSQL, MySQL, Firebird client libraries for Dbo database backends</li>
4447
<li><a href="http://libharu.org/">Haru Free PDF Library</a>, which is used to
4548
provide support for rendering PDF (WPdfImage, WPdfRenderer).</li>
4649
</ul>
4750
</p>
4851

4952
<p>
50-
We stronly recommend to use libraries which are all built using the same
53+
We strongly recommend to use libraries which are all built using the same
5154
compiler and the same runtime configuration (/MT, /MD, /MTd
5255
or /MDd) to avoid incompatibilities with the C runtime libraries. Mixing
5356
CRTs is NOT recommended, the <a href="http://www.zlib.net/DLL_FAQ.txt">zlib
@@ -60,14 +63,18 @@ <h2>Requirements</h2>
6063

6164
<h2>Step by step instructions to build and install the Wt library</h2>
6265

66+
<p>
6367
Up to date instructions are located on the Wt wiki page:
6468
<a href="http://redmine.emweb.be/projects/wt/wiki/Installing_Wt_on_MS_Windows">Installing Wt on MS Windows</a>
69+
</p>
6570

71+
<p>
6672
Instructions on how to use the ISAPI connector for deployment under IIS are
6773
also available on the wiki page:
6874
<a href="http://redmine.emweb.be/projects/wt/wiki/ISAPI_on_Microsoft_IIS">ISAPI on Microsoft IIS</a>
75+
</p>
6976

70-
<h2>Trying the examples (or your own Wt application) using wthttpd</h3>
77+
<h2>Trying the examples (or your own Wt application) using wthttpd</h2>
7178

7279
<h4>1. Run the example in the MSVC IDE </h4>
7380

@@ -83,7 +90,7 @@ <h4>1. Run the example in the MSVC IDE </h4>
8390
href="http://127.0.0.1:8080/hello">http://127.0.0.1:8080/hello</a></p>
8491

8592
<p>
86-
Examples that need extra files to run, should be executed from their source
93+
Examples that need extra files to run should be executed from their source
8794
directory in order to find their dependency files (icons, css files, etc.
8895
Watch for 404 errors in Wt's output). To do so, set the 'Working directory'
8996
for the example to wt-x.y.z/examples/ExampleName. Some examples (e.g. the
@@ -92,6 +99,7 @@ <h4>1. Run the example in the MSVC IDE </h4>
9299
problem. Other examples (such as the Charts example) may require the
93100
installation of ExtJs. See the Wt reference manual for more information
94101
on how to obtain and install ExtJs.
102+
</p>
95103

96104
<p>
97105
These are all the command-line options that are available (run the examples

examples/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@ IF("${CMAKE_CURRENT_LIST_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
4242
find_package(Boost)
4343
find_package(Wt REQUIRED Wt HTTP)
4444

45+
set_target_properties(Wt::Wt PROPERTIES
46+
MAP_IMPORTED_CONFIG_RELEASE MinSizeRel
47+
MAP_IMPORTED_CONFIG_RELWITHDEBINFO MinSizeRel
48+
)
49+
set_target_properties(Wt::HTTP PROPERTIES
50+
MAP_IMPORTED_CONFIG_RELEASE MinSizeRel
51+
MAP_IMPORTED_CONFIG_RELWITHDEBINFO MinSizeRel
52+
)
53+
54+
SET(HAVE_HARU true)
55+
SET(HARU_LIB optimized libhpdf debug libhpdfd)
56+
4557
SET(EXAMPLES_CONNECTOR Wt::HTTP)
4658
SET(EXAMPLES_WT_LIB Wt::Wt)
4759
SET(EXAMPLES_WTDBO_LIB Wt::Dbo)

examples/te-benchmark/benchmark.cpp

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,26 @@
55
#include <vector>
66
#include <algorithm>
77

8-
#include <Wt/WServer>
9-
#include <Wt/WResource>
10-
#include <Wt/Http/Request>
11-
#include <Wt/Http/Response>
12-
#include <Wt/WTemplate>
13-
#include <Wt/Utils>
14-
15-
#include <Wt/Dbo/Dbo>
16-
#include <Wt/Dbo/Json>
8+
#include <Wt/WServer.h>
9+
#include <Wt/WResource.h>
10+
#include <Wt/Http/Request.h>
11+
#include <Wt/Http/Response.h>
12+
#include <Wt/WTemplate.h>
13+
#include <Wt/Utils.h>
14+
15+
#include <Wt/Dbo/Dbo.h>
16+
#include <Wt/Dbo/Json.h>
1717
#ifndef BENCHMARK_USE_POSTGRES
18-
#include <Wt/Dbo/backend/MySQL>
18+
#include <Wt/Dbo/backend/MySQL.h>
1919
#else
20-
#include <Wt/Dbo/backend/Postgres>
20+
#include <Wt/Dbo/backend/Postgres.h>
2121
#endif
2222

23-
#include <boost/random/uniform_int_distribution.hpp>
24-
#include <boost/random/taus88.hpp>
23+
#include <random>
24+
25+
#ifndef WT_WIN32
26+
extern char **environ;
27+
#endif // WT_WIN32
2528

2629
class MyMessage {
2730
public:
@@ -115,8 +118,8 @@ struct DbStruct {
115118
MyConnection *connection;
116119
Wt::Dbo::Session session;
117120

118-
boost::taus88 rng;
119-
boost::random::uniform_int_distribution<int> distribution;
121+
std::default_random_engine rng;
122+
std::uniform_int_distribution<int> distribution;
120123

121124
DbStruct()
122125
: connection(0),

examples/widgetgallery/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ WT_ADD_EXAMPLE(widgetgallery.wt
3939

4040
IF (HAVE_HARU)
4141
INCLUDE_DIRECTORIES(${HARU_INCLUDE_DIRS})
42+
TARGET_LINK_LIBRARIES(widgetgallery.wt ${HARU_LIB})
4243
ENDIF(HAVE_HARU)
4344

4445
#

examples/wtwithqt/lib/WQApplication

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#if defined(__GNUC__) || defined(__clang__)
1212
#warning "The use of header files without .h is deprecated since Wt 4.0.0, please use WQApplication.h instead"
1313
#elif defined(_MSC_VER)
14-
#pragma message("The use of header files without .h is deprecated since Wt 4.0.0, please use WQApplication.h instead"
14+
#pragma message("The use of header files without .h is deprecated since Wt 4.0.0, please use WQApplication.h instead")
1515
#endif
1616
#endif // defined(WT_WARN_HEADER_MISSING_H)
1717
#include "WApplication.h"

src/CMakeLists.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ SET(libsources ${libsources}
400400

401401
IF(HAVE_HARU)
402402
SET(libsources ${libsources} Wt/WPdfImage.C Wt/Render/WPdfRenderer.C)
403-
SET(BOOST_WT_LIBRARIES ${BOOST_WT_LIBRARIES} ${BOOST_FS_LIB})
403+
SET(BOOST_WT_LIBRARIES ${BOOST_WT_LIBRARIES})
404404
ADD_DEFINITIONS(-DHAVE_PDF_IMAGE)
405405
ENDIF(HAVE_HARU)
406406

@@ -530,12 +530,7 @@ ELSE(HAVE_SSL)
530530
ENDIF(HAVE_SSL)
531531

532532
IF(HAVE_HARU)
533-
TARGET_LINK_LIBRARIES(wt
534-
PUBLIC
535-
${HARU_LIB}
536-
PRIVATE
537-
${HARU_SUPPORT_LIBS}
538-
)
533+
TARGET_LINK_LIBRARIES(wt PRIVATE ${HARU_LIBRARIES})
539534
INCLUDE_DIRECTORIES(${HARU_INCLUDE_DIRS})
540535
ELSE(HAVE_HARU)
541536
MESSAGE("** Disabling PDF support (WPdfImage, WPdfRenderer): requires libharu.")

src/Wt/Auth/AbstractPasswordService

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#if defined(__GNUC__) || defined(__clang__)
1212
#warning "The use of header files without .h is deprecated since Wt 4.0.0, please use AbstractPasswordService.h instead"
1313
#elif defined(_MSC_VER)
14-
#pragma message("The use of header files without .h is deprecated since Wt 4.0.0, please use AbstractPasswordService.h instead"
14+
#pragma message("The use of header files without .h is deprecated since Wt 4.0.0, please use AbstractPasswordService.h instead")
1515
#endif
1616
#endif // defined(WT_WARN_HEADER_MISSING_H)
1717
#include "AbstractPasswordService.h"

0 commit comments

Comments
 (0)