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

Error with camera-streamer during make build #196

Closed
mautty opened this issue Nov 2, 2023 · 1 comment
Closed

Error with camera-streamer during make build #196

mautty opened this issue Nov 2, 2023 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@mautty
Copy link

mautty commented Nov 2, 2023

What happened

When first running make build , as well as after running make buildclean and then make build I get this error at the end:

-DUSE_RTSP -I/usr/include/liveMedia -I/usr/include/groupsock -I/usr/include/BasicUsageEnvironment -I/usr/include/UsageEnvironment -DUSE_LIBDATACHANNEL -Ithird_party/libdatachannel/include -Ithird_party/libdatachannel/deps/json/include -c -o util/http/http.o util/http/http.c
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);
| ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:92: util/ffmpeg/remuxer.o] Error 1
make[2]: *** Waiting for unfinished jobs....
rm device/buffer_lock.o device/v4l2/buffer.o output/http_hls.o device/camera/camera_output.o device/v4l2/buffer_list.o device/buffer_queue.o device/buffer.o device/camera/camera_decoder.o device/links.o cmd/list-devices/main.o device/v4l2/d ebug.o device/camera/camera_input.o device/v4l2/device_options.o output/http_ffmpeg.o device/camera/camera.o device/camera/camera_rescaller.o device/libcamera/fake_camera.o cmd/camera-streamer/main.o device/buffer_list.o device/camera/camera_debug.o util/http/http.o device/camera/camera_pipeline.o device/dummy/buffer_list.o output/http_jpeg.o cmd/camera-streamer/opts.o output/output.o device/v4l2/device_list.o device/device_list.o device/v4l2/device_media.o device/dummy/device.o device/dummy/dummy.o device/dummy/buffer.o cmd/camera-streamer/http.o device/camera/camera_isp.o device/v4l2/v4l2.o device/device.o device/v4l2/device.o output/http_h264.o
make[2]: Leaving directory '/home/pi/crowsnest/bin/camera-streamer'
make[1]: *** [Makefile:62: all] Error 2
make[1]: Leaving directory '/home/pi/crowsnest/bin/camera-streamer'
make: *** [Makefile:23: build] Error 2

image

What did you expect to happen

The make build to complete successfully

How to reproduce

This happens anytime I run make build

Additional information

RPi 3b running Raspberry Pi OS Lite (32 bit)

crowsnest.log output (It just repeats)

[11/02/23 02:31:25] crowsnest: Version: v4.0.4-6-g767c53a
[11/02/23 02:31:25] crowsnest: Prepare Startup ...
[11/02/23 02:31:25] crowsnest: INFO: Host information:
[11/02/23 02:31:25] crowsnest: Host Info: Distribution: Raspbian GNU/Linux 12 (bookworm)
[11/02/23 02:31:25] crowsnest: Host Info: Kernel: Linux 6.1.0-rpi4-rpi-v7 armv7l
[11/02/23 02:31:25] crowsnest: Host Info: Model: Raspberry Pi 3 Model B Rev 1.2
[11/02/23 02:31:25] crowsnest: Host Info: Available CPU Cores: 4
[11/02/23 02:31:25] crowsnest: Host Info: Available Memory: 944088 kB
[11/02/23 02:31:25] crowsnest: Host Info: Diskspace (avail. / total): 49G / 59G
[11/02/23 02:31:25] crowsnest: INFO: Checking Dependencies
[11/02/23 02:31:25] crowsnest: Dependency: 'crudini' found in /usr/bin/crudini.
[11/02/23 02:31:25] crowsnest: Dependency: 'find' found in /usr/bin/find.
[11/02/23 02:31:25] crowsnest: Dependency: 'xargs' found in /usr/bin/xargs.
[11/02/23 02:31:25] crowsnest: Dependency: 'ustreamer' found in bin/ustreamer/ustreamer.
[11/02/23 02:31:25] crowsnest: Dependency: 'camera-streamer' not found. Exiting!
[11/02/23 02:31:31] crowsnest: crowsnest - A webcam Service for multiple Cams and Stream Services.
[11/02/23 02:31:31] crowsnest: Version: v4.0.4-6-g767c53a
[11/02/23 02:31:31] crowsnest: Prepare Startup ...
[11/02/23 02:31:31] crowsnest: INFO: Host information:
[11/02/23 02:31:31] crowsnest: Host Info: Distribution: Raspbian GNU/Linux 12 (bookworm)
[11/02/23 02:31:31] crowsnest: Host Info: Kernel: Linux 6.1.0-rpi4-rpi-v7 armv7l
[11/02/23 02:31:31] crowsnest: Host Info: Model: Raspberry Pi 3 Model B Rev 1.2
[11/02/23 02:31:31] crowsnest: Host Info: Available CPU Cores: 4
[11/02/23 02:31:31] crowsnest: Host Info: Available Memory: 944088 kB
[11/02/23 02:31:31] crowsnest: Host Info: Diskspace (avail. / total): 49G / 59G
[11/02/23 02:31:31] crowsnest: INFO: Checking Dependencies
[11/02/23 02:31:31] crowsnest: Dependency: 'crudini' found in /usr/bin/crudini.
[11/02/23 02:31:31] crowsnest: Dependency: 'find' found in /usr/bin/find.
[11/02/23 02:31:31] crowsnest: Dependency: 'xargs' found in /usr/bin/xargs.
[11/02/23 02:31:31] crowsnest: Dependency: 'ustreamer' found in bin/ustreamer/ustreamer.
[11/02/23 02:31:31] crowsnest: Dependency: 'camera-streamer' not found. Exiting!
[11/02/23 02:31:37] crowsnest: crowsnest - A webcam Service for multiple Cams and Stream Services.
[11/02/23 02:31:37] crowsnest: Version: v4.0.4-6-g767c53a
[11/02/23 02:31:37] crowsnest: Prepare Startup ...
[11/02/23 02:31:37] crowsnest: INFO: Host information:
[11/02/23 02:31:37] crowsnest: Host Info: Distribution: Raspbian GNU/Linux 12 (bookworm)
[11/02/23 02:31:37] crowsnest: Host Info: Kernel: Linux 6.1.0-rpi4-rpi-v7 armv7l
[11/02/23 02:31:37] crowsnest: Host Info: Model: Raspberry Pi 3 Model B Rev 1.2
[11/02/23 02:31:37] crowsnest: Host Info: Available CPU Cores: 4
[11/02/23 02:31:37] crowsnest: Host Info: Available Memory: 944088 kB
[11/02/23 02:31:37] crowsnest: Host Info: Diskspace (avail. / total): 49G / 59G
[11/02/23 02:31:37] crowsnest: INFO: Checking Dependencies
[11/02/23 02:31:37] crowsnest: Dependency: 'crudini' found in /usr/bin/crudini.
[11/02/23 02:31:37] crowsnest: Dependency: 'find' found in /usr/bin/find.
[11/02/23 02:31:37] crowsnest: Dependency: 'xargs' found in /usr/bin/xargs.
[11/02/23 02:31:37] crowsnest: Dependency: 'ustreamer' found in bin/ustreamer/ustreamer.
[11/02/23 02:31:37] crowsnest: Dependency: 'camera-streamer' not found. Exiting!
[11/02/23 02:31:43] crowsnest: crowsnest - A webcam Service for multiple Cams and Stream Services.
[11/02/23 02:31:43] crowsnest: Version: v4.0.4-6-g767c53a
[11/02/23 02:31:43] crowsnest: Prepare Startup ...
[11/02/23 02:31:43] crowsnest: INFO: Host information:
[11/02/23 02:31:43] crowsnest: Host Info: Distribution: Raspbian GNU/Linux 12 (bookworm)
[11/02/23 02:31:43] crowsnest: Host Info: Kernel: Linux 6.1.0-rpi4-rpi-v7 armv7l
[11/02/23 02:31:43] crowsnest: Host Info: Model: Raspberry Pi 3 Model B Rev 1.2
[11/02/23 02:31:43] crowsnest: Host Info: Available CPU Cores: 4
[11/02/23 02:31:43] crowsnest: Host Info: Available Memory: 944088 kB
[11/02/23 02:31:43] crowsnest: Host Info: Diskspace (avail. / total): 49G / 59G
[11/02/23 02:31:43] crowsnest: INFO: Checking Dependencies
[11/02/23 02:31:44] crowsnest: Dependency: 'crudini' found in /usr/bin/crudini.
[11/02/23 02:31:44] crowsnest: Dependency: 'find' found in /usr/bin/find.
[11/02/23 02:31:44] crowsnest: Dependency: 'xargs' found in /usr/bin/xargs.
[11/02/23 02:31:44] crowsnest: Dependency: 'ustreamer' found in bin/ustreamer/ustreamer.
[11/02/23 02:31:44] crowsnest: Dependency: 'camera-streamer' not found. Exiting!

@mautty mautty added the bug Something isn't working label Nov 2, 2023
@mryel00
Copy link
Member

mryel00 commented Nov 2, 2023

Duplicate of #188
Also you should run sudo make install for the initial installation, as it will still setup things after building the backends successfully.

@mryel00 mryel00 added the duplicate This issue or pull request already exists label Nov 2, 2023
@mryel00 mryel00 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants