summaryrefslogtreecommitdiff
path: root/mint17.html
blob: a1f834139c5671a2bc6ab79422eddf96534ce40a (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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="wayland.css" rel="stylesheet" type="text/css">
<title>Building Weston on Linux Mint 17</title>
</head>

<body>
<h1><a href="index.html"><img src="wayland.png" alt="Wayland logo"></a>
Building Weston on Linux Mint 17</h1>

<p>The following sequence of commands successfully built Weston and
XWayland on a Linux Mint 17.3 Cinnamon system, on March 2, 2016. These
commands will probably work on any system based on Ubuntu 14.04.</p>

<p>This is considerably easier than earlier systems as the distributed
version of Mesa (10.1.3) can be used and it does not need to be compiled.</p>

<pre>
apt install git autoconf automake libtool

<span class="comment"># setup environment for local install:</span>
export WLD=$HOME/install
export LD_LIBRARY_PATH=$WLD/lib
export PKG_CONFIG_PATH=$WLD/lib/pkgconfig/:$WLD/share/pkgconfig/
export PATH=$WLD/bin:$PATH
export ACLOCAL_PATH=$WLD/share/aclocal
export ACLOCAL="aclocal -I $ACLOCAL_PATH"
mkdir -p $ACLOCAL_PATH
export MAKEFLAGS="j9" <span class="comment"># or use your own flags</span>

<span class="comment"># libwayland:</span>

apt install libffi-dev libexpat-dev libxml2-dev
apt install doxygen xmlto <span class="comment"># or use --disable-documentation</span>

git clone git://anongit.freedesktop.org/wayland/wayland
cd wayland
./autogen.sh --prefix=$WLD
make &amp;&amp; make install
cd ..

<span class="comment"># wayland-protocols:</span>

git clone git://anongit.freedesktop.org/wayland/wayland-protocols
cd wayland-protocols
./autogen.sh --prefix=$WLD
make &amp;&amp; make install
cd ..

<span class="comment"># libinput:</span>

apt install libmtdev-dev libudev-dev libevdev-dev

<span class="comment"># newer version of libwacom is needed than in apt</span>
apt install libgudev-1.0-dev
git clone git://git.code.sf.net/p/linuxwacom/libwacom
cd libwacom
make &amp;&amp; make install
cd ..

git clone git://anongit.freedesktop.org/wayland/libinput
cd libinput
./autogen.sh --prefix=$WLD
make &amp;&amp; make install
cd ..

<span class="comment"># weston:</span>

apt install libegl1-mesa-dev libgles2-mesa-dev libxcursor-dev libcairo2-dev \
  libxcb-composite0-dev libgbm-dev libxkbcommon-dev libjpeg8-dev \
  libpam0g-dev

git clone git://anongit.freedesktop.org/wayland/weston
cd weston
./autogen.sh --prefix=$WLD --disable-setuid-install
make &amp;&amp; make install
cd ..

<span class="comment"># X Server:</span>

apt install libgl1-mesa-dri-dev libgcrypt11-dev libxkbfile-dev libxfont-dev \
  libepoxy-dev

git clone git://anongit.freedesktop.org/xorg/util/macros
cd macros
./autogen.sh --prefix=$WLD
make &amp;&amp; make install
cd ..

git clone git://anongit.freedesktop.org/xorg/proto/xcmiscproto
cd xcmiscproto
./autogen.sh --prefix=$WLD
make &amp;&amp; make install
cd ..

git clone git://anongit.freedesktop.org/xorg/lib/libxtrans
cd libxtrans
./autogen.sh --prefix=$WLD
make &amp;&amp; make install
cd ..

git clone git://anongit.freedesktop.org/xorg/proto/bigreqsproto
cd bigreqsproto
./autogen.sh --prefix=$WLD
make &amp;&amp; make install
cd ..

git clone git://anongit.freedesktop.org/xorg/proto/xproto
cd xproto
./autogen.sh --prefix=$WLD
make &amp;&amp; make install
cd ..

git clone git://anongit.freedesktop.org/xorg/proto/randrproto
cd randrproto
./autogen.sh --prefix=$WLD
make &amp;&amp; make install
cd ..

git clone git://anongit.freedesktop.org/xorg/proto/fontsproto
cd fontsproto
./autogen.sh --prefix=$WLD
make &amp;&amp; make install
cd ..

git clone git://anongit.freedesktop.org/xorg/proto/videoproto
cd videoproto
./autogen.sh --prefix=$WLD
make &amp;&amp; make install
cd ..

git clone git://anongit.freedesktop.org/xorg/proto/compositeproto
cd compositeproto
./autogen.sh --prefix=$WLD
make &amp;&amp; make install
cd ..

git clone git://anongit.freedesktop.org/xorg/proto/recordproto
cd recordproto
./autogen.sh --prefix=$WLD
make &amp;&amp; make install
cd ..

git clone git://anongit.freedesktop.org/xorg/proto/scrnsaverproto
cd scrnsaverproto
./autogen.sh --prefix=$WLD
make &amp;&amp; make install
cd ..

git clone git://anongit.freedesktop.org/xorg/proto/resourceproto
cd resourceproto
./autogen.sh --prefix=$WLD
make &amp;&amp; make install
cd ..

git clone git://anongit.freedesktop.org/xorg/proto/xf86driproto
cd xf86driproto
./autogen.sh --prefix=$WLD
make &amp;&amp; make install
cd ..

git clone git://anongit.freedesktop.org/xorg/proto/presentproto
cd presentproto
./autogen.sh --prefix=$WLD
make &amp;&amp; make install
cd ..

git clone git://anongit.freedesktop.org/xorg/proto/xineramaproto
cd xineramaproto
./autogen.sh --prefix=$WLD
make &amp;&amp; make install
cd ..

git clone git://anongit.freedesktop.org/xorg/xserver
cd xserver
./autogen.sh --prefix=$WLD --disable-docs --disable-devel-docs \
  --enable-xwayland --disable-xorg --disable-xvfb --disable-xnest \
  --disable-xquartz --disable-xwin
make &amp;&amp; make install
cd ..

<span class="comment"># Links needed so XWayland works:</span>
mkdir -p $WLD/share/X11/xkb/rules
ln -s /usr/share/X11/xkb/rules/evdev $WLD/share/X11/xkb/rules/
ln -s /usr/bin/xkbcomp $WLD/bin/

<span class="comment"># Weston configuration:</span>
mkdir -p ~/.config
cp weston/weston.ini ~/.config
nano ~/.config/weston.ini <span class="comment"># edit to set background and turn on xwayland.so module</span>

<span class="comment"># Run it in an X11 window:</span>
weston
</pre>

</body>
</html>