forked from vslavik/xmlwrapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
66 lines (42 loc) · 1.96 KB
/
Copy pathREADME
File metadata and controls
66 lines (42 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
0. Introduction
---------------
xmlwrapp is a modern style C++ library for working with XML data, built atop
the venerable libxml2 C library.
Additional resources, bug reports, latest sources etc. can be found on the
project page at http://vslavik.github.io/xmlwrapp/
Packages tarballs can be downloaded from the same location or from
https://github.com/vslavik/xmlwrapp/releases
If you need help or want to discuss xmlwrapp, feel free to join the discussion
group hosted at http://groups.google.com/group/xmlwrapp or email directly to
xmlwrapp@googlegroups.com.
1. Requirements
---------------
In order to build xmlwrapp, you need libxml2 version 2.4.28 or newer. When
building with XSLT support, libxslt 1.1.6 or newer is required. Both libraries
are available from http://xmlsoft.org.
Header-only Boost Pool library is also required for building xmlwrapp.
To run tests, Boost.Iostreams and Boost.Test libraries are also needed.
2. Building on Unix
-------------------
On Unix, the usual Autotools-based build system is used. Building xmlwrapp is
usually as simple as running the following three commands:
./configure
make
make install
See the output of `./configure --help` for additional settings and options.
Use `--disable-tests` option to skip running tests and avoid the need for
installing Boost.Iostreams and Test libraries.
3. Building on Windows
----------------------
At this time, only building with Visual C++ compiler is supported. The required
project files are located in platform/Win32 directory. You will need libxml
and libxslt libraries built for Windows, e.g. the binaries from
http://www.zlatkovic.com/libxml.en.html.
4. Using xmlwrapp
-----------------
On Unix, you should use pkg-config to get compiler flags for xmlwrapp or
xsltwrapp libraries:
c++ -c `pkg-config --cflags xmlwrapp` ...
c++ -o ... `pkg-config --libs xmlwrapp`
On Windows, you need to link against xmlwrapp libraries and add the include/
directory to compiler's headers search path.