|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en-us"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <link href="motionplus.png" rel="icon" type="image/png"> |
| 6 | + <title>MotionPlus</title> |
| 7 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 8 | + <link rel="stylesheet" type="text/css" href="motionplus_stylesheet.css" media="screen"> |
| 9 | + <script> |
| 10 | + function fnc_topnav() { |
| 11 | + var x = document.getElementById("id_topnav"); |
| 12 | + if (x.className === "topnav") { |
| 13 | + x.className += " responsive"; |
| 14 | + } else { |
| 15 | + x.className = "topnav"; |
| 16 | + } |
| 17 | + } |
| 18 | + function fnc_subnav() { |
| 19 | + var x = document.getElementById("id_subnav"); |
| 20 | + if (x.className === "subnav") { |
| 21 | + x.className += " responsive"; |
| 22 | + } else { |
| 23 | + x.className = "subnav"; |
| 24 | + } |
| 25 | + } |
| 26 | + </script> |
| 27 | +</head> |
| 28 | +<body> |
| 29 | + <div class="topnav" id="id_topnav"> |
| 30 | + <img class="logoimg" src="motionplus.gif"> |
| 31 | + |
| 32 | + <a class="topnav-d" href="https://motion-project.github.io/motion_support.html">Support</a> |
| 33 | + <a class="topnav-d" href="https://motion-project.github.io/motion_news.html" >News</a> |
| 34 | + <a class="topnav-d" href="https://motion-project.github.io/motion_guide.html" >Documentation</a> |
| 35 | + <a class="topnav-d" href="https://motion-project.github.io/motion_download.html">Download</a> |
| 36 | + <a class="topnav-d" href="https://motion-project.github.io/index.html">Home</a> |
| 37 | + |
| 38 | + <a class="topnav-m" href="https://motion-project.github.io/index.html">Home</a> |
| 39 | + <a class="topnav-m" href="https://motion-project.github.io/motion_download.html">Download</a> |
| 40 | + <a class="topnav-m" href="https://motion-project.github.io/motion_guide.html" >Documentation</a> |
| 41 | + <a class="topnav-m" href="https://motion-project.github.io/motion_news.html" >News</a> |
| 42 | + <a class="topnav-m" href="https://motion-project.github.io/motion_support.html">Support</a> |
| 43 | + |
| 44 | + <a href="javascript:void(0);" class="icon" onclick="fnc_topnav()">☰</a> |
| 45 | + </div> |
| 46 | + <section class="page-header"> |
| 47 | + <h1> |
| 48 | + Installing and Building from Source |
| 49 | + </h1> |
| 50 | + </section> |
| 51 | + <div class="subnav" id="id_subnav"> |
| 52 | + <div class="dropdown"> |
| 53 | + <button class="dropbtn">Abbreviated Building</button> |
| 54 | + <div class="dropdown-content"> |
| 55 | + <a href="#Install_Deb"> Install from a deb package</a> |
| 56 | + <a href="#Build_Deb"> Building a deb package</a> |
| 57 | + <a href="#Building"> Abbreviated Building Guide</a> |
| 58 | + </div> |
| 59 | + </div> |
| 60 | + <div class="dropdown"> |
| 61 | + <button class="dropbtn">Configure/Make Options</button> |
| 62 | + <div class="dropdown-content"> |
| 63 | + <a href="#Configure_Script"> Configure Script Options </a> |
| 64 | + <a href="#Make_Options"> Make Options </a> |
| 65 | + </div> |
| 66 | + </div> |
| 67 | + |
| 68 | + <a href="javascript:void(0);" class="icon" onclick="fnc_subnav()">menu⇓   </a> |
| 69 | + </div> |
| 70 | + |
| 71 | + <section class="main-content" style="padding:0.5em 0.1em;height:1000px;font-size: 0.90em;"> |
| 72 | + |
| 73 | + <h3><a name="Install_Deb"></a> Installing with a release deb package </h3> |
| 74 | + <ul> |
| 75 | + MotionPlus can also be installed from the release deb files. Download the appropriate |
| 76 | + deb from the <a href="https://github.com/Motion-Project/motionplus/releases">Releases</a> page |
| 77 | + and install using <code><strong>dpkg</strong></code> |
| 78 | + or <code><strong>gdebi-core</strong></code>. |
| 79 | + </ul> |
| 80 | + |
| 81 | + <h3><a name="Build_Deb"></a> Building a deb package </h3> |
| 82 | + <ul> |
| 83 | + A script has also been written to allow users to create their own deb package |
| 84 | + from either a tagged release or the most current master branch of the code. Download the |
| 85 | + script by using the following |
| 86 | + command. <code><strong>wget https://raw.githubusercontent.com/Motion-Project/motion-packaging/master/buildplus.sh </strong></code> |
| 87 | + <p></p> |
| 88 | + Review the script and specify the following few optional parameters. |
| 89 | + <code><strong> Username, EmailAddress, branch, install, arch</strong></code>. If |
| 90 | + the parameters are not provided, the script will create defaults. |
| 91 | + <p></p> |
| 92 | + <p></p> |
| 93 | + Once the script has been run and the deb file is created, install it as described above. |
| 94 | + <p></p> |
| 95 | + </ul> |
| 96 | + |
| 97 | + <h3><a name="Building"></a> Building Guide </a> </h3> |
| 98 | + <ul> |
| 99 | + <p></p> |
| 100 | + <p></p> |
| 101 | + <p></p> |
| 102 | + Debian based distros |
| 103 | + <ul> |
| 104 | + <code><strong>sudo apt install autoconf automake autopoint build-essential pkgconf libtool libzip-dev |
| 105 | + libjpeg-dev git libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavdevice-dev libopencv-dev |
| 106 | + libwebp-dev gettext libmicrohttpd-dev libmariadb-dev libcamera-dev libcamera-tools libcamera-v4l2 |
| 107 | + libasound2-dev libpulse-dev libfftw3-dev </strong></code> |
| 108 | + <p></p> |
| 109 | + Note: PostgreSQL or Sqlite3 database may also be added |
| 110 | + via <code><strong>sudo apt install libpq-dev libsqlite3-dev</strong></code>. If |
| 111 | + no database is running on the system, some functionality of Motionplus will not be available. |
| 112 | + <p></p> |
| 113 | + Once packages are installed, run the following to build Motionplus |
| 114 | + <p></p> |
| 115 | + <code><strong>cd ~</strong></code> |
| 116 | + <br /><code><strong>git clone https://github.com/Motion-Project/motionplus.git</strong></code> |
| 117 | + <br /><code><strong>cd motionplus</strong></code> |
| 118 | + <br /><code><strong>autoreconf -fiv</strong></code> |
| 119 | + <br /><code><strong>./configure</strong></code> |
| 120 | + <br /><code><strong>make</strong></code> |
| 121 | + <br /><code><strong>make install</strong></code> |
| 122 | + <p></p> |
| 123 | + </ul> |
| 124 | + <p></p> |
| 125 | + </ul> |
| 126 | + |
| 127 | + <h3><a name="Configure_Script"></a> Additional Configure Options</a> </h3> |
| 128 | + <ul> |
| 129 | + <p></p> |
| 130 | + <p></p> |
| 131 | + The following custom configure options can be specified for MotionPlus. |
| 132 | + <div class="tblconfig"> |
| 133 | + <table border="1" class="fixed" > |
| 134 | + <colgroup> |
| 135 | + <col width="200px"> |
| 136 | + <col width="500px"> |
| 137 | + <col width="700px"> |
| 138 | + </colgroup> |
| 139 | + <tbody> |
| 140 | + <tr> |
| 141 | + <td bgcolor="#edf4f9" word-wrap:break-word > Options</td> |
| 142 | + <td bgcolor="#edf4f9" word-wrap:break-word > Description </td> |
| 143 | + <td bgcolor="#edf4f9" word-wrap:break-word > Editors comment </td> |
| 144 | + </tr> |
| 145 | + <tr> |
| 146 | + <td bgcolor="#edf4f9" word-wrap:break-word > --without-v4l2 </td> |
| 147 | + <td bgcolor="#edf4f9" word-wrap:break-word > Exclude v4l2 </td> |
| 148 | + <td bgcolor="#edf4f9" word-wrap:break-word > </td> |
| 149 | + </tr> |
| 150 | + <tr> |
| 151 | + <td bgcolor="#edf4f9" word-wrap:break-word > --without-webp </td> |
| 152 | + <td bgcolor="#edf4f9" word-wrap:break-word > Compile without webp image support</td> |
| 153 | + <td bgcolor="#edf4f9" word-wrap:break-word > </td> |
| 154 | + </tr> |
| 155 | + <tr> |
| 156 | + <td bgcolor="#edf4f9" word-wrap:break-word > --with-libcam=DIR </td> |
| 157 | + <td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf dir for libcam</td> |
| 158 | + <td bgcolor="#edf4f9" word-wrap:break-word > Use --without-libcam to disable </td> |
| 159 | + </tr> |
| 160 | + <tr> |
| 161 | + <td bgcolor="#edf4f9" word-wrap:break-word > --with-ffmpeg=DIR </td> |
| 162 | + <td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf dir for ffmpeg.</td> |
| 163 | + <td bgcolor="#edf4f9" word-wrap:break-word > ffmpeg is required </td> |
| 164 | + </tr> |
| 165 | + <tr> |
| 166 | + <td bgcolor="#edf4f9" word-wrap:break-word > --with-opencv=DIR </td> |
| 167 | + <td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf dir for opencv.</td> |
| 168 | + <td bgcolor="#edf4f9" word-wrap:break-word > Use --without-opencv to disable </td> |
| 169 | + </tr> |
| 170 | + <tr> |
| 171 | + <td bgcolor="#edf4f9" word-wrap:break-word > --with-mariadb=DIR </td> |
| 172 | + <td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf DIR for MariaDB </td> |
| 173 | + <td bgcolor="#edf4f9" word-wrap:break-word > Use --without-mariadb to disable </td> |
| 174 | + </tr> |
| 175 | + <tr> |
| 176 | + <td bgcolor="#edf4f9" word-wrap:break-word > --with-mysql=DIR </td> |
| 177 | + <td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf dir for mysql </td> |
| 178 | + <td bgcolor="#edf4f9" word-wrap:break-word > Use --without-mysql to disable </td> |
| 179 | + </tr> |
| 180 | + <tr> |
| 181 | + <td bgcolor="#edf4f9" word-wrap:break-word > --with-pgsql=DIR </td> |
| 182 | + <td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf DIR for PostgreSQL </td> |
| 183 | + <td bgcolor="#edf4f9" word-wrap:break-word > Use --without-pgsql to disable</td> |
| 184 | + </tr> |
| 185 | + <tr> |
| 186 | + <td bgcolor="#edf4f9" word-wrap:break-word > --with-sqlite3=DIR </td> |
| 187 | + <td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf DIR for sqlite3. </td> |
| 188 | + <td bgcolor="#edf4f9" word-wrap:break-word > Use --without-sqlite3 to disable </td> |
| 189 | + </tr> |
| 190 | + <tr> |
| 191 | + <td bgcolor="#edf4f9" word-wrap:break-word > --with-pulse=DIR </td> |
| 192 | + <td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf DIR for PulseAudio. </td> |
| 193 | + <td bgcolor="#edf4f9" word-wrap:break-word > Use --without-pulse to disable </td> |
| 194 | + </tr> |
| 195 | + <tr> |
| 196 | + <td bgcolor="#edf4f9" word-wrap:break-word > --with-alsa=DIR </td> |
| 197 | + <td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf DIR for alsa. </td> |
| 198 | + <td bgcolor="#edf4f9" word-wrap:break-word > Use --without-alsa to disable </td> |
| 199 | + </tr> |
| 200 | + <tr> |
| 201 | + <td bgcolor="#edf4f9" word-wrap:break-word > --with-fftw3=DIR </td> |
| 202 | + <td bgcolor="#edf4f9" word-wrap:break-word > Specify the pkgconf DIR for fftw3. </td> |
| 203 | + <td bgcolor="#edf4f9" word-wrap:break-word > Use --without-fftw3 to disable </td> |
| 204 | + </tr> |
| 205 | + <tr> |
| 206 | + <td bgcolor="#edf4f9" word-wrap:break-word > --with-developer-flags </td> |
| 207 | + <td bgcolor="#edf4f9" word-wrap:break-word > Add additional warning flags for the compiler. </td> |
| 208 | + <td bgcolor="#edf4f9" word-wrap:break-word > </td> |
| 209 | + </tr> |
| 210 | + </tbody> |
| 211 | + </table> |
| 212 | + </div> |
| 213 | + <p></p> |
| 214 | + <p></p> |
| 215 | + </ul> |
| 216 | + |
| 217 | + <h3><a name="Make_Options"></a> Additional Make Options </h3> |
| 218 | + <ul> |
| 219 | + <p></p> |
| 220 | + <dl> |
| 221 | + <dt> <strong>make cleanall</strong> </dt> |
| 222 | + <dd> |
| 223 | + This command creates a pristine directory without any of the files generated from |
| 224 | + the <code><strong>autoreconf</strong></code> command. |
| 225 | + </dd> |
| 226 | + </dl> |
| 227 | + <p></p> |
| 228 | + |
| 229 | + <p></p> |
| 230 | + <dl> |
| 231 | + <dt> <strong>make maintainer-check</strong> </dt> |
| 232 | + <dd> Executes multiple configure and make using the developer flags for various combinations of the options.</dd> |
| 233 | + </dl> |
| 234 | + <p></p> |
| 235 | + <p></p> |
| 236 | + </ul> |
| 237 | + |
| 238 | + </section> |
| 239 | +</body> |
0 commit comments