I'm trying to install mediastreamer2 on a raspberry pi so that I can install linphone, but I'm getting the below errors using make. Has anyone seen these errors before and know what causes them?
Thanks.
/home/pi/mediastreamer2/src/voip/bandwidthcontroller.c: In function ‘on_video_bandwidth_estimation_available’:
/home/pi/mediastreamer2/src/voip/bandwidthcontroller.c:111:38: error: ‘const union <anonymous>’ has no member named ‘video_bandwidth_available’
float estimated_bitrate = evd->info.video_bandwidth_available;
^
/home/pi/mediastreamer2/src/voip/bandwidthcontroller.c: In function ‘elect_controlled_stream’:
/home/pi/mediastreamer2/src/voip/bandwidthcontroller.c:124:2: error: unknown type name ‘OrtpVideoBandwidthEstimatorParams’
OrtpVideoBandwidthEstimatorParams params = {0};
^
/home/pi/mediastreamer2/src/voip/bandwidthcontroller.c:136:71: error: ‘ORTP_EVENT_NEW_VIDEO_BANDWIDTH_ESTIMATION_AVAILABLE’ undeclared (first use in this function)
ortp_ev_dispatcher_connect(media_stream_get_event_dispatcher(ms), ORTP_EVENT_NEW_VIDEO_BANDWIDTH_ESTIMATION_AVAILABLE, 0,
^
/home/pi/mediastreamer2/src/voip/bandwidthcontroller.c:136:71: note: each undeclared identifier is reported only once for each function it appears in
/home/pi/mediastreamer2/src/voip/bandwidthcontroller.c:138:11: error: request for member ‘enabled’ in something not a structure or union
params.enabled = TRUE;
^
/home/pi/mediastreamer2/src/voip/bandwidthcontroller.c:139:5: error: implicit declaration of function ‘rtp_session_enable_video_bandwidth_estimator’ [-Werror=implicit-function-declaration]
rtp_session_enable_video_bandwidth_estimator(ms->sessions.rtp_session, ¶ms);
^
/home/pi/mediastreamer2/src/voip/bandwidthcontroller.c: In function ‘ms_bandwidth_controller_remove_stream’:
/home/pi/mediastreamer2/src/voip/bandwidthcontroller.c:159:2: error: unknown type name ‘OrtpVideoBandwidthEstimatorParams’
OrtpVideoBandwidthEstimatorParams params = {0};
^
/home/pi/mediastreamer2/src/voip/bandwidthcontroller.c:164:75: error: ‘ORTP_EVENT_NEW_VIDEO_BANDWIDTH_ESTIMATION_AVAILABLE’ undeclared (first use in this function)
ortp_ev_dispatcher_disconnect(media_stream_get_event_dispatcher(stream), ORTP_EVENT_NEW_VIDEO_BANDWIDTH_ESTIMATION_AVAILABLE, 0,
^
/home/pi/mediastreamer2/src/voip/bandwidthcontroller.c:166:8: error: request for member ‘enabled’ in something not a structure or union
params.enabled = FALSE;
^
/home/pi/mediastreamer2/src/voip/bandwidthcontroller.c: At top level:
cc1: error: unrecognized command line option "-Wno-format-truncation" [-Werror]
cc1: all warnings being treated as errors
src/CMakeFiles/mediastreamer_voip-static.dir/build.make:878: recipe for target 'src/CMakeFiles/mediastreamer_voip-static.dir/voip/bandwidthcontroller.c.o' failed
make[2]: *** [src/CMakeFiles/mediastreamer_voip-static.dir/voip/bandwidthcontroller.c.o] Error 1
CMakeFiles/Makefile2:306: recipe for target 'src/CMakeFiles/mediastreamer_voip-static.dir/all' failed
make[1]: *** [src/CMakeFiles/mediastreamer_voip-static.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2