-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathINSTALL
57 lines (34 loc) · 1.41 KB
/
INSTALL
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
To compile and install this library and the header files do the following procedure:
cd build
cmake ..
make
sudo make install
To use the library include the following file in your source file:
#include <service-discovery/afAvahiFramework.h>
To compile your program include the following libraries with pkg-config
service-discovery sigc++-2.0 avahi-client
For example
g++ -o test test.cpp `pkg-config --cflags --libs service-discovery sigc++-2.0 avahi-client`
How to patch and buid avahi:
1. Clone the avahi-git-repository with
git clone git://git.0pointer.de/avahi.git
and change to the avahi-folder.
2. Check out the tagged official release point 0.6.25 with
git checkout v0.6.25
3. Apply the patches with
git apply avahi_custom_ttl_patch_avahiver_0_6_25.patch
git apply avahi_loopback_patch_avahiver_0_6_25.patch
4. Run 'autogen.sh'.
5. Configure with
./configure --disable-manpages --disable-mono
6. Build with './make'
7. Optional: Create the folder 'doc-pak' and copy all
docs/README/INSTALL/etc. to that folder.
8. Install with 'checkinstall'.
Note:
checkinstall can be installed via 'apt-get checkinstall'.
As a preparation you will be asked for a deb-description and -name
and you can change general informations.
Afterwards checkinstall will create a debian packet which will be
used for installation.
This allows a simple removal with 'dpkg -r avahi' if needed.