Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error with raspbian #1340

Closed
mika-nt28 opened this issue Apr 16, 2021 · 7 comments
Closed

Compilation error with raspbian #1340

mika-nt28 opened this issue Apr 16, 2021 · 7 comments

Comments

@mika-nt28
Copy link

mika-nt28 commented Apr 16, 2021

  1. Reviewed guide and contributing documents? (Yes/No):
  2. version 4.3 branch
  3. installed as a package or compiled from sources git
  4. standalone or part of third party motion
  5. video stream source [V4L (card or USB), net cam (mjpeg, rtsp, other), mmal]:
  6. hardware ARM aarch64
  7. operating system rasbian buster:

Hi

Can you help me to resolve this comilation error

gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT mmalcam.o -MD -MP -MF $depbase.Tpo -c -o mmalcam.o mmalcam.c &&\
mv -f $depbase.Tpo $depbase.Po
mmalcam.c:21:10: fatal error: interface/mmal/mmal.h: No such file or directory
#include "interface/mmal/mmal.h"
^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:471: mmalcam.o] Error 1
make[2]: Leaving directory '/usr/local/src/motion/src'
make[1]: *** [Makefile:553: all-recursive] Error 1
make[1]: Leaving directory '/usr/local/src/motion'
make: *** [Makefile:397: all] Error 2
Making install in src
make[1]: Entering directory '/usr/local/src/motion/src'
depbase=`echo mmalcam.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT mmalcam.o -MD -MP -MF $depbase.Tpo -c -o mmalcam.o mmalcam.c &&\
mv -f $depbase.Tpo $depbase.Po
mmalcam.c:21:10: fatal error: interface/mmal/mmal.h: No such file or directory
#include "interface/mmal/mmal.h"
^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:471: mmalcam.o] Error 1
@tosiara
Copy link
Member

tosiara commented Apr 16, 2021

Can you post the whole configure and make log?

@Mr-DaveDev
Copy link
Contributor

Well, even with this issue, you didn't provide the information that was requested in #1279 which was the last time you opened the issue. Rather than go through that process again, re-image your SD card with the latest official image from the Raspbian page.

Multiple users have compiled Motion using those official images without any issue so something associated with your PI has been corrupted that is outside the scope of Motion.

@mika-nt28
Copy link
Author

Hello,

I'm sorry I don't reicive a reply notificaiton
cd /usr/local/src/ git clone https://github.com/Motion-Project/motion.git cd motion git checkout 4.3 sudo autoreconf -fiv ./configure make sudo make install

Motion is compatible to aarch64?
For an other compilation i adding this configuration for compilation on this architectur
architecture=$(uname -m) if [ "$architecture" = 'aarch64' ] then wget -O config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' wget -O config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' fi

@mika-nt28 mika-nt28 reopened this Apr 22, 2021
@mika-nt28
Copy link
Author

mika-nt28 commented Apr 22, 2021

Can you find a complet compilation log

*****************************************************************************************************
*                                   Installation des dépendance                                     *
*****************************************************************************************************
Reading package lists...
Building dependency tree...
Reading state information...
autoconf is already the newest version (2.69-11).
autoconf set to manually installed.
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
automake is already the newest version (1:1.16.1-4).
automake set to manually installed.
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
autopoint is already the newest version (0.19.8.1-9).
autopoint set to manually installed.
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
build-essential is already the newest version (12.6).
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
pkg-config
The following NEW packages will be installed:
pkgconf
0 upgraded, 1 newly installed, 1 to remove and 36 not upgraded.
Need to get 65.6 kB of archives.
After this operation, 117 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main arm64 pkgconf arm64 1.6.0-1 [65.6 kB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 65.6 kB in 0s (527 kB/s)
dpkg: pkg-config: dependency problems, but removing anyway as you requested:
php7.3-dev depends on pkg-config.
libglib2.0-dev:arm64 depends on pkg-config.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 69767 files and directories currently installed.)
Removing pkg-config (0.29-6) ...
Selecting previously unselected package pkgconf.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 69751 files and directories currently installed.)
Preparing to unpack .../pkgconf_1.6.0-1_arm64.deb ...
Adding 'diversion of /usr/bin/pkg-config to /usr/bin/pkg-config.real by pkgconf'
Adding 'diversion of /usr/share/aclocal/pkg.m4 to /usr/share/aclocal/pkg.real.m4 by pkgconf'
Adding 'diversion of /usr/share/man/man1/pkg-config.1.gz to /usr/share/man/man1/pkg-config.real.1.gz by pkgconf'
Adding 'diversion of /usr/share/pkg-config-crosswrapper to /usr/share/pkg-config-crosswrapper.real by pkgconf'
Unpacking pkgconf (1.6.0-1) ...
Setting up pkgconf (1.6.0-1) ...
Processing triggers for man-db (2.8.5-2) ...
Reading package lists...
Building dependency tree...
Reading state information...
libtool is already the newest version (2.4.6-9).
libtool set to manually installed.
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
libzip-dev
0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.
Need to get 158 kB of archives.
After this operation, 301 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main arm64 libzip-dev arm64 1.5.1-4 [158 kB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 158 kB in 0s (2232 kB/s)
Selecting previously unselected package libzip-dev:arm64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 69784 files and directories currently installed.)
Preparing to unpack .../libzip-dev_1.5.1-4_arm64.deb ...
Unpacking libzip-dev:arm64 (1.5.1-4) ...
Setting up libzip-dev:arm64 (1.5.1-4) ...
Processing triggers for man-db (2.8.5-2) ...
Reading package lists...
Building dependency tree...
Reading state information...
libjpeg-dev is already the newest version (1:1.5.2-2+deb10u1).
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
Package libjpeg8-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libjpeg62-turbo-dev:armhf libjpeg62-turbo-dev
E: Package 'libjpeg8-dev' has no installation candidate
Reading package lists...
Building dependency tree...
Reading state information...
libjpeg62-turbo-dev is already the newest version (1:1.5.2-2+deb10u1).
libjpeg62-turbo-dev set to manually installed.
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version (1:2.20.1-2+deb10u3).
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libavcodec-dev libavutil-dev libswresample-dev
The following NEW packages will be installed:
libavcodec-dev libavformat-dev libavutil-dev libswresample-dev
0 upgraded, 4 newly installed, 0 to remove and 36 not upgraded.
Need to get 6646 kB of archives.
After this operation, 24.6 MB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian buster/main arm64 libavutil-dev arm64 7:4.1.6-1~deb10u1+rpt1 [357 kB]
Get:2 http://archive.raspberrypi.org/debian buster/main arm64 libswresample-dev arm64 7:4.1.6-1~deb10u1+rpt1 [108 kB]
Get:3 http://archive.raspberrypi.org/debian buster/main arm64 libavcodec-dev arm64 7:4.1.6-1~deb10u1+rpt1 [4989 kB]
Get:4 http://archive.raspberrypi.org/debian buster/main arm64 libavformat-dev arm64 7:4.1.6-1~deb10u1+rpt1 [1191 kB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 6646 kB in 0s (16.6 MB/s)
Selecting previously unselected package libavutil-dev:arm64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 69910 files and directories currently installed.)
Preparing to unpack .../libavutil-dev_7%3a4.1.6-1~deb10u1+rpt1_arm64.deb ...
Unpacking libavutil-dev:arm64 (7:4.1.6-1~deb10u1+rpt1) ...
Selecting previously unselected package libswresample-dev:arm64.
Preparing to unpack .../libswresample-dev_7%3a4.1.6-1~deb10u1+rpt1_arm64.deb ...
Unpacking libswresample-dev:arm64 (7:4.1.6-1~deb10u1+rpt1) ...
Selecting previously unselected package libavcodec-dev:arm64.
Preparing to unpack .../libavcodec-dev_7%3a4.1.6-1~deb10u1+rpt1_arm64.deb ...
Unpacking libavcodec-dev:arm64 (7:4.1.6-1~deb10u1+rpt1) ...
Selecting previously unselected package libavformat-dev:arm64.
Preparing to unpack .../libavformat-dev_7%3a4.1.6-1~deb10u1+rpt1_arm64.deb ...
Unpacking libavformat-dev:arm64 (7:4.1.6-1~deb10u1+rpt1) ...
Setting up libavutil-dev:arm64 (7:4.1.6-1~deb10u1+rpt1) ...
Setting up libswresample-dev:arm64 (7:4.1.6-1~deb10u1+rpt1) ...
Setting up libavcodec-dev:arm64 (7:4.1.6-1~deb10u1+rpt1) ...
Setting up libavformat-dev:arm64 (7:4.1.6-1~deb10u1+rpt1) ...
Reading package lists...
Building dependency tree...
Reading state information...
libavcodec-dev is already the newest version (7:4.1.6-1~deb10u1+rpt1).
libavcodec-dev set to manually installed.
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
libavutil-dev is already the newest version (7:4.1.6-1~deb10u1+rpt1).
libavutil-dev set to manually installed.
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
libswscale-dev
0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.
Need to get 197 kB of archives.
After this operation, 792 kB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian buster/main arm64 libswscale-dev arm64 7:4.1.6-1~deb10u1+rpt1 [197 kB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 197 kB in 0s (1431 kB/s)
Selecting previously unselected package libswscale-dev:arm64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 70047 files and directories currently installed.)
Preparing to unpack .../libswscale-dev_7%3a4.1.6-1~deb10u1+rpt1_arm64.deb ...
Unpacking libswscale-dev:arm64 (7:4.1.6-1~deb10u1+rpt1) ...
Setting up libswscale-dev:arm64 (7:4.1.6-1~deb10u1+rpt1) ...
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libavfilter-dev libpostproc-dev
The following NEW packages will be installed:
libavdevice-dev libavfilter-dev libpostproc-dev
0 upgraded, 3 newly installed, 0 to remove and 36 not upgraded.
Need to get 1350 kB of archives.
After this operation, 5791 kB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian buster/main arm64 libpostproc-dev arm64 7:4.1.6-1~deb10u1+rpt1 [85.3 kB]
Get:2 http://archive.raspberrypi.org/debian buster/main arm64 libavfilter-dev arm64 7:4.1.6-1~deb10u1+rpt1 [1129 kB]
Get:3 http://archive.raspberrypi.org/debian buster/main arm64 libavdevice-dev arm64 7:4.1.6-1~deb10u1+rpt1 [136 kB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 1350 kB in 0s (3400 kB/s)
Selecting previously unselected package libpostproc-dev:arm64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 70057 files and directories currently installed.)
Preparing to unpack .../libpostproc-dev_7%3a4.1.6-1~deb10u1+rpt1_arm64.deb ...
Unpacking libpostproc-dev:arm64 (7:4.1.6-1~deb10u1+rpt1) ...
Selecting previously unselected package libavfilter-dev:arm64.
Preparing to unpack .../libavfilter-dev_7%3a4.1.6-1~deb10u1+rpt1_arm64.deb ...
Unpacking libavfilter-dev:arm64 (7:4.1.6-1~deb10u1+rpt1) ...
Selecting previously unselected package libavdevice-dev:arm64.
Preparing to unpack .../libavdevice-dev_7%3a4.1.6-1~deb10u1+rpt1_arm64.deb ...
Unpacking libavdevice-dev:arm64 (7:4.1.6-1~deb10u1+rpt1) ...
Setting up libpostproc-dev:arm64 (7:4.1.6-1~deb10u1+rpt1) ...
Setting up libavfilter-dev:arm64 (7:4.1.6-1~deb10u1+rpt1) ...
Setting up libavdevice-dev:arm64 (7:4.1.6-1~deb10u1+rpt1) ...
Reading package lists...
Building dependency tree...
Reading state information...
gettext is already the newest version (0.19.8.1-9).
gettext set to manually installed.
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
libwebp-dev
0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.
Need to get 313 kB of archives.
After this operation, 819 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main arm64 libwebp-dev arm64 0.6.1-2 [313 kB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 313 kB in 0s (1281 kB/s)
Selecting previously unselected package libwebp-dev:arm64.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 70089 files and directories currently installed.)
Preparing to unpack .../libwebp-dev_0.6.1-2_arm64.deb ...
Unpacking libwebp-dev:arm64 (0.6.1-2) ...
Setting up libwebp-dev:arm64 (0.6.1-2) ...
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libgcrypt20-dev libgmp-dev libgmpxx4ldbl libgnutls-openssl27 libgnutls28-dev
libgnutlsxx28 libgpg-error-dev libidn2-dev libmicrohttpd12 libp11-kit-dev
libtasn1-6-dev libtasn1-doc nettle-dev
Suggested packages:
libgcrypt20-doc gmp-doc libgmp10-doc libmpfr-dev gnutls-bin gnutls-doc
The following NEW packages will be installed:
libgcrypt20-dev libgmp-dev libgmpxx4ldbl libgnutls-openssl27 libgnutls28-dev
libgnutlsxx28 libgpg-error-dev libidn2-dev libmicrohttpd-dev libmicrohttpd12
libp11-kit-dev libtasn1-6-dev libtasn1-doc nettle-dev
0 upgraded, 14 newly installed, 0 to remove and 36 not upgraded.
Need to get 4887 kB of archives.
After this operation, 14.9 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main arm64 libgpg-error-dev arm64 1.35-1 [124 kB]
Get:2 http://deb.debian.org/debian buster/main arm64 libgcrypt20-dev arm64 1.8.4-5 [545 kB]
Get:3 http://deb.debian.org/debian buster/main arm64 libgmpxx4ldbl arm64 2:6.1.2+dfsg-4 [22.6 kB]
Get:4 http://deb.debian.org/debian buster/main arm64 libgmp-dev arm64 2:6.1.2+dfsg-4 [608 kB]
Get:5 http://deb.debian.org/debian buster/main arm64 libgnutls-openssl27 arm64 3.6.7-4+deb10u6 [317 kB]
Get:6 http://deb.debian.org/debian buster/main arm64 libgnutlsxx28 arm64 3.6.7-4+deb10u6 [12.9 kB]
Get:7 http://deb.debian.org/debian buster/main arm64 libidn2-dev arm64 2.0.5-1+deb10u1 [79.0 kB]
Get:8 http://deb.debian.org/debian buster/main arm64 libp11-kit-dev arm64 0.23.15-2+deb10u1 [196 kB]
Get:9 http://deb.debian.org/debian buster/main arm64 libtasn1-6-dev arm64 4.13-3 [100 kB]
Get:10 http://deb.debian.org/debian buster/main arm64 nettle-dev arm64 3.4.1-1 [1091 kB]
Get:11 http://deb.debian.org/debian buster/main arm64 libgnutls28-dev arm64 3.6.7-4+deb10u6 [1123 kB]
Get:12 http://deb.debian.org/debian buster/main arm64 libmicrohttpd12 arm64 0.9.62-1 [91.5 kB]
Get:13 http://deb.debian.org/debian buster/main arm64 libmicrohttpd-dev arm64 0.9.62-1 [260 kB]
Get:14 http://deb.debian.org/debian buster/main arm64 libtasn1-doc all 4.13-3 [317 kB]
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 4887 kB in 1s (8089 kB/s)
Selecting previously unselected package libgpg-error-dev.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 70113 files and directories currently installed.)
Preparing to unpack .../00-libgpg-error-dev_1.35-1_arm64.deb ...
Unpacking libgpg-error-dev (1.35-1) ...
Selecting previously unselected package libgcrypt20-dev.
Preparing to unpack .../01-libgcrypt20-dev_1.8.4-5_arm64.deb ...
Unpacking libgcrypt20-dev (1.8.4-5) ...
Selecting previously unselected package libgmpxx4ldbl:arm64.
Preparing to unpack .../02-libgmpxx4ldbl_2%3a6.1.2+dfsg-4_arm64.deb ...
Unpacking libgmpxx4ldbl:arm64 (2:6.1.2+dfsg-4) ...
Selecting previously unselected package libgmp-dev:arm64.
Preparing to unpack .../03-libgmp-dev_2%3a6.1.2+dfsg-4_arm64.deb ...
Unpacking libgmp-dev:arm64 (2:6.1.2+dfsg-4) ...
Selecting previously unselected package libgnutls-openssl27:arm64.
Preparing to unpack .../04-libgnutls-openssl27_3.6.7-4+deb10u6_arm64.deb ...
Unpacking libgnutls-openssl27:arm64 (3.6.7-4+deb10u6) ...
Selecting previously unselected package libgnutlsxx28:arm64.
Preparing to unpack .../05-libgnutlsxx28_3.6.7-4+deb10u6_arm64.deb ...
Unpacking libgnutlsxx28:arm64 (3.6.7-4+deb10u6) ...
Selecting previously unselected package libidn2-dev:arm64.
Preparing to unpack .../06-libidn2-dev_2.0.5-1+deb10u1_arm64.deb ...
Unpacking libidn2-dev:arm64 (2.0.5-1+deb10u1) ...
Selecting previously unselected package libp11-kit-dev:arm64.
Preparing to unpack .../07-libp11-kit-dev_0.23.15-2+deb10u1_arm64.deb ...
Unpacking libp11-kit-dev:arm64 (0.23.15-2+deb10u1) ...
Selecting previously unselected package libtasn1-6-dev:arm64.
Preparing to unpack .../08-libtasn1-6-dev_4.13-3_arm64.deb ...
Unpacking libtasn1-6-dev:arm64 (4.13-3) ...
Selecting previously unselected package nettle-dev:arm64.
Preparing to unpack .../09-nettle-dev_3.4.1-1_arm64.deb ...
Unpacking nettle-dev:arm64 (3.4.1-1) ...
Selecting previously unselected package libgnutls28-dev:arm64.
Preparing to unpack .../10-libgnutls28-dev_3.6.7-4+deb10u6_arm64.deb ...
Unpacking libgnutls28-dev:arm64 (3.6.7-4+deb10u6) ...
Selecting previously unselected package libmicrohttpd12.
Preparing to unpack .../11-libmicrohttpd12_0.9.62-1_arm64.deb ...
Unpacking libmicrohttpd12 (0.9.62-1) ...
Selecting previously unselected package libmicrohttpd-dev.
Preparing to unpack .../12-libmicrohttpd-dev_0.9.62-1_arm64.deb ...
Unpacking libmicrohttpd-dev (0.9.62-1) ...
Selecting previously unselected package libtasn1-doc.
Preparing to unpack .../13-libtasn1-doc_4.13-3_all.deb ...
Unpacking libtasn1-doc (4.13-3) ...
Setting up libgnutls-openssl27:arm64 (3.6.7-4+deb10u6) ...
Setting up libtasn1-doc (4.13-3) ...
Setting up libmicrohttpd12 (0.9.62-1) ...
Setting up libgmpxx4ldbl:arm64 (2:6.1.2+dfsg-4) ...
Setting up libgpg-error-dev (1.35-1) ...
Setting up libgnutlsxx28:arm64 (3.6.7-4+deb10u6) ...
Setting up libidn2-dev:arm64 (2.0.5-1+deb10u1) ...
Setting up libtasn1-6-dev:arm64 (4.13-3) ...
Setting up libp11-kit-dev:arm64 (0.23.15-2+deb10u1) ...
Setting up libgmp-dev:arm64 (2:6.1.2+dfsg-4) ...
Setting up nettle-dev:arm64 (3.4.1-1) ...
Setting up libgcrypt20-dev (1.8.4-5) ...
Setting up libgnutls28-dev:arm64 (3.6.7-4+deb10u6) ...
Setting up libmicrohttpd-dev (0.9.62-1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...
Reading package lists...
Building dependency tree...
Reading state information...
libwebp-dev is already the newest version (0.6.1-2).
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
gettext is already the newest version (0.19.8.1-9).
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
libmicrohttpd-dev is already the newest version (0.9.62-1).
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
*****************************************************************************************************
*                                          Installation de FFMPEG                                   *
*****************************************************************************************************
Reading package lists...
Building dependency tree...
Reading state information...
libavformat-dev is already the newest version (7:4.1.6-1~deb10u1+rpt1).
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
libavcodec-dev is already the newest version (7:4.1.6-1~deb10u1+rpt1).
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
libavutil-dev is already the newest version (7:4.1.6-1~deb10u1+rpt1).
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
libswscale-dev is already the newest version (7:4.1.6-1~deb10u1+rpt1).
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
libavdevice-dev is already the newest version (7:4.1.6-1~deb10u1+rpt1).
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
ffmpeg is already the newest version (7:4.1.6-1~deb10u1+rpt1).
The following package was automatically installed and is no longer required:
raspi-gpio
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
*****************************************************************************************************
*                                          Compilation de motion:                                   *
*****************************************************************************************************
Cloning into 'motion'...
Switched to a new branch '4.3'
Branch '4.3' set up to track remote branch '4.3' from 'origin'.
autoreconf: Entering directory `.'
autoreconf: running: autopoint --force
Copying file ABOUT-NLS
Copying file config.rpath
Creating directory m4
Copying file m4/codeset.m4
Copying file m4/extern-inline.m4
Copying file m4/fcntl-o.m4
Copying file m4/gettext.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
Copying file m4/iconv.m4
Copying file m4/intdiv0.m4
Copying file m4/intl.m4
Copying file m4/intldir.m4
Copying file m4/intlmacosx.m4
Copying file m4/intmax.m4
Copying file m4/inttypes-pri.m4
Copying file m4/inttypes_h.m4
Copying file m4/lcmessage.m4
Copying file m4/lib-ld.m4
Copying file m4/lib-link.m4
Copying file m4/lib-prefix.m4
Copying file m4/lock.m4
Copying file m4/longlong.m4
Copying file m4/nls.m4
Copying file m4/po.m4
Copying file m4/printf-posix.m4
Copying file m4/progtest.m4
Copying file m4/size_max.m4
Copying file m4/stdint_h.m4
Copying file m4/threadlib.m4
Copying file m4/uintmax_t.m4
Copying file m4/visibility.m4
Copying file m4/wchar_t.m4
Copying file m4/wint_t.m4
Copying file m4/xsize.m4
Copying file po/Makefile.in.in
Copying file po/Makevars.template
Copying file po/Rules-quot
Copying file po/boldquot.sed
Copying file po/en@boldquot.header
Copying file po/en@quot.header
Copying file po/insert-header.sin
Copying file po/quot.sed
Copying file po/remove-potcdate.sin
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:4: installing './compile'
configure.ac:9: installing './config.guess'
configure.ac:9: installing './config.sub'
configure.ac:2: installing './install-sh'
configure.ac:2: installing './missing'
src/Makefile.am: installing './depcomp'
autoreconf: Leaving directory `.'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking build system type... aarch64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking for ctype.h... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for pkg-config... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking setjmp.h usability... yes
checking setjmp.h presence... yes
checking for setjmp.h... yes
checking jerror.h usability... yes
checking jerror.h presence... yes
checking for jerror.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking jpg libraries... yes
checking microhttpd.h usability... yes
checking microhttpd.h presence... yes
checking for microhttpd.h... yes
checking libmicrohttpd libraries... yes
checking pthread_np.h usability... no
checking pthread_np.h presence... no
checking for pthread_np.h... no
checking for pthread_setname_np... yes
checking for pthread_getname_np... yes
checking for XSI strerror_r... no
checking dev/bktr/ioctl_meteor.h usability... no
checking dev/bktr/ioctl_meteor.h presence... no
checking for dev/bktr/ioctl_meteor.h... no
checking dev/bktr/ioctl_bt848.h usability... no
checking dev/bktr/ioctl_bt848.h presence... no
checking for dev/bktr/ioctl_bt848.h... no
checking dev/ic/bt8xx.h usability... no
checking dev/ic/bt8xx.h presence... no
checking for dev/ic/bt8xx.h... no
checking linux/videodev2.h usability... yes
checking linux/videodev2.h presence... yes
checking for linux/videodev2.h... yes
checking for webp... yes
checking MMAL pkg-config path... .:/opt/vc/lib/pkgconfig
checking for MMAL... yes
checking FFmpeg pkg-config path...
checking for FFmpeg... yes
checking MariaDB pkg-config path...
checking for MariaDB... no
checking MySQL pkg-config path...
checking for MySQL... no
checking PostgreSQL pkg-config path...
checking for PostgreSQL... no
checking sqlite3.h usability... no
checking sqlite3.h presence... no
checking for sqlite3.h... no
checking for kill... /usr/bin/kill
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating man/Makefile
config.status: creating data/camera1-dist.conf
config.status: creating data/camera2-dist.conf
config.status: creating data/camera3-dist.conf
config.status: creating data/camera4-dist.conf
config.status: creating data/motion-dist.conf
config.status: creating data/motion.service
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
**************************
Configure status
motion 4.3.2
**************************
CFLAGS: -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2
LIBS:  -pthread   -L/usr/lib/aarch64-linux-gnu -ljpeg  -L/usr/lib/aarch64-linux-gnu -lmicrohttpd  -L/usr/lib/aarch64-linux-gnu -lwebpmux -lwebp  -L/usr/lib/aarch64-linux-gnu -lmmal -lmmal_core -lmmal_util -lmmal_vc_client -lbcm_host -lvcsm -lvcos  -lvchostif  -L/usr/lib/aarch64-linux-gnu -lavutil -lavformat -lavcodec -lswscale -lavdevice
LDFLAGS:
OS                  : linux-gnu
pthread_np          : no
pthread_setname_np  : yes
pthread_getname_np  : yes
XSI error           : no
webp support        : yes
V4L2 support        : yes
BKTR support        : no
MMAL support        : yes
FFmpeg support      : yes
libavformat version : 58.20.100
SQLite3 support     : no
MYSQL support       : no
PostgreSQL support  : no
MariaDB support     : no
Install prefix:       /usr/local
make  all-recursive
make[1]: Entering directory '/usr/local/src/motion'
Making all in src
make[2]: Entering directory '/usr/local/src/motion/src'
depbase=`echo motion.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT motion.o -MD -MP -MF $depbase.Tpo -c -o motion.o motion.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo logger.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT logger.o -MD -MP -MF $depbase.Tpo -c -o logger.o logger.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo conf.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT conf.o -MD -MP -MF $depbase.Tpo -c -o conf.o conf.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo draw.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT draw.o -MD -MP -MF $depbase.Tpo -c -o draw.o draw.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo jpegutils.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT jpegutils.o -MD -MP -MF $depbase.Tpo -c -o jpegutils.o jpegutils.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo video_loopback.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT video_loopback.o -MD -MP -MF $depbase.Tpo -c -o video_loopback.o video_loopback.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo video_v4l2.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT video_v4l2.o -MD -MP -MF $depbase.Tpo -c -o video_v4l2.o video_v4l2.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo video_common.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT video_common.o -MD -MP -MF $depbase.Tpo -c -o video_common.o video_common.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo video_bktr.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT video_bktr.o -MD -MP -MF $depbase.Tpo -c -o video_bktr.o video_bktr.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo netcam.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT netcam.o -MD -MP -MF $depbase.Tpo -c -o netcam.o netcam.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo netcam_http.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT netcam_http.o -MD -MP -MF $depbase.Tpo -c -o netcam_http.o netcam_http.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo netcam_ftp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT netcam_ftp.o -MD -MP -MF $depbase.Tpo -c -o netcam_ftp.o netcam_ftp.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo netcam_jpeg.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT netcam_jpeg.o -MD -MP -MF $depbase.Tpo -c -o netcam_jpeg.o netcam_jpeg.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo netcam_wget.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT netcam_wget.o -MD -MP -MF $depbase.Tpo -c -o netcam_wget.o netcam_wget.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo netcam_rtsp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT netcam_rtsp.o -MD -MP -MF $depbase.Tpo -c -o netcam_rtsp.o netcam_rtsp.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo track.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT track.o -MD -MP -MF $depbase.Tpo -c -o track.o track.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo alg.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT alg.o -MD -MP -MF $depbase.Tpo -c -o alg.o alg.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo event.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT event.o -MD -MP -MF $depbase.Tpo -c -o event.o event.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo picture.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT picture.o -MD -MP -MF $depbase.Tpo -c -o picture.o picture.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo rotate.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT rotate.o -MD -MP -MF $depbase.Tpo -c -o rotate.o rotate.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo translate.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT translate.o -MD -MP -MF $depbase.Tpo -c -o translate.o translate.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo md5.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT md5.o -MD -MP -MF $depbase.Tpo -c -o md5.o md5.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo stream.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT stream.o -MD -MP -MF $depbase.Tpo -c -o stream.o stream.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo ffmpeg.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT ffmpeg.o -MD -MP -MF $depbase.Tpo -c -o ffmpeg.o ffmpeg.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo webu.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT webu.o -MD -MP -MF $depbase.Tpo -c -o webu.o webu.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo webu_html.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT webu_html.o -MD -MP -MF $depbase.Tpo -c -o webu_html.o webu_html.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo webu_stream.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT webu_stream.o -MD -MP -MF $depbase.Tpo -c -o webu_stream.o webu_stream.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo webu_text.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT webu_text.o -MD -MP -MF $depbase.Tpo -c -o webu_text.o webu_text.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo mmalcam.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT mmalcam.o -MD -MP -MF $depbase.Tpo -c -o mmalcam.o mmalcam.c &&\
mv -f $depbase.Tpo $depbase.Po
mmalcam.c:21:10: fatal error: interface/mmal/mmal.h: No such file or directory
#include "interface/mmal/mmal.h"
^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:471: mmalcam.o] Error 1
make[2]: Leaving directory '/usr/local/src/motion/src'
make[1]: *** [Makefile:553: all-recursive] Error 1
make[1]: Leaving directory '/usr/local/src/motion'
make: *** [Makefile:397: all] Error 2
Making install in src
make[1]: Entering directory '/usr/local/src/motion/src'
depbase=`echo mmalcam.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/usr/local/etc/motion\" -DLOCALEDIR=\"/usr/local/share/locale\"  -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  -I/usr/include/aarch64-linux-gnu  -g -O2 -MT mmalcam.o -MD -MP -MF $depbase.Tpo -c -o mmalcam.o mmalcam.c &&\
mv -f $depbase.Tpo $depbase.Po
mmalcam.c:21:10: fatal error: interface/mmal/mmal.h: No such file or directory
#include "interface/mmal/mmal.h"
^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:471: mmalcam.o] Error 1
make[1]: Leaving directory '/usr/local/src/motion/src'
make: *** [Makefile:553: install-recursive] Error 1
usermod: group 'motion' does not exist
*****************************************************************************************************
*                                Installation de motion terminé                                     *
*****************************************************************************************************

@mika-nt28 mika-nt28 reopened this Apr 22, 2021
@tosiara
Copy link
Member

tosiara commented Apr 22, 2021

...
checking MMAL pkg-config path... .:/opt/vc/lib/pkgconfig
checking for MMAL... yes
..
CFLAGS: -D_THREAD_SAFE  -I/usr/include/p11-kit-1   -Irasppicam  ...
LIBS:  -pthread   -L/usr/lib/aarch64-linux-gnu -ljpeg  -L/usr/lib/aarch64-linux-gnu -lmicrohttpd  -L/usr/lib/aarch64-linux-gnu -lwebpmux -lwebp  -L/usr/lib/aarch64-linux-gnu -lmmal -lmmal_core -lmmal_util -lmmal_vc_client ...

pkgconfig detects mmal, but CFLAGS are incorrect. Should be:

..
checking MMAL pkg-config path... .:/opt/vc/lib/pkgconfig
checking for MMAL... yes
..
CFLAGS: -D_THREAD_SAFE  -I/usr/include/p11-kit-1  -Irasppicam -I/opt/vc/include ...
LIBS:  -pthread   -ljpeg -lmicrohttpd -lwebpmux -lwebp -L/opt/vc/lib -lmmal -lmmal_core -lmmal_util -lmmal_vc_client ...

Something is wrong with your OS.
You can try to compile either without MMAL support ./configure --without-mmal or use pre-compiled MMAL version: https://github.com/Motion-Project/motion/releases/download/release-4.3.2/pi_buster_motion_4.3.2-1_armhf.deb

Or if you are comfortable to edit Makefile, add -I/opt/vc/include to CFLAGS and -L/opt/vc/lib to LIB and try to compile

@mika-nt28
Copy link
Author

Hello

I'm sorry, I don't have a tome for testing your solution

I going back you next week

@tosiara tosiara closed this as completed May 21, 2021
@TheRaven500
Copy link

Same problem here with dietpi OS (Debian Bullseye/Aarch64).
I think it's because of 64Bit.
Tried your solution (edited Makefile, line 255 and 294) but this has not worked.
So i digged deeper and saw that the file "mmal.h" is not available on bullseye 64bit!
Ähm.... Running out of ideas... On the ARMv7 (32Bit) all ok, ARMv8 (64Bit) compile not possible with MMAL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants