ayufan / camera-streamer

High-performance low-latency camera streamer for Raspberry PI's
313 stars 47 forks source link

Raspberry PI OS Bookworm 64 Bit error during first installation script #107

Open phuzzyday opened 11 months ago

phuzzyday commented 11 months ago

Are there packages which haven't yet caught up to the new OS?

See error posted below

pi@PI4:~ $ if [[ -e /etc/default/raspberrypi-kernel ]]; then PACKAGE=camera-streamer-raspi0.2.6.bullseye$(dpkg --print-architecture).deb else PACKAGE=camera-streamer-generic0.2.6.bullseye$(dpkg --print-architecture).de b fi wget "https://github.com/ayufan/camera-streamer/releases/download/v0.2.6/$PACKAG E" sudo apt install "$PWD/$PACKAGE" --2023-10-12 13:17:03-- https://github.com/ayufan/camera-streamer/releases/down load/v0.2.6/camera-streamer-generic_0.2.6.bullseyearm64.deb Resolving github.com (github.com)... 140.82.114.3 Connecting to github.com (github.com)|140.82.114.3|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://objects.githubusercontent.com/github-production-release-asset- 2e65be/477898191/6f0c9005-c297-4243-82f1-c23fccbfe95b?X-Amz-Algorithm=AWS4-HMAC- SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231012%2Fus-east-1%2Fs3%2Faws4 request&X-Amz-Date=20231012T191704Z&X-Amz-Expires=300&X-Amz-Signature=726e25c522 e28d4dd9cb8bbf98f072ef3774e8c1abcb991dc475142c34c34b1f&X-Amz-SignedHeaders=host& actor_id=0&key_id=0&repo_id=477898191&response-content-disposition=attachment%3B %20filename%3Dcamera-streamer-generic_0.2.6.bullseye_arm64.deb&response-content- type=application%2Foctet-stream [following] --2023-10-12 13:17:04-- https://objects.githubusercontent.com/github-production -release-asset-2e65be/477898191/6f0c9005-c297-4243-82f1-c23fccbfe95b?X-Amz-Algor ithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231012%2Fus-east -1%2Fs3%2Faws4_request&X-Amz-Date=20231012T191704Z&X-Amz-Expires=300&X-Amz-Signa ture=726e25c522e28d4dd9cb8bbf98f072ef3774e8c1abcb991dc475142c34c34b1f&X-Amz-Sign edHeaders=host&actor_id=0&key_id=0&repo_id=477898191&response-content-dispositio n=attachment%3B%20filename%3Dcamera-streamer-generic_0.2.6.bullseye_arm64.deb&re sponse-content-type=application%2Foctet-stream Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.1 99.108.133, 185.199.111.133, 185.199.110.133, ... Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185. 199.108.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 10682248 (10M) [application/octet-stream] Saving to: ‘camera-streamer-generic_0.2.6.bullseye_arm64.deb’

camera-streamer-gen 100%[===================>] 10.19M 10.1MB/s in 1.0s

2023-10-12 13:17:05 (10.1 MB/s) - ‘camera-streamer-generic_0.2.6.bullseye_arm64. deb’ saved [10682248/10682248]

Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'camera-streamer-generic' instead of '/home/pi/camera-streamer-g eneric_0.2.6.bullseye_arm64.deb' Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: camera-streamer-generic : Depends: libavcodec58 (>= 7:4.0) libavformat58 : Depends: libavcodec58 (= 8:4.3.6-0+deb11u1+rpt5) Depends: libsrt1.4-gnutls (>= 1.4.2) but it is not installable E: Unable to correct problems, you have held broken packages.

ayufan commented 11 months ago

@phuzzyday Not yet, will update it over weekend.

bb5d0 commented 11 months ago

I also just upgraded to bookworm. Compiling it manually, the error looks like this:

util/ffmpeg/remuxer.c: In function ‘ffmpeg_remuxer_open’: util/ffmpeg/remuxer.c:97:33: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers] 97 | AVInputFormat *input_format = av_find_input_format(remuxer->input_format); | ^~~~~~~~ cc -std=gnu17 -MMD -Werror -Wall -g -I/home/user/camera-streamer -D_GNU_SOURCE -DUSE_HW_H264 -DUSE_FFMPEG -DUSE_LIBCAMERA -I/usr/include/libcamera -DUSE_RTSP -I/usr/include/liveMedia -I/usr/include/groupsock -I/usr/include/BasicUsageEnvironment -I/usr/include/UsageEnvironment -c -o util/opts/opts.o util/opts/opts.c cc1: all warnings being treated as errors g++ -std=c++17 -MMD -Werror -Wall -g -I/home/user/camera-streamer -D_GNU_SOURCE -DUSE_HW_H264 -DUSE_FFMPEG -DUSE_LIBCAMERA -I/usr/include/libcamera -DUSE_RTSP -I/usr/include/liveMedia -I/usr/include/groupsock -I/usr/include/BasicUsageEnvironment -I/usr/include/UsageEnvironment -c -o cmd/camera-streamer/status.o cmd/camera-streamer/status.cc make[1]: *** [Makefile:92: util/ffmpeg/remuxer.o] Error 1

ayufan commented 11 months ago

Should be fine: https://github.com/ayufan/camera-streamer/releases/tag/v0.2.7

bb5d0 commented 11 months ago

Okay, I just noticed I was still on the master git branch where recursive cloning wasn't needed. (this still works very well with bullseye!)

Compiling and installing the newest recursive clone of the main branch works with bookworm! Okay! (but compiling takes a lot longer...)