I’ve followed the installation instructions for libmediasoupclient on my Mac but I am getting the following error after executing “ninja -C out/m84” to build libwebrtc:
./../test/testsupport/perf_test_histogram_writer_no_protobuf.cc:19:1: error: non-void function does not return a value [-Werror,-Wreturn-type]
I’ve checked the perf_test_histogram_writer_no_protobuf.cc file and there is indeed no return value:
PerfTestResultWriter* CreateHistogramWriter() {
RTC_NOTREACHED() << "Cannot run perf tests with rtc_enable_protobuf = false. "
"Perf write results as protobufs.";
}
However, I didn’t experience this issue 3 weeks ago. Did something change? Has anyone else encountered this issue and solved it?
Yes I was using m84 as per the documentation. Just that I got the error when building it using ninja. I am still getting the error unless I add a line to the perf_test_histogram_writer_no_protobuf.cc file to return a nullptr.
But this involves editing a source file of libwebrtc which I don’t know whether is ideal in the long run.
I’m getting the same error while trying to compile on aws ec2.
adding return nullptr; as suggested, solves the problem.
I’m too using ‘rtc_include_tests=false’ in gn gen