blob: 8d1df2088bc0e5ffa2e2913bf85f349e9caa5d0d (
plain)
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
|
# Installing librsync {#page_install}
## Requirements
To build librsync you will need:
* A C compiler and appropriate headers and libraries
* Make
* [popt] command line parsing library
* CMake (http://cmake.org/)
* Doxygen (optional to build docs) (https://www.stack.nl/~dimitri/doxygen)
[popt]: http://rpm5.org/files/popt/
## Building
Generate the Makefile by running
$ cmake .
After building you can install `rdiff` and `librsync` for system-wide use.
$ make
To run the tests:
$ make test
(Note that [CMake will not automatically build before testing](https://github.com/librsync/librsync/issues/49).)
To install:
$ sudo make install
To build the documentation:
$ make doc
librsync should be widely portable. Patches to fix portability bugs are
welcome.
If you are using GNU libc, you might like to use
MALLOC_CHECK_=2 ./rdiff
to detect some allocation bugs.
librsync has annotations for the SPLINT static checking tool.
## Cygwin
With Cygwin you can build using gcc as under a normal unix system. It
is also possible to compile under Cygwin using MSVC++. You must have
environment variables needed by MSVC set using the Vcvars32.bat
script.
|