Send Motion-user mailing list submissions to
        motion-user@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
        motion-user-requ...@lists.sourceforge.net

You can reach the person managing the list at
        motion-user-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."


Today's Topics:

   1. Re: moving motion to a newer machine (Dave Howorth)
   2. Re: moving motion to a newer machine (Dave Howorth)
   3. Re: moving motion to a newer machine (MrDave)


----------------------------------------------------------------------

Message: 1
Date: Wed, 10 Aug 2022 18:09:13 +0100
From: Dave Howorth <d...@howorth.org.uk>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] moving motion to a newer machine
Message-ID: <20220810180913.24e90...@acer-suse.lan>
Content-Type: text/plain; charset=UTF-8

On Mon, 8 Aug 2022 09:09:58 -0500
Barry Martin <barry3mar...@gmail.com> wrote:

> Hi Dave!
> 
> > I now have an R Pi 3B+ that I can substitute for the old machine and
> > hope that might give me an upgraded frame rate. It presently has
> > buster on it, 32-bit I think (uname -m says armv71). So:  
> 
> AFAIK Buster is 32-bit. /uname -m/ gives the processor type; /cat 
> /etc/os-release/ gives some of the information you're asking about
> but not all.? ...I'm not sure how to tell the bit option? (looks like
> we'll both be learning!)

Thanks for your reply. I went ahead and upgraded the pi to a 64-bit
version. I used the official rpi-imager and that has given me bullseye.
Now I'm confused when I look at
https://github.com/Motion-Project/motion/releases because although I
see an arm64 release for both bionic and buster I don't see one for
bullseye:

 Assets 29

bionic_motion_4.4.0-1_amd64.deb
458 KB
bionic_motion_4.4.0-1_arm64.deb
435 KB
bionic_motion_4.4.0-1_armhf.deb
443 KB
bionic_motion_4.4.0-1_i386.deb
464 KB
bullseye_motion_4.4.0-1_amd64.deb
501 KB
bullseye_motion_4.4.0-1_armel.deb
481 KB
bullseye_motion_4.4.0-1_armhf.deb
485 KB
bullseye_motion_4.4.0-1_i386.deb
506 KB
buster_motion_4.4.0-1_amd64.deb
499 KB
buster_motion_4.4.0-1_arm64.deb
485 KB
buster_motion_4.4.0-1_armel.deb
479 KB
buster_motion_4.4.0-1_armhf.deb
484 KB
buster_motion_4.4.0-1_i386.deb
506 KB

Is there supposed to be a 64-bit version, or is there some known
problem, or am I left to build it myself?


> > Q1 Would putting a 64-bit version of the OS on the machine be
> > worthwhile? And regardless, it it worth upgrading to a newer OS
> > release?  
> 
> I have three RPi 4B's here.? Two are running Bullseye and the third 
> Buster.? With this limited experience I have not found a difference 
> running Motion? on Buster vs. Bullseye. All three seem to be equal, 
> running at 15 fps and an image of 720 (1080 caused some dropouts:
> gray sections, image shifts, etc.)? So from what I see here no
> difference between Buster and Bullseye, though I would go with 'the
> latest and greatest' just to make future updating easier.
> Instructions for Bullseye:
> https://motion-project.github.io/motion_build.html
> <https://motion-project.github.io/motion_build.html>

> > Q2 Is armhf the correct version for 32-bit and arm64 presumably for
> > 64?  

[snip]

> > Q3 I've copied /etc/motion from the old machine. Is there anything
> > else I need to keep/copy apart from those config files?
> >
> > I know the config files have changed a bit but I expect I can figure
> > out how to transfer settings to the new installation.  

[snip]



------------------------------

Message: 2
Date: Wed, 10 Aug 2022 22:36:46 +0100
From: Dave Howorth <d...@howorth.org.uk>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] moving motion to a newer machine
Message-ID: <20220810223646.09007...@acer-suse.lan>
Content-Type: text/plain; charset=UTF-8

On Wed, 10 Aug 2022 18:09:13 +0100
Dave Howorth <d...@howorth.org.uk> wrote:

> On Mon, 8 Aug 2022 09:09:58 -0500
> Barry Martin <barry3mar...@gmail.com> wrote:
> 
> > Hi Dave!
> >   
> > > I now have an R Pi 3B+ that I can substitute for the old machine
> > > and hope that might give me an upgraded frame rate. It presently
> > > has buster on it, 32-bit I think (uname -m says armv71). So:    
> > 
> > AFAIK Buster is 32-bit. /uname -m/ gives the processor type; /cat 
> > /etc/os-release/ gives some of the information you're asking about
> > but not all.? ...I'm not sure how to tell the bit option? (looks
> > like we'll both be learning!)  
> 
> Thanks for your reply. I went ahead and upgraded the pi to a 64-bit
> version. I used the official rpi-imager and that has given me
> bullseye. Now I'm confused when I look at
> https://github.com/Motion-Project/motion/releases because although I
> see an arm64 release for both bionic and buster I don't see one for
> bullseye:
> 
>  Assets 29
> 
> bionic_motion_4.4.0-1_amd64.deb
> 458 KB
> bionic_motion_4.4.0-1_arm64.deb
> 435 KB
> bionic_motion_4.4.0-1_armhf.deb
> 443 KB
> bionic_motion_4.4.0-1_i386.deb
> 464 KB
> bullseye_motion_4.4.0-1_amd64.deb
> 501 KB
> bullseye_motion_4.4.0-1_armel.deb
> 481 KB
> bullseye_motion_4.4.0-1_armhf.deb
> 485 KB
> bullseye_motion_4.4.0-1_i386.deb
> 506 KB
> buster_motion_4.4.0-1_amd64.deb
> 499 KB
> buster_motion_4.4.0-1_arm64.deb
> 485 KB
> buster_motion_4.4.0-1_armel.deb
> 479 KB
> buster_motion_4.4.0-1_armhf.deb
> 484 KB
> buster_motion_4.4.0-1_i386.deb
> 506 KB
> 
> Is there supposed to be a 64-bit version, or is there some known
> problem, or am I left to build it myself?

Hmm, so I got impatient and thought I'd have a go at building it
myself. I followed the 'Building a deb package' section from
https://motion-project.github.io/motion_build.html but it failed. The
last part of the build log is as follows:

gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/etc/motion\" 
-DLOCALEDIR=\"/usr/share/locale\" -W
date-time -D_FORTIFY_SOURCE=2 -D_THREAD_SAFE  -I/usr/include/p11-kit-1  
-Irasppicam  -I/usr/include/aarch64-linux-gnu -I/usr/include/mariadb/ 
-I/usr/include/postgresql  -g -O2 -ffile-prefix-map=/tmp/motion.QVvuLx/motion=. 
-fstack-protector-strong -Wformat -Werror=format-security -c -o 
raspicam/RaspiCamControl.o raspicam/RaspiCamControl.c
raspicam/RaspiCamControl.c:47:10: fatal error: interface/mmal/mmal.h: No such 
file or directory
   47 | #include "interface/mmal/mmal.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:477: raspicam/RaspiCamControl.o] Error 1
make[3]: *** Waiting for unfinished jobs....
mmalcam.c:38:10: fatal error: interface/mmal/mmal.h: No such file or directory
   38 | #include "interface/mmal/mmal.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:477: mmalcam.o] Error 1
make[3]: Leaving directory '/tmp/motion.QVvuLx/motion/src'
make[2]: *** [Makefile:554: all-recursive] Error 1
make[2]: Leaving directory '/tmp/motion.QVvuLx/motion'
make[1]: *** [Makefile:398: all] Error 2
make[1]: Leaving directory '/tmp/motion.QVvuLx/motion'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:10: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


So it looks to me like it thinks it is building on a raspberry pi and
therefore I must want to use a raspberry pi camera :( But I don't! And
I don't especially want to install whatever libraries etc are necessary
to build for such a device. It didn't ask me any questions.

So, is my supposition right? And is there any way to tell it not to
build the raspicam stuff, short of hacking the script about to remove
it?

TIA, Dave

> > > Q1 Would putting a 64-bit version of the OS on the machine be
> > > worthwhile? And regardless, it it worth upgrading to a newer OS
> > > release?    
> > 
> > I have three RPi 4B's here.? Two are running Bullseye and the third 
> > Buster.? With this limited experience I have not found a difference 
> > running Motion? on Buster vs. Bullseye. All three seem to be equal, 
> > running at 15 fps and an image of 720 (1080 caused some dropouts:
> > gray sections, image shifts, etc.)? So from what I see here no
> > difference between Buster and Bullseye, though I would go with 'the
> > latest and greatest' just to make future updating easier.
> > Instructions for Bullseye:
> > https://motion-project.github.io/motion_build.html
> > <https://motion-project.github.io/motion_build.html>  
> 
> > > Q2 Is armhf the correct version for 32-bit and arm64 presumably
> > > for 64?    
> 
> [snip]
> 
> > > Q3 I've copied /etc/motion from the old machine. Is there anything
> > > else I need to keep/copy apart from those config files?
> > >
> > > I know the config files have changed a bit but I expect I can
> > > figure out how to transfer settings to the new installation.    
> 
> [snip]
> 
> 
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
> 
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user



------------------------------

Message: 3
Date: Wed, 10 Aug 2022 18:57:20 -0600
From: MrDave <motionmrd...@gmail.com>
To: motion-user@lists.sourceforge.net
Subject: Re: [Motion-user] moving motion to a newer machine
Message-ID: <176a6e35-180d-3a8c-8f8c-197b5a20a...@gmail.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"

n 8/10/2022 3:36 PM, Dave Howorth wrote:
> On Wed, 10 Aug 2022 18:09:13 +0100
> Dave Howorth<d...@howorth.org.uk>  wrote:
>
>> On Mon, 8 Aug 2022 09:09:58 -0500
>> Barry Martin<barry3mar...@gmail.com>  wrote:
>>
>>> Hi Dave!
>>>    
>>>> I now have an R Pi 3B+ that I can substitute for the old machine
>>>> and hope that might give me an upgraded frame rate. It presently
>>>> has buster on it, 32-bit I think (uname -m says armv71). So:
>>> AFAIK Buster is 32-bit. /uname -m/ gives the processor type; /cat
>>> /etc/os-release/ gives some of the information you're asking about
>>> but not all.? ...I'm not sure how to tell the bit option? (looks
>>> like we'll both be learning!)
>> Thanks for your reply. I went ahead and upgraded the pi to a 64-bit
>> version. I used the official rpi-imager and that has given me
>> bullseye. Now I'm confused when I look at
>> https://github.com/Motion-Project/motion/releases  because although I
>> see an arm64 release for both bionic and buster I don't see one for
>> bullseye:
>>
>>   Assets 29
>>
>> bionic_motion_4.4.0-1_amd64.deb
>> 458 KB
>> bionic_motion_4.4.0-1_arm64.deb
>> 435 KB
>> bionic_motion_4.4.0-1_armhf.deb
>> 443 KB
>> bionic_motion_4.4.0-1_i386.deb
>> 464 KB
>> bullseye_motion_4.4.0-1_amd64.deb
>> 501 KB
>> bullseye_motion_4.4.0-1_armel.deb
>> 481 KB
>> bullseye_motion_4.4.0-1_armhf.deb
>> 485 KB
>> bullseye_motion_4.4.0-1_i386.deb
>> 506 KB
>> buster_motion_4.4.0-1_amd64.deb
>> 499 KB
>> buster_motion_4.4.0-1_arm64.deb
>> 485 KB
>> buster_motion_4.4.0-1_armel.deb
>> 479 KB
>> buster_motion_4.4.0-1_armhf.deb
>> 484 KB
>> buster_motion_4.4.0-1_i386.deb
>> 506 KB
>>
>> Is there supposed to be a 64-bit version, or is there some known
>> problem, or am I left to build it myself?
> Hmm, so I got impatient and thought I'd have a go at building it
> myself. I followed the 'Building a deb package' section from
> https://motion-project.github.io/motion_build.html  but it failed. The
> last part of the build log is as follows:
>
> gcc -DHAVE_CONFIG_H -I. -I..  -Dsysconfdir=\"/etc/motion\" 
> -DLOCALEDIR=\"/usr/share/locale\" -W
> date-time -D_FORTIFY_SOURCE=2 -D_THREAD_SAFE  -I/usr/include/p11-kit-1  
> -Irasppicam  -I/usr/include/aarch64-linux-gnu -I/usr/include/mariadb/ 
> -I/usr/include/postgresql  -g -O2 
> -ffile-prefix-map=/tmp/motion.QVvuLx/motion=. -fstack-protector-strong 
> -Wformat -Werror=format-security -c -o raspicam/RaspiCamControl.o 
> raspicam/RaspiCamControl.c
> raspicam/RaspiCamControl.c:47:10: fatal error: interface/mmal/mmal.h: No such 
> file or directory
>     47 | #include "interface/mmal/mmal.h"
>        |          ^~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> make[3]: *** [Makefile:477: raspicam/RaspiCamControl.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
> mmalcam.c:38:10: fatal error: interface/mmal/mmal.h: No such file or directory
>     38 | #include "interface/mmal/mmal.h"
>        |          ^~~~~~~~~~~~~~~~~~~~~~~
> compilation terminated.
> make[3]: *** [Makefile:477: mmalcam.o] Error 1
> make[3]: Leaving directory '/tmp/motion.QVvuLx/motion/src'
> make[2]: *** [Makefile:554: all-recursive] Error 1
> make[2]: Leaving directory '/tmp/motion.QVvuLx/motion'
> make[1]: *** [Makefile:398: all] Error 2
> make[1]: Leaving directory '/tmp/motion.QVvuLx/motion'
> dh_auto_build: error: make -j4 returned exit code 2
> make: *** [debian/rules:10: build] Error 25
> dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
>
>
> So it looks to me like it thinks it is building on a raspberry pi and
> therefore I must want to use a raspberry pi camera :( But I don't! And
> I don't especially want to install whatever libraries etc are necessary
> to build for such a device. It didn't ask me any questions.
>
> So, is my supposition right? And is there any way to tell it not to
> build the raspicam stuff, short of hacking the script about to remove
> it?
>
> TIA, Dave

The configuration process identified that there was some MMAL items on 
the computer but apparently it wasn't all of the files needed so it failed.

As for fixing this, it is a bit complex since the builddeb.sh script 
doesn't have any options to turn off the MMAL detection. It must be done 
by edits and revisions.? There are multiple ways to go about turning it 
off but the following is my suggestion.

First, the general concept/method on what you are going to try to 
accomplish.? You'll copy down the motion code, go into the directory, 
edit the configuration file that is searching for the MMAL and then run 
the builddeb.sh while in the directory for motion.? When the builddeb 
script is run from and while in the motion directory, it will copy that 
code and build a deb from it instead of cloning a fresh copy.? So the 
process would be:

git clone https://github.com/Motion-Project/motion.git
cd motion
nano configure.ac
Change the following line which is a few pages down in the MMAL section.
/AS_IF([test "${MMAL}" = "no"], [/
to
/AS_IF([test "no" = "no"], [/
cntrl-x to exit / save

Then copy the builddeb.sh file into this directory and run it. As 
indicated above, it is important that it be executed from and while in 
the motion directory so it grabs/uses the code with the edit just made.

If you are not building a deb, it is a bit easier since it is simply 
specifying --without-mmal in the configure step.? However, the 
install/uninstall is then a problem since it isn't a deb.

Finally, I'd guess you have a question as to why this isn't just out 
there as a compiled deb to download.? The answer is simple. We don't 
have one of these PIs.

 ?MrDave

>>>> Q1 Would putting a 64-bit version of the OS on the machine be
>>>> worthwhile? And regardless, it it worth upgrading to a newer OS
>>>> release?
>>> I have three RPi 4B's here.? Two are running Bullseye and the third
>>> Buster.? With this limited experience I have not found a difference
>>> running Motion? on Buster vs. Bullseye. All three seem to be equal,
>>> running at 15 fps and an image of 720 (1080 caused some dropouts:
>>> gray sections, image shifts, etc.)? So from what I see here no
>>> difference between Buster and Bullseye, though I would go with 'the
>>> latest and greatest' just to make future updating easier.
>>> Instructions for Bullseye:
>>> https://motion-project.github.io/motion_build.html
>>> <https://motion-project.github.io/motion_build.html>   
>>>> Q2 Is armhf the correct version for 32-bit and arm64 presumably
>>>> for 64?
>> [snip]
>>
>>>> Q3 I've copied /etc/motion from the old machine. Is there anything
>>>> else I need to keep/copy apart from those config files?
>>>>
>>>> I know the config files have changed a bit but I expect I can
>>>> figure out how to transfer settings to the new installation.
>> [snip]
>>
>>
>> _______________________________________________
>> Motion-user mailing list
>> Motion-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/motion-user
>> https://motion-project.github.io/
>>
>> Unsubscribe:https://lists.sourceforge.net/lists/options/motion-user
>
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe:https://lists.sourceforge.net/lists/options/motion-user
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------



------------------------------

Subject: Digest Footer

_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user


------------------------------

End of Motion-user Digest, Vol 194, Issue 5
*******************************************

Reply via email to