Merge lp:~ceejatec/zorba/build-doc into lp:zorba
- build-doc
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Chris Hillery |
Approved revision: | 10468 |
Merged at revision: | 10469 |
Proposed branch: | lp:~ceejatec/zorba/build-doc |
Merge into: | lp:zorba |
Diff against target: |
538 lines (+242/-218) 3 files modified
doc/zorba/build.dox (+19/-213) doc/zorba/build_noncore.dox (+218/-0) doc/zorba/installation.dox (+5/-5) |
To merge this branch: | bzr merge lp:~ceejatec/zorba/build-doc |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Cezar Andrei | Approve | ||
Review via email: mp+76713@code.launchpad.net |
Commit message
Adding more clear (if still brief) documentation about building Zorba with non-core modules.
Description of the change
Zorba Build Bot (zorba-buildbot) wrote : | # |
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue job build-doc-
All tests succeeded!
Zorba Build Bot (zorba-buildbot) wrote : | # |
Voting does not meet specified criteria. Required: Approve > 0, Disapprove < 1. Got: 1 Pending.
Chris Hillery (ceejatec) wrote : | # |
This is a link to the main build.html. See my changes here:
1. Added mention of including non-core modules in build as step 2 of primary Zorba build instructions.
2. Added new page build_noncore.html which includes instructions for invoking DownloadModules and other details of building noncore modules
3. Moved all non-core module specific information (such as building C-Client, Jansson, all that) onto build_noncore.html page.
4. Slight touchups to installation page (still a mess - I filed bug 857263 about that and more)
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for merge proposal.
Log at: http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue job build-doc-
All tests succeeded!
Preview Diff
1 | === modified file 'doc/zorba/build.dox' |
2 | --- doc/zorba/build.dox 2011-09-08 21:01:52 +0000 |
3 | +++ doc/zorba/build.dox 2011-09-23 11:00:30 +0000 |
4 | @@ -1,38 +1,4 @@ |
5 | -/** \page build Build Instructions |
6 | - |
7 | - <ul> |
8 | - <li> Table of Contents |
9 | - <ul> |
10 | - <li> \ref requirements |
11 | - <ul> |
12 | - <li> \ref buildsystem |
13 | - <li> \ref compilers |
14 | - <li> \ref required_libs |
15 | - <li> \ref buildingzorba |
16 | - </ul> |
17 | - <li> \ref buildcclient |
18 | - <ul> |
19 | - <li> \ref cclientunix |
20 | - <li> \ref cclientwindows |
21 | - </ul> |
22 | - <li> \ref buildjansson |
23 | - <ul> |
24 | - <li> \ref janssonunix |
25 | - <li> \ref janssonwindows |
26 | - </ul> |
27 | - <li> \ref buildimagemagick |
28 | - <ul> |
29 | - <li> \ref imagemagickunix |
30 | - <li> \ref imagemagickwindows |
31 | - </ul> |
32 | - <li> \ref windows |
33 | - <ul> |
34 | - <li> \ref nmake |
35 | - <li> \ref visualstudio |
36 | - <li> \ref https_support |
37 | - </ul> |
38 | - </ul> |
39 | - </ul> |
40 | +/** \page build Zorba Build Instructions |
41 | |
42 | \section requirements Requirements |
43 | |
44 | @@ -45,7 +11,7 @@ |
45 | \subsection compilers Compilers |
46 | Zorba is tested with the following compilers: |
47 | - GNU Compiler: GCC 3.4.x (32-bit & 64-bit) and GCC 4.x.x |
48 | -- Microsoft Compiler: MS VC++ 2008, and MS VC++ 2010 |
49 | +- Microsoft Compiler: MS VC++ 2008, and MS VC++ 2010 (including Express) |
50 | |
51 | \subsection required_libs Required Libraries |
52 | In order to build Zorba, you need the following libraries and development headers: |
53 | @@ -100,39 +66,16 @@ |
54 | - PHP (http://www.php.net/downloads.php) |
55 | - Python (http://www.python.org/download/) |
56 | |
57 | -\subsubsection required_non_core_modules Required for Non-Core Modules |
58 | -Zorba provides a huge variety of <a href="../../../html/modules.html">XQuery modules</a>. |
59 | -For most of the (external) modules, you need additional libraries. |
60 | -All such modules are not build if the library (and development headers) they require are not available. |
61 | -In the following, please find a list of required libraries. |
62 | - |
63 | -- data-converters (JSon, CSV, HTML) |
64 | - - Tidy (http://tidy.sourceforge.net) |
65 | - - Jansson (http://www.digip.org/jansson/) |
66 | -- data-formatting (XSL-FO) |
67 | - - Java (http://java.sun.com/javase/downloads/index.jsp) |
68 | - - Apache FOP (http://xmlgraphics.apache.org/fop/download.html) |
69 | |
70 | - - IMAP CClient (http://www.washington.edu/imap/) |
71 | -- geo |
72 | - - GEOS version 3.2.2 or later (http://trac.osgeo.org/geos/) |
73 | -- EXPath http-client |
74 | - - CURL 7.12 or later (http://curl.haxx.se/) |
75 | -- image |
76 | - - ImageMagick (http://www.imagemagick.org) |
77 | -- languages (XSLT) |
78 | - - LibXslt version 1.1.24 or later (http://xmlsoft.org/XSLT/) |
79 | - |
80 | -Please note that some of these modules depend on other modules. |
81 | -For example, the EXPath http-client module depends on Zorba's http-client module and the tidy data-converter. |
82 | -Please see our <a href="../../zorba/xqdoc/xhtml/images/modules.svg">module-interdependency graph</a> for details. |
83 | |
84 | -\subsection buildingzorba Building Zorba |
85 | +\section buildingzorba Building Zorba |
86 | -# Install the Zorba source distribution (see \ref installation). |
87 | The directory in which the Zorba sources are installed |
88 | is referred to as \c [ZORBA] in the following. |
89 | --# Change the working directory into \c [ZORBA]. |
90 | --# The recommended way to build Zorba is by creating an |
91 | +-# If desired, also install or download the source for any non-core modules |
92 | + that you would like to build along with Zorba, and ensure that you have |
93 | + any libraries required by those modules available. See \ref build_noncore |
94 | + for more details. |
95 | +-# Zorba requires an |
96 | <a href="http://www.cmake.org/Wiki/CMake_FAQ#What_is_an_.22out-of-source.22_build.3F" target="_blank">out-of-source build</a>. |
97 | We suggest to create the directory \c [ZORBA]/build |
98 | and refer to this directory as \c [ZORBABUILD] in the following. |
99 | @@ -141,18 +84,21 @@ |
100 | <tt>cmake [ZORBA]</tt>. |
101 | In case the \c [ZORBABUILD] |
102 | is located directly within the \c [ZORBA] directory, |
103 | - just type <tt>cmake ..</tt> . |
104 | + you can just type <tt>cmake ..</tt> . |
105 | This command should configure Zorba and prepare for the build. |
106 | CMake will tell you if your installation is missing |
107 | some of the required libraries or development headers. |
108 | -# If CMake executed successfully, |
109 | - you should be able to run \c make. |
110 | - Running make will take some time. |
111 | - If \c make finishes successfully, |
112 | + you should be able to build the project. For Makefile-based builds, |
113 | + just type \c make (or \c make -j2 to do a parallel build on a multi-core |
114 | + machine). For IDE-based builds, open the project created in the previous |
115 | + step and build the \c ALL target. |
116 | + The build will take some time. |
117 | + If it finishes successfully, |
118 | you're ready to install and run Zorba |
119 | (see \ref installation). |
120 | |
121 | -\subsubsection buildoptions Build Options |
122 | +\subsection buildoptions Build Options |
123 | |
124 | - CMake is a meta build system, |
125 | meaning that it is able to generate native makefiles |
126 | @@ -173,147 +119,8 @@ |
127 | - Zorba has other options as well. |
128 | You can tweak the performance and library footprint |
129 | by enabling or disabling various features from Zorba. |
130 | - Details here \ref options_and_annotations . |
131 | - |
132 | -\section buildcclient Building IMAP CClient |
133 | - |
134 | -Zorba provides email support using the CClient library part of the <a href="http://www.washington.edu/imap/" target="_blank">UW IMAP toolkit</a>. |
135 | - |
136 | -\subsection cclientunix Unix/Linux/Mac OS X |
137 | -Notes: |
138 | -- There are some known issues with the CClient packages |
139 | - that come with diffrent Linux distributions. |
140 | -- On x32 bit OpenSuse and also on x64 bit Ubuntu, |
141 | - we noticed that the CClient shared library is broken |
142 | - (undefined symbol: mm_dlog). |
143 | -- Due to that fact that Mark Crispin |
144 | - (the creator of CClient library) |
145 | - does not support CClient as a shared library but only as a static library |
146 | - (see <a href="http://www.washington.edu/imap/IMAP-FAQs/index.html#6.3" target="_blank">FAQs shared library</a>), |
147 | - we strongly suggest you want to get the |
148 | - <a href="http://www.washington.edu/imap/" target="_blank">UW IMAP toolkit</a> |
149 | - and compile it yourself. |
150 | -- On Linux 64-bit, |
151 | - you might discover a problem with the optional package cclient. |
152 | - E.g. on Ubuntu 64-bit, you might discover the following: |
153 | - \code |
154 | -Linking CXX shared library libsmtp.so |
155 | -/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libc-client.a(osdep.o): relocation R_X86_64_32 against |
156 | - `server_input_wait' can not be used when making a shared object; recompile with -fPIC |
157 | -/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libc-client.a: could not read symbols: Bad value |
158 | - \endcode |
159 | - To fix this, |
160 | - you need to compile CClient yourself. |
161 | - The commands to compile CClient correctly are: |
162 | - \code |
163 | -cd <some_directory> |
164 | -wget ftp://ftp.cac.washington.edu/imap/imap-2007e.tar.gz |
165 | -tar -xf imap-2007e.tar.gz |
166 | -cd imap-2007e |
167 | -make slx EXTRACFLAGS="-I/usr/include/openssl -fPIC" |
168 | - \endcode |
169 | - |
170 | -- Also please keep in mind that if SSL/TLS authentication is required |
171 | - by the SMTP server, |
172 | - then you first need to install |
173 | - <a href="http://www.openssl.org/" target="_blank">OpenSSL</a> |
174 | - and configure CClient to use it. |
175 | -- Make sure the name of the library is prefixed by \c lib |
176 | - and suffixed with \c .a |
177 | - (for example \c libc-client.a on Linux/Unix |
178 | - or \c libc-client4.a on Mac OS X). |
179 | - |
180 | -Use the following extra CMake arguments when building Zorba: |
181 | -\verbatim |
182 | --D "CCLIENT_INCLUDE=path_to_imap-2007e\c-client" |
183 | --D CCLIENT_LIBRARY=path_to_imap-2007e\c-client\libc-client.a" |
184 | -\endverbatim |
185 | - |
186 | -Here are some quick suggestions to build CClient on Linux: |
187 | -- x32-bit Linux: <tt>make lnp</tt> |
188 | -- x64-bit Linux: <tt>make lnp EXTRACFLAGS="-I/usr/include/openssl -fPIC" EXTRAAUTHENTICATORS=gss</tt> in order to build with SSL and Kerberos support.<br /></ul> |
189 | - |
190 | -For more detailed build instructions, |
191 | -please see the |
192 | -<a href="http://www.washington.edu/imap/documentation" target="_blank">UW IMAP toolkit "Server Documentation"</a> |
193 | -and the <a href="http://www.washington.edu/imap/IMAP-FAQs/index.html" target="_blank">UW IMAP FAQs</a>. |
194 | - |
195 | -\subsection cclientwindows Windows |
196 | - |
197 | -You must build the |
198 | -<a href="http://www.washington.edu/imap/" target="_blank">UW IMAP toolkit</a>. |
199 | - |
200 | -Use the following extra CMake arguments when building Zorba: |
201 | -\code |
202 | --D "CCLIENT_INCLUDE=path_to_imap-2007e\c-client" |
203 | --D "CCLIENT_LIBRARY=path_to_imap-2007e\c-client\release\cclient.lib" |
204 | -\endcode |
205 | - |
206 | -\section buildjansson Building Jansson |
207 | - |
208 | -Zorba provides Json manipulation support |
209 | -using the Jansson Library (http://www.digip.org/jansson/). |
210 | - |
211 | -\subsection janssonunix Unix/Linux/Mac OS X |
212 | - |
213 | -For Linux/Unix systems, |
214 | -download the Jansson library from http://www.digip.org/jansson/releases/. |
215 | -Then follow the instructions from |
216 | -http://www.digip.org/jansson/doc/2.0/gettingstarted.html#compiling-and-installing-jansson. |
217 | - |
218 | -The source use GNU Autotools |
219 | -(autoconf, automake, libtool), |
220 | -so compiling and installing is extremely simple: |
221 | -\code |
222 | -./configure |
223 | -make |
224 | -make check |
225 | -make install |
226 | -\endcode |
227 | - |
228 | -On Fedora starting with version 12, Jansson is also available as a package, |
229 | -so (as root) you can simply run: |
230 | -\code |
231 | -yum install -y jansson-devel |
232 | -\endcode |
233 | - |
234 | -Ubuntu packages are available from PPA of |
235 | -https://launchpad.net/~petri/+archive/ppa |
236 | - |
237 | -\subsection janssonwindows Windows |
238 | - |
239 | -For Windows please follow these steps: |
240 | -- download Jansson from https://github.com/akheron/jansson/zipball/master |
241 | -- rename src/jansson_config.h.win32 to src/jansson_config.h |
242 | -- replace \c snprintf with \c _snprintf in \c src/dump.c lines 188 and 202 |
243 | - and \c load.c lines 96 and 108 |
244 | -- replace \c json_strtoint with \c strtol in \c load.c line 481 |
245 | -- add all headers and source files in src folder and create a static library |
246 | - |
247 | -There will be a new Jansson 2.0.1 release |
248 | -that will include the fixed described above. |
249 | - |
250 | -\section buildimagemagick Building ImageMagick |
251 | - |
252 | -Zorba provides image manipulation support |
253 | -using the ImageMagick Library (http://www.imagemagick.org). |
254 | - |
255 | -\subsection imagemagickunix Unix/Linux/Mac OS X |
256 | - |
257 | -For Linux/Unix systems, |
258 | -just use the package manager to install the |
259 | -magick++, magickwand, magickcore packages |
260 | -including the developer versions of these packages |
261 | -(that inlcude the header files). |
262 | - |
263 | -On OSX, use macports to install imagemagick. |
264 | - |
265 | -\subsection imagemagickwindows Windows |
266 | - |
267 | -For Windows, |
268 | -just download the ImageMagick windows binary (Q8-windows-dll) and install it. |
269 | - |
270 | -\section mac Note for Mac OS X Users |
271 | + |
272 | +\section mac Notes for Mac OS X Users |
273 | |
274 | The easiest way to install the required packages (like CMake or Xerces-C) is |
275 | to use Macports (http://macports.org/). |
276 | @@ -353,9 +160,8 @@ |
277 | indicated in the \ref required section): |
278 | - Libxml2 and Iconv: http://www.zlatkovic.com/libxml.en.html |
279 | - CURL: http://curl.haxx.se/download.html |
280 | - - Tidy: http://dev.int64.org/tidy.html |
281 | - Libxslt: http://www.zlatkovic.com/pub/libxml/ |
282 | - - IMAP CClient: http://www.washington.edu/imap/ |
283 | + |
284 | - Zorba has in place an automatic DLL detection mechanism. |
285 | This will try to automatically gather all the DLLs |
286 | from the third party librbaries |
287 | |
288 | === added file 'doc/zorba/build_noncore.dox' |
289 | --- doc/zorba/build_noncore.dox 1970-01-01 00:00:00 +0000 |
290 | +++ doc/zorba/build_noncore.dox 2011-09-23 11:00:30 +0000 |
291 | @@ -0,0 +1,218 @@ |
292 | +/** \page build_noncore Building Non-core Zorba Modules |
293 | + |
294 | +\section noncore_download Downloading source code for non-core modules |
295 | + |
296 | +Currently, the Zorba team does not provide source downloads for the |
297 | +non-core modules. However, there is a simple CMake script inside Zorba |
298 | +which will allow you to check out these modules from source control |
299 | +easily. Note that this requires having the Subversion utility available |
300 | +on your system. |
301 | + |
302 | +From your [ZORBA] directory, type |
303 | +\code |
304 | + cmake -Doutdir=../zorba_modules -Dmodname=NAME -P modules/DownloadModules.cmake |
305 | +\endcode |
306 | + |
307 | +to download the particular module package NAME (see \ref |
308 | +non_core_modules for a complete list of module packages and their |
309 | +contents), or |
310 | + |
311 | +\code |
312 | + cmake -Doutdir=../zorba_modules -Dallmodules=1 -P modules/DownloadModules.cmake |
313 | +\endcode |
314 | + |
315 | +to download all the modules. (On Windows, you will need to use backslashes instead of forward slashes in the above paths.) |
316 | + |
317 | +This will place the downloaded module source code in the directory |
318 | +\c ../zorba_modules, which is where the Zorba build will look for them by |
319 | +default. If you wish to download them to some other location, you may do |
320 | +so; in that case, when you configure the Zorba build with CMake, provide |
321 | +the \c -DZORBA_MODULES_DIR=/full/path/to/modules argument. |
322 | + |
323 | +\subsection noncore_dependencies Dependencies among Non-core Modules |
324 | + |
325 | +Please note that some of these modules depend on other modules. Most |
326 | +notably, the EXPath http-client module (in the \c http-client module |
327 | +package) depends on the \c tidy module, which is in the \c data-converters module package. So, if you download the \c http-client package, you must also download the \c data-converters package (and ensure that libtidy is installed, as mentioned below). |
328 | + |
329 | +Please see our <a |
330 | +href="../../zorba/xqdoc/xhtml/images/modules.svg">module-interdependency |
331 | +graph</a> for details. |
332 | + |
333 | + |
334 | +\section noncore_requirements Non-core Module Requirements |
335 | +For many of the non-core modules, you need additional libraries. |
336 | +All such modules are not built if the library (and development headers) they require are not available. |
337 | +Here is a list of the libraries required by the current non-core modules packages: |
338 | + |
339 | +- data-converters (JSon, CSV, HTML) |
340 | + - Tidy (http://tidy.sourceforge.net) |
341 | + - Jansson (http://www.digip.org/jansson/) |
342 | +- data-formatting (XSL-FO) |
343 | + - Java (http://java.sun.com/javase/downloads/index.jsp) |
344 | + - Apache FOP (http://xmlgraphics.apache.org/fop/download.html) |
345 | |
346 | + - IMAP CClient (http://www.washington.edu/imap/) |
347 | +- geo |
348 | + - GEOS version 3.2.2 or later (http://trac.osgeo.org/geos/) |
349 | +- EXPath http-client |
350 | + - CURL 7.12 or later (http://curl.haxx.se/) |
351 | +- image |
352 | + - ImageMagick (http://www.imagemagick.org) |
353 | +- languages (XSLT) |
354 | + - LibXslt version 1.1.24 or later (http://xmlsoft.org/XSLT/) |
355 | + |
356 | + |
357 | +In many cases you can find binary packages for these dependencies, which |
358 | +will be the quickest and easiest way to meet the requirements. We have |
359 | +provided links or instructions for downloading binary packages for these |
360 | +libraries below, along with some instructions that we have found when |
361 | +building these libraries from source. |
362 | + |
363 | + |
364 | +\subsection buildcclient Building IMAP CClient |
365 | + |
366 | +Zorba provides email support using the CClient library part of the <a href="http://www.washington.edu/imap/" target="_blank">UW IMAP toolkit</a>. |
367 | + |
368 | +\subsubsection cclientunix Unix/Linux/Mac OS X |
369 | +Notes: |
370 | +- There are some known issues with the CClient packages |
371 | + that come with diffrent Linux distributions. |
372 | +- On x32 bit OpenSuse and also on x64 bit Ubuntu, |
373 | + we noticed that the CClient shared library is broken |
374 | + (undefined symbol: mm_dlog). |
375 | +- Due to that fact that Mark Crispin |
376 | + (the creator of CClient library) |
377 | + does not support CClient as a shared library but only as a static library |
378 | + (see <a href="http://www.washington.edu/imap/IMAP-FAQs/index.html#6.3" target="_blank">FAQs shared library</a>), |
379 | + we strongly suggest you want to get the |
380 | + <a href="http://www.washington.edu/imap/" target="_blank">UW IMAP toolkit</a> |
381 | + and compile it yourself. |
382 | +- On Linux 64-bit, |
383 | + you might discover a problem with the optional package cclient. |
384 | + E.g. on Ubuntu 64-bit, you might discover the following: |
385 | + \code |
386 | +Linking CXX shared library libsmtp.so |
387 | +/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libc-client.a(osdep.o): relocation R_X86_64_32 against |
388 | + `server_input_wait' can not be used when making a shared object; recompile with -fPIC |
389 | +/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libc-client.a: could not read symbols: Bad value |
390 | + \endcode |
391 | + To fix this, |
392 | + you need to compile CClient yourself. |
393 | + The commands to compile CClient correctly are: |
394 | + \code |
395 | +cd <some_directory> |
396 | +wget ftp://ftp.cac.washington.edu/imap/imap-2007e.tar.gz |
397 | +tar -xf imap-2007e.tar.gz |
398 | +cd imap-2007e |
399 | +make slx EXTRACFLAGS="-I/usr/include/openssl -fPIC" |
400 | + \endcode |
401 | + |
402 | +- Also please keep in mind that if SSL/TLS authentication is required |
403 | + by the SMTP server, |
404 | + then you first need to install |
405 | + <a href="http://www.openssl.org/" target="_blank">OpenSSL</a> |
406 | + and configure CClient to use it. |
407 | +- Make sure the name of the library is prefixed by \c lib |
408 | + and suffixed with \c .a |
409 | + (for example \c libc-client.a on Linux/Unix |
410 | + or \c libc-client4.a on Mac OS X). |
411 | + |
412 | +Use the following extra CMake arguments when building Zorba: |
413 | +\verbatim |
414 | +-D "CCLIENT_INCLUDE=path_to_imap-2007e\c-client" |
415 | +-D CCLIENT_LIBRARY=path_to_imap-2007e\c-client\libc-client.a" |
416 | +\endverbatim |
417 | + |
418 | +Here are some quick suggestions to build CClient on Linux: |
419 | +- x32-bit Linux: <tt>make lnp</tt> |
420 | +- x64-bit Linux: <tt>make lnp EXTRACFLAGS="-I/usr/include/openssl -fPIC" EXTRAAUTHENTICATORS=gss</tt> in order to build with SSL and Kerberos support.<br /></ul> |
421 | + |
422 | +For more detailed build instructions, |
423 | +please see the |
424 | +<a href="http://www.washington.edu/imap/documentation" target="_blank">UW IMAP toolkit "Server Documentation"</a> |
425 | +and the <a href="http://www.washington.edu/imap/IMAP-FAQs/index.html" target="_blank">UW IMAP FAQs</a>. |
426 | + |
427 | +\subsubsection cclientwindows Windows |
428 | + |
429 | +You must build the |
430 | +<a href="http://www.washington.edu/imap/" target="_blank">UW IMAP toolkit</a>. |
431 | + |
432 | +Use the following extra CMake arguments when building Zorba: |
433 | +\code |
434 | +-D "CCLIENT_INCLUDE=path_to_imap-2007e\c-client" |
435 | +-D "CCLIENT_LIBRARY=path_to_imap-2007e\c-client\release\cclient.lib" |
436 | +\endcode |
437 | + |
438 | +\subsection buildjansson Building Jansson |
439 | + |
440 | +Zorba provides Json manipulation support |
441 | +using the Jansson Library (http://www.digip.org/jansson/). |
442 | + |
443 | +\subsubsection janssonunix Unix/Linux/Mac OS X |
444 | + |
445 | +For Linux/Unix systems, |
446 | +download the Jansson library from http://www.digip.org/jansson/releases/. |
447 | +Then follow the instructions from |
448 | +http://www.digip.org/jansson/doc/2.0/gettingstarted.html#compiling-and-installing-jansson. |
449 | + |
450 | +The source use GNU Autotools |
451 | +(autoconf, automake, libtool), |
452 | +so compiling and installing is extremely simple: |
453 | +\code |
454 | +./configure |
455 | +make |
456 | +make check |
457 | +make install |
458 | +\endcode |
459 | + |
460 | +On Fedora starting with version 12, Jansson is also available as a package, |
461 | +so (as root) you can simply run: |
462 | +\code |
463 | +yum install -y jansson-devel |
464 | +\endcode |
465 | + |
466 | +Ubuntu packages are available from PPA of |
467 | +https://launchpad.net/~petri/+archive/ppa |
468 | + |
469 | +\subsubsection janssonwindows Windows |
470 | + |
471 | +For Windows please follow these steps: |
472 | +- download Jansson from https://github.com/akheron/jansson/zipball/master |
473 | +- rename src/jansson_config.h.win32 to src/jansson_config.h |
474 | +- replace \c snprintf with \c _snprintf in \c src/dump.c lines 188 and 202 |
475 | + and \c load.c lines 96 and 108 |
476 | +- replace \c json_strtoint with \c strtol in \c load.c line 481 |
477 | +- add all headers and source files in src folder and create a static library |
478 | + |
479 | +There will be a new Jansson 2.0.1 release |
480 | +that will include the fixed described above. |
481 | + |
482 | +\subsection buildimagemagick Building ImageMagick |
483 | + |
484 | +Zorba provides image manipulation support |
485 | +using the ImageMagick Library (http://www.imagemagick.org). |
486 | + |
487 | +\subsubsection imagemagickunix Unix/Linux/Mac OS X |
488 | + |
489 | +For Linux/Unix systems, |
490 | +just use the package manager to install the |
491 | +magick++, magickwand, magickcore packages |
492 | +including the developer versions of these packages |
493 | +(that inlcude the header files). |
494 | + |
495 | +On OSX, use macports to install imagemagick. |
496 | + |
497 | +\subsubsection imagemagickwindows Windows |
498 | + |
499 | +For Windows, |
500 | +just download the ImageMagick windows binary (Q8-windows-dll) and install it. |
501 | + |
502 | +\subsection buildtidy Libtidy |
503 | + |
504 | +\subsubsection buildtidywindows Windows |
505 | + |
506 | +A binary installer for Tidy is available at: http://dev.int64.org/tidy.html |
507 | + |
508 | + |
509 | +*/ |
510 | |
511 | === modified file 'doc/zorba/installation.dox' |
512 | --- doc/zorba/installation.dox 2011-07-28 14:07:29 +0000 |
513 | +++ doc/zorba/installation.dox 2011-09-23 11:00:30 +0000 |
514 | @@ -10,9 +10,9 @@ |
515 | in your current working directory. |
516 | |
517 | To build Zorba, |
518 | -please follow the build instructions (see \ref build). |
519 | +please follow the build instructions (see \ref buildingzorba). |
520 | |
521 | -\subsection BinaryInstallation Installing the Binary Distribution |
522 | +\subsection Installing Installing |
523 | |
524 | Once you have successfully built Zorba using the "Unix Makefile" generator |
525 | (see \ref SourceInstallation), |
526 | @@ -27,10 +27,10 @@ |
527 | For example, |
528 | in order to install Zorba in <tt>/opt</tt> |
529 | use <tt>cmake -D CMAKE_INSTALL_PREFIX=/opt </tt><em>zorba source directory</em>. |
530 | +(Note that while CMake-generated Makefiles support the \c DESTDIR variable, |
531 | +this will NOT work with Zorba as certain installation paths are hard-coded |
532 | +in the binary files.) |
533 | |
534 | -However, |
535 | -CMake generated makefiles also support the make \c DESTDIR variable |
536 | -(see the <a href="http://www.cmake.org/Wiki/CMake_FAQ#Does_CMake.27s_.22make_install.22_support_DESTDIR.3F" target="_blank">CMAKE FAQ</a>). |
537 | There is also a <tt>make uninstall</tt> command available |
538 | (also to be called from the build directory). |
539 |
Validation queue starting for merge proposal. zorbatest. lambda. nu:8080/ remotequeue/ build-doc- 2011-09- 23T11-03- 05.402Z/ log.html
Log at: http://