-
Notifications
You must be signed in to change notification settings - Fork 6
/
README.macosx
57 lines (42 loc) · 1.73 KB
/
README.macosx
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
GNUnet on Mac OS X
==================
GNUnet has two installation methods on Mac OS X: it can be installed
as a Mac OS X framework or with the standard `./configure; make; make install'
shell commands. The framework depends on Extractor (libextractor) framework.
Installing and uninstalling the framework
=========================================
The binary framework is distributed as a disk image (GNUnet-x.x.xx.dmg).
Installation is done by opening the disk image and clicking GNUnet.pkg
inside it. The Mac OS X installer application will then run. The framework
is installed to the root volume's /Library/Frameworks folder and installing
will require admin privileges.
The framework can be uninstalled by dragging
/Library/Frameworks/GNUnet.framework to Trash.
(TODO: config files and other stuff)
Using the framework
===================
In the framework, the command line tools can be found in the folder
/Library/Frameworks/GNUnet.framework/Versions/Current/bin/
The framework can be used in software projects as a framework or as a dynamic
library.
>>> hello.c
#include <GNUnet/gnunet_util.h>
int main()
{
GNUNET_init(...);
...
}
Framework usage:
gcc -o hello hello.c -framework GNUnet
Note that all the gnunet client libraries get linked in with the framework.
Dynamic library usage:
gcc -I/Library/Frameworks/GNUnet.framework/Versions/Current/include \
-o hello hello.c \
-L/Library/Frameworks/GNUnet.framework/Versions/Current/lib \
-lgnunet_util
When using the framework as a dynamic library in projects using autotools,
one would most likely want to add
"-I/Library/Frameworks/GNUnet.framework/Versions/Current/include"
to CPPFLAGS and
"-L/Library/Frameworks/GNUnet.framework/Versions/Current/lib"
to LDFLAGS.