-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
84 lines (53 loc) · 1.89 KB
/
README
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
PREREQUISITIES
At this point, ulppk2 must be properly
installed. Just having the development
tree isn't good enough ... the libraries
must be installed by using:
sudo make install
Future versions will provide more
sophisticated configuration so we can
compile the demos from the development
source tree.
BUILDING FOR INSTALLATION w/o debugging
./configure
make
sudo make install
BUILDING FOR DEBUGGING
config4debug is a shell script that wraps the configure script.
It sets CFLAGS to enable gdb debugging and turn off optimization.
(gdb gets weird when optimization is enabled.) If the argument "logging"
is provided, the config4debug script also sets the define
ULPPK_DEBUG so that additional diagnostics are printed.
runconfigure.sh is deprecated.
To enable gdb debugging
./config4debug
make
sudo make install
To enable gdb debugging and logging
./config4debug logging
make
sudo make install
DEBUGGING
cd into the src directory and use libtool to run the debugger.
For example, to debug the demo server:
cd src
libtool --mode=execute gdb demoserver
SYSLOG setup
On Ubuntu-like systems using rsyslog, system logging setups for the demo
server can be set up simply by copying doc/ulppkdemo.conf to
/etc/rsyslog.d and restarting rsyslog
cp ulppkdemo.conf /etc/rsyslog.d
service rsyslog restart
Other configurations/system logger configurations will have to
handled differently. In this case, the contents of doc/ulppkdemo.conf
provide a usable example.
DATA DIRECTORIES
Installation of ulppk2-demo will create directories under
/var/ulppk2-demo for the storage of various files. It will also
copy the settings files to /usr/local/etc
Note that these data directories must either be created by hand
or by the make install target. In either case, root privilege
will be required to create the directories.
INSTALLATION
sudo make install
Note: This will create the data directories mentioned above.