Motion-Project / motionplus

MotionPlus Home Page: https://motion-project.github.io/
GNU General Public License v3.0
293 stars 38 forks source link

Ubuntu 24.04 had some updates. Since then, the 0.2.1 release does not compile anymore. #180

Closed axeljerabek closed 1 month ago

axeljerabek commented 1 month ago

Did you read the guide?

Yes

What is the base version number of MotionPlus being used?

0.2.x

What was the install method?

Built from source code

What is base architecture?

x86/x64

What is the distro being used?

Ubuntu

Disto version number

24.04

Camera/Sound type(s) being used?

Network camera with RTSP, Network camera with HTTP

Describe the issue/problem and steps to reproduce

Compile does not work anymore. There were some updates for the 24.04 distribution last week on the libav packages i think.

Output from fresh source:

webu_mpegts.cpp: In function ‘int webu_mpegts_open(ctx_webui)’: webu_mpegts.cpp:332:17: error: invalid conversion from ‘int ()(void, uint8_t, int)’ {aka ‘int ()(void, unsigned char, int)’} to ‘int ()(void, const uint8_t, int)’ {aka ‘int ()(void, const unsigned char*, int)’} [-fpermissive] 332 , NULL, &webu_mpegts_avio_buf, NULL); ^~~~~
int ()(void, uint8_t, int) {aka int ()(void, unsigned char, int)}

In file included from /usr/include/x86_64-linux-gnu/libavformat/avformat.h:319: /usr/include/x86_64-linux-gnu/libavformat/avio.h:404:25: note: initializing argument 6 of ‘AVIOContext avio_alloc_context(unsigned char, int, int, void, int ()(void, uint8_t, int), int ()(void, const uint8_t, int), int64_t ()(void, int64_t, int))’ 404 | int (write_packet)(void opaque, const uint8_t buf, int buf_size), | ~~^~~~~~~~~~~~~ make[2]: [Makefile:497: webu_mpegts.o] Fehler 1 make[2]: Verzeichnis „/home/axel/dev/motionplus/motionplus-0.2.1/motionplus-release-0.2.1/src“ wird verlassen make[1]: [Makefile:567: all-recursive] Fehler 1 make[1]: Verzeichnis „/home/axel/dev/motionplus/motionplus-0.2.1/motionplus-release-0.2.1“ wird verlassen make: *** [Makefile:411: all] Fehler 2 root@home:/home/axel/dev/motionplus/motionplus-0.2.1/motionplus-release-0.2.1#

Relevant MotionPlus log output (at log_level 8)

none
Mr-Dave commented 1 month ago

Pretty sure this is resolved in the master branch. Commit 06b8fe6 handled most of it.

axeljerabek commented 1 month ago

That was the other bug I reported. The master branch compiles, runs, but dies after a short while. Cannot see why.

axeljerabek commented 1 month ago

And just today, again updates on these packages: libavcodec-dev libavcodec60 libavdevice-dev libavdevice60 libavfilter-dev libavfilter9 libavformat-dev libavformat60 libavutil-dev libavutil58 libpostproc-dev libpostproc57 libswresample-dev libswresample4 libswscale-dev libswscale7

Is there a solution already? Maybe an update to the 0.2.1 branch? That would be great news :)

axeljerabek commented 1 month ago

Oh wait! The 0.2.1 branch compiles again! Seems the Ubuntu updates fixed it! YAY 👯

Seems you can skip this bug. :)

axeljerabek commented 1 month ago

yes, confirm. Tested everything and it is rockstable again. Bug is gone :)