Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Makefile.in
ABOUT-NLS
compile
config.guess
config.h
config.h.in
config.h.in~
config.hpp
config.hpp.in
config.hpp.in~
Expand Down
54 changes: 54 additions & 0 deletions doc/INSTALL.rocky
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
The following is a brief overview of the building and installing instructions for for Rocky Linux 9
(and presumably other compatible RPM Enterprise Linux distros).

For full instructions on how to build and install Motion, see the motion_guide.html that is
distributed with this source code. The guide also includes instructions for building Motion
on distributions other than debian/ubuntu such as BSD, Mac and Centos.

The packages and library names change frequently and vary across base operating systems.
Adjust the following lines as required by the base operating system.

Install the EPEL repo:
sudo dnf install \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm

Install buildessential equivalents
Minimal:
sudo dnf --setopt="install_weak_deps=False" install \
gcc \
gcc-c++ \
make

Extensive, but major cruft:
sudo dnf --setopt="install_weak_deps=False" groupinstall "Development Tools"

Install necessary additional build tools and support packages:
sudo dnf --setopt="install_weak_deps=False" install \
autoconf \
automake \
autopoint \
pkgconf \
libtool \
libjpeg-devel \
libzip-devel \
gettext \
gettext-devel \
libmicrohttpd-devel

Install FFMPEG packages
sudo dnf --setopt="install_weak_deps=False" install \
libavformat-free-devel \
libavcodec-free-devel \
libavutil-free-devel \
libavdevice-free-devel \
libswscale-free-devel

Once the packages have been installed, continue as for the default (.deb system) compilation:
autoreconf -fiv
./configure
make
sudo make install

Sample custom configuration options:
--prefix : Specify the install location for the motion package
--with-ffmpeg=[dir] : Specify the location in which ffmpeg/libav is installed.