-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL
126 lines (95 loc) · 4.07 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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
How to build and install PicoGUI
=================================
PicoGUI 0.x is one huge and complex collection of code and data. For
many reasons, it is nontrivial to build all the pieces. This document
is a guide on the order of steps you should take.
This is the easy way. Of course there are infinite variations on the
theme; to begin with, you may want to install it somewhere other than
/usr/local (the default). But if you want/need to do that, we expect
you to know how to adapt the instructions below.
The instructions below are for releases. If you want to build
straight from svn, for directories with autoconf, you will first need
to run the 'autogen.sh' script, to generate 'configure'.
Directory structure notes
::::::::::::::::::::::::::
Some directories have subdivisions named 'working', 'dev' and 'test' -
notably, themes and apps. In these cases, usually all you want is in
the 'working' directory. Things in 'dev' are not yet functional, and
things in 'test' are for testing PicoGUI or one of its components, or
coding examples.
Things that must be done in order
::::::::::::::::::::::::::::::::::
1. pgserver
------------
Even if you don't intend to run pgserver (a client-only machine, like,
say, a PicoGUI application server?), you still need to build and
install it first. This is because some headers shared between the
server and the C client library are stored in the server source tree
and installed when the server is installed.
To build and install pgserver, go into the 'server' directory. It is
an almost-standard automake/autoconf setup, except that you need to
run menuconfig. This is the routine:
% cd server
% mkdir build
% cd build
% ../configure
% make menuconfig
% make
% make install
2. client/c
------------
Next, you need the C client library. It's in the directory
'client/c'. Building it is the standard autoconf routine:
% cd client/c
% mkdir build
% cd build
% ../configure
% make
% make install
You probably need to install the C library even if you don't think you
will use it, because it's needed to build other parts. For example,
if you plan to build a theme, you need themec, which needs the C
library.
3. tools
---------
Now you need the theme compiler (themec), which is in the the
directory 'tools'. It's standard autoconf. You need themec to build
the themes and the apps.
Things that are optional and have no particular order
::::::::::::::::::::::::::::::::::::::::::::::::::::::
Themes
-------
It is highly recommended that you install at least one theme. PicoGUI
has no concept of a "default theme" like, for example, GTK+ and Qt
do. Instead, themeless PicoGUI is an ugly black-on-white undecorated
mess. To build a single theme, just cd to its directory and do
something like:
% cd themes/working/photonic
% themec photonic.ths
Then copy or move the resulting binary theme file (in this case,
photonic.th) to somewhere of your preference - I personally use
/usr/local/share/picogui/themes. You will need to inform the location
of this directory to pgserver when you run it; read
server/README.configfile and look for themedir option.
To build and install all working themes, you can do:
% cd themes/working
% bash build.sh /usr/local/share/picogui/themes
Of course, you can inform some other directory to build.sh instead of
/usr/local/share/picogui/themes.
Python client library
----------------------
To install the Python client library:
% cd client/python
% python setup.py install --prefix=/usr/local
Alternatively, if you're constantly making changes to the library
itself, you can just symlink the PicoGUI directory in client/python to
somewhere in your Python path (/usr/local/lib/python2.3/sites-packages
for example).
Apps
-----
The 'apps' subdirectory is another standard autoconf setup. By
default, it will only build and install the 'working' apps, unless you
pass the option '--enable-non-working' to configure.
The first time you run 'make', it will fail, complaining about a
missing file. If you run 'make' again, it will work. This is a known
buglet which we expect to fix in the near future.