-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathREADME.Windows
140 lines (93 loc) · 3.45 KB
/
README.Windows
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
======= Window users =========
I. What you need.
--- REQURED ---
a) cmake
http://www.cmake.org/
http://www.cmake.org/HTML/Download.html
b) C++ compiler supported by cmake
c) maven
http://maven.apache.org/
d) Boost C++ Libraries
http://www.boost.org/
e) Xerces C++ Parser
http://xerces.apache.org/xerces-c/
--- not required but recommended ---
f) log4cxx (it is required for debuging)
http://logging.apache.org/log4cxx/index.html
--- not required ---
g) gmp, gmpxx
http://swox.com/gmp/
h) libxml2
http://xmlsoft.org/
i) CppUnit - C++ port of JUnit - (required for testing)
http://cppunit.sourceforge.net/
II. How to build and install.
1. with nmake
run:
nmbootstrap.bat
nmake
nmake test
nmake install
2. with MS Visual Studio C++
run:
vsbootstrap.bat
It should generate a Visual Studio project file:
build/xmlbeansxx.sln
run the build/xmlbeansxx.sln
Build the ALL_BUILD target.
Build the RUN_TESTS target.
Build the INSTALL target.
III. Library files.
It is useful to make, a UNIX style directory tree.
You should make a "c:\usr\" directory, and there you should install (copy) all
required libraries.
There should be:
1. for "log4cxx", CMAKE_BUILD_TYPE=DEBUG
c:\usr\include\log4cxx\logger.h - and other headers
c:\usr\lib\log4cxxd.lib
c:\usr\lib\log4cxxd.dll
for "log4cxx", CMAKE_BUILD_TYPE=Release
c:\usr\include\log4cxx\logger.h - and other headers
c:\usr\lib\log4cxx.lib
c:\usr\lib\log4cxx.dll
2. for "gmp" and "gmpxx", CMAKE_BUILD_TYPE=DEBUG
c:\usr\include\gmpxx.h
c:\usr\include\gmp.h
c:\usr\lib\gmpd.lib
c:\usr\lib\gmpd.dll
c:\usr\lib\gmpxxd.lib
for "gmp" and "gmpxx", CMAKE_BUILD_TYPE=Release
c:\usr\include\gmpxx.h
c:\usr\include\gmp.h
c:\usr\lib\gmp.lib
c:\usr\lib\gmp.dll
c:\usr\lib\gmpxx.lib
3. for "xerces", CMAKE_BUILD_TYPE=DEBUG
c:\usr\include\xerces\util\PlatformUtils.hpp
c:\usr\include\xerces\* - other xerces headers
c:\usr\lib\xerces-c_3D.lib
for "xerces", CMAKE_BUILD_TYPE=Release
c:\usr\include\xerces\util\PlatformUtils.hpp
c:\usr\include\xerces\* - other xerces headers
c:\usr\lib\xerces-c_3.lib
if you have a different version of "xerces", change lines 3 and 5
"set(LIB_SUF ???)" in the file FindXerces.cmake
4. for "boost", CMAKE_BUILD_TYPE=DEBUG
c:\usr\include\boost\config.hpp
c:\usr\include\boost\* - other boost headers
c:\usr\lib\boost_*.lib - boost libraries with "mt-gd-{version}" suffix
for "boost", CMAKE_BUILD_TYPE=Release
c:\usr\include\boost\config.hpp
c:\usr\include\boost\* - other boost headers
c:\usr\lib\boost_*.lib - boost libraries with "mt-{version}" suffix
As you can see for the CMAKE_BUILD_TYPE=DEBUG mode the library files
are ending with an "d" letter. (excluding "boost")
You should compile the libraries i "Debug" mode then install them and
rename the names adding the "d" letter.
IV. Disabling log4cxx library.
To disable log4cxx library add -DWITHOUT_LOG4CXX=1 attribute to cmake in
nmbootstrap.bat or vsboostrap.bat
V. precision of xsd:decimal numbers.
To increase the precision of decimal numbers use:
xmlbeansxx::TextUtils::setPrecision(int precision);
if you use gmpxx the precision can by very large.