mpromonet / v4l2rtspserver

RTSP Server for V4L2 device capture supporting HEVC/H264/JPEG/VP8/VP9
The Unlicense
1.86k stars 428 forks source link

The v4l2rtspserver doesn't install on the Raspberry pi Zero 2W with OS Linux BookWorm #331

Closed csm7 closed 5 months ago

csm7 commented 6 months ago

The v4l2rtspserver doesn't install on the Raspberry pi Zero 2W with OS Linux BookWorm. Is it possible to decide this problem?

Doesn't load video-dev/hls.js in process of compilation.

kawogi commented 5 months ago

I'm facing the same issue. Some more info on the exact error:

This is caused by calling cmake on a freshly cloned repo

camera@camera1:~/v4l2rtspserver $ cmake .
-- CMAKE_TOOLCHAIN_FILE=
-- CMAKE_C_COMPILER=/usr/bin/cc
-- CMAKE_CXX_COMPILER=/usr/bin/c++
OpenSSL_FOUND = FALSE
-- Could NOT find libliveMedia (missing: LIBLIVEMEDIA_LIBRARY LIBLIVEMEDIA_INCLUDE_DIR) 
-- Could NOT find libUsageEnvironment (missing: LIBUSAGEENVIRONMENT_LIBRARY LIBUSAGEENVIRONMENT_INCLUDE_DIR) 
-- Could NOT find libBasicUsageEnvironment (missing: LIBBASICUSAGEENVIRONMENT_LIBRARY LIBBASICUSAGEENVIRONMENT_INCLUDE_DIR) 
-- Could NOT find libgroupsock (missing: LIBGROUPSOCK_LIBRARY LIBGROUPSOCK_INCLUDE_DIR) 
ALSA_FOUND = FALSE
running git submodule update --init 2>&1
Cloning into '/home/camera/v4l2rtspserver/hls.js'...
error: 3653 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
fatal: clone of 'https://github.com/video-dev/hls.js' into submodule path '/home/camera/v4l2rtspserver/hls.js' failed
Failed to clone 'hls.js'. Retry scheduled
Cloning into '/home/camera/v4l2rtspserver/hls.js'...
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 5935 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
fatal: clone of 'https://github.com/video-dev/hls.js' into submodule path '/home/camera/v4l2rtspserver/hls.js' failed
Failed to clone 'hls.js' a second time, aborting
CMake Error at CMakeLists.txt:126 (add_subdirectory):
  The source directory

    /home/camera/v4l2rtspserver/libv4l2cpp

  does not contain a CMakeLists.txt file.

-- SystemD available
-- SystemD directory '/lib/systemd/system'
-- CPACK_DEBIAN_PACKAGE_ARCHITECTURE=armhf
-- Configuring incomplete, errors occurred!
See also "/home/camera/v4l2rtspserver/CMakeFiles/CMakeOutput.log".

Hardware: Raspberry Pi Zero2 W

$ uname -a
Linux camera1 6.6.28+rpt-rpi-v7 #1 SMP Raspbian 1:6.6.28-1+rpt1 (2024-04-22) armv7l GNU/Linux