-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmotionplus_build.html
239 lines (227 loc) · 10.5 KB
/
motionplus_build.html
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<link href="motionplus.png" rel="icon" type="image/png">
<title>MotionPlus</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="motionplus_stylesheet.css" media="screen">
<script>
function fnc_topnav() {
var x = document.getElementById("id_topnav");
if (x.className === "topnav") {
x.className += " responsive";
} else {
x.className = "topnav";
}
}
function fnc_subnav() {
var x = document.getElementById("id_subnav");
if (x.className === "subnav") {
x.className += " responsive";
} else {
x.className = "subnav";
}
}
</script>
</head>
<body>
<div class="topnav" id="id_topnav">
<img class="logoimg" src="motionplus.gif">
<a class="topnav-d" href="https://motion-project.github.io/motion_support.html">Support</a>
<a class="topnav-d" href="https://motion-project.github.io/motion_news.html" >News</a>
<a class="topnav-d" href="https://motion-project.github.io/motion_guide.html" >Documentation</a>
<a class="topnav-d" href="https://motion-project.github.io/motion_download.html">Download</a>
<a class="topnav-d" href="https://motion-project.github.io/index.html">Home</a>
<a class="topnav-m" href="https://motion-project.github.io/index.html">Home</a>
<a class="topnav-m" href="https://motion-project.github.io/motion_download.html">Download</a>
<a class="topnav-m" href="https://motion-project.github.io/motion_guide.html" >Documentation</a>
<a class="topnav-m" href="https://motion-project.github.io/motion_news.html" >News</a>
<a class="topnav-m" href="https://motion-project.github.io/motion_support.html">Support</a>
<a href="javascript:void(0);" class="icon" onclick="fnc_topnav()">☰</a>
</div>
<section class="page-header">
<h1>
Installing and Building from Source
</h1>
</section>
<div class="subnav" id="id_subnav">
<div class="dropdown">
<button class="dropbtn">Abbreviated Building</button>
<div class="dropdown-content">
<a href="#Install_Deb"> Install from a deb package</a>
<a href="#Build_Deb"> Building a deb package</a>
<a href="#Building"> Abbreviated Building Guide</a>
</div>
</div>
<div class="dropdown">
<button class="dropbtn">Configure/Make Options</button>
<div class="dropdown-content">
<a href="#Configure_Script"> Configure Script Options </a>
<a href="#Make_Options"> Make Options </a>
</div>
</div>
<a href="javascript:void(0);" class="icon" onclick="fnc_subnav()">menu⇓   </a>
</div>
<section class="main-content" style="padding:0.5em 0.1em;height:1000px;font-size: 0.90em;">
<h3><a name="Install_Deb"></a> Installing with a release deb package </h3>
<ul>
MotionPlus can also be installed from the release deb files. Download the appropriate
deb from the <a href="https://github.com/Motion-Project/motionplus/releases">Releases</a> page
and install using <code><strong>dpkg</strong></code>
or <code><strong>gdebi-core</strong></code>.
</ul>
<h3><a name="Build_Deb"></a> Building a deb package </h3>
<ul>
A script has also been written to allow users to create their own deb package
from either a tagged release or the most current master branch of the code. Download the
script by using the following
command. <code><strong>wget https://raw.githubusercontent.com/Motion-Project/motion-packaging/master/buildplus.sh </strong></code>
<p></p>
Review the script and specify the following few optional parameters.
<code><strong> Username, EmailAddress, branch, install, arch</strong></code>. If
the parameters are not provided, the script will create defaults.
<p></p>
<p></p>
Once the script has been run and the deb file is created, install it as described above.
<p></p>
</ul>
<h3><a name="Building"></a> Building Guide </a> </h3>
<ul>
<p></p>
<p></p>
<p></p>
Debian based distros
<ul>
<code><strong>sudo apt install autoconf automake autopoint build-essential pkgconf libtool libzip-dev
libjpeg-dev git libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavdevice-dev libopencv-dev
libwebp-dev gettext libmicrohttpd-dev libmariadb-dev libcamera-dev libcamera-tools libcamera-v4l2
libasound2-dev libpulse-dev libfftw3-dev </strong></code>
<p></p>
Note: PostgreSQL or Sqlite3 database may also be added
via <code><strong>sudo apt install libpq-dev libsqlite3-dev</strong></code>. If
no database is running on the system, some functionality of Motionplus will not be available.
<p></p>
Once packages are installed, run the following to build Motionplus
<p></p>
<code><strong>cd ~</strong></code>
<br /><code><strong>git clone https://github.com/Motion-Project/motionplus.git</strong></code>
<br /><code><strong>cd motionplus</strong></code>
<br /><code><strong>autoreconf -fiv</strong></code>
<br /><code><strong>./configure</strong></code>
<br /><code><strong>make</strong></code>
<br /><code><strong>make install</strong></code>
<p></p>
</ul>
<p></p>
</ul>
<h3><a name="Configure_Script"></a> Additional Configure Options</a> </h3>
<ul>
<p></p>
<p></p>
The following custom configure options can be specified for MotionPlus.
<div class="tblconfig">
<table border="1" class="fixed" >
<colgroup>
<col width="200px">
<col width="500px">
<col width="700px">
</colgroup>
<tbody>
<tr>
<td bgcolor="#edf4f9" word-wrap:break-word > Options</td>
<td bgcolor="#edf4f9" word-wrap:break-word > Description </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Editors comment </td>
</tr>
<tr>
<td bgcolor="#edf4f9" word-wrap:break-word > --without-v4l2 </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Exclude v4l2 </td>
<td bgcolor="#edf4f9" word-wrap:break-word > </td>
</tr>
<tr>
<td bgcolor="#edf4f9" word-wrap:break-word > --without-webp </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Compile without webp image support</td>
<td bgcolor="#edf4f9" word-wrap:break-word > </td>
</tr>
<tr>
<td bgcolor="#edf4f9" word-wrap:break-word > --with-libcam=DIR </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf dir for libcam</td>
<td bgcolor="#edf4f9" word-wrap:break-word > Use --without-libcam to disable </td>
</tr>
<tr>
<td bgcolor="#edf4f9" word-wrap:break-word > --with-ffmpeg=DIR </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf dir for ffmpeg.</td>
<td bgcolor="#edf4f9" word-wrap:break-word > ffmpeg is required </td>
</tr>
<tr>
<td bgcolor="#edf4f9" word-wrap:break-word > --with-opencv=DIR </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf dir for opencv.</td>
<td bgcolor="#edf4f9" word-wrap:break-word > Use --without-opencv to disable </td>
</tr>
<tr>
<td bgcolor="#edf4f9" word-wrap:break-word > --with-mariadb=DIR </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf DIR for MariaDB </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Use --without-mariadb to disable </td>
</tr>
<tr>
<td bgcolor="#edf4f9" word-wrap:break-word > --with-mysql=DIR </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf dir for mysql </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Use --without-mysql to disable </td>
</tr>
<tr>
<td bgcolor="#edf4f9" word-wrap:break-word > --with-pgsql=DIR </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf DIR for PostgreSQL </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Use --without-pgsql to disable</td>
</tr>
<tr>
<td bgcolor="#edf4f9" word-wrap:break-word > --with-sqlite3=DIR </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf DIR for sqlite3. </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Use --without-sqlite3 to disable </td>
</tr>
<tr>
<td bgcolor="#edf4f9" word-wrap:break-word > --with-pulse=DIR </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf DIR for PulseAudio. </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Use --without-pulse to disable </td>
</tr>
<tr>
<td bgcolor="#edf4f9" word-wrap:break-word > --with-alsa=DIR </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf DIR for alsa. </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Use --without-alsa to disable </td>
</tr>
<tr>
<td bgcolor="#edf4f9" word-wrap:break-word > --with-fftw3=DIR </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf DIR for fftw3. </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Use --without-fftw3 to disable </td>
</tr>
<tr>
<td bgcolor="#edf4f9" word-wrap:break-word > --with-developer-flags </td>
<td bgcolor="#edf4f9" word-wrap:break-word > Add additional warning flags for the compiler. </td>
<td bgcolor="#edf4f9" word-wrap:break-word > </td>
</tr>
</tbody>
</table>
</div>
<p></p>
<p></p>
</ul>
<h3><a name="Make_Options"></a> Additional Make Options </h3>
<ul>
<p></p>
<dl>
<dt> <strong>make cleanall</strong> </dt>
<dd>
This command creates a pristine directory without any of the files generated from
the <code><strong>autoreconf</strong></code> command.
</dd>
</dl>
<p></p>
<p></p>
<dl>
<dt> <strong>make maintainer-check</strong> </dt>
<dd> Executes multiple configure and make using the developer flags for various combinations of the options.</dd>
</dl>
<p></p>
<p></p>
</ul>
</section>
</body>