mpromonet / v4l2rtspserver

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

make fails in ServerMediaSubsession.cpp.o: RawVideoRTPSink.hh:35:3: note: candidate expects 8 arguments, 7 provided #198

Closed bschaefer99 closed 3 years ago

bschaefer99 commented 3 years ago
[  5%] Building CXX object CMakeFiles/libv4l2rtspserver.dir/src/ServerMediaSubsession.cpp.o
/root/v4l2rtspserver/src/ServerMediaSubsession.cpp: In static member function ‘static RTPSink* BaseServerMediaSubsession::createSink(UsageEnvironment&, Groupsock*, unsigned char, const string&, V4L2DeviceSource*)’:
/root/v4l2rtspserver/src/ServerMediaSubsession.cpp:87:146: error: no matching function for call to ‘RawVideoRTPSink::createNew(UsageEnvironment&, Groupsock*&, unsigned char&, int, int, int, const char*)’
   videoSink = RawVideoRTPSink::createNew(env, rtpGroupsock, rtpPayloadTypeIfDynamic, source->getHeight(), source->getWidth(), 8, sampling.c_str());
                                                                                                                                                  ^
In file included from /root/v4l2rtspserver/live/liveMedia/include/liveMedia.hh:99,
                 from /root/v4l2rtspserver/inc/ServerMediaSubsession.h:20,
                 from /root/v4l2rtspserver/src/ServerMediaSubsession.cpp:14:
/root/v4l2rtspserver/live/liveMedia/include/RawVideoRTPSink.hh:35:3: note: candidate: ‘static RawVideoRTPSink* RawVideoRTPSink::createNew(UsageEnvironment&, Groupsock*, u_int8_t, unsigned int, unsigned int, unsigned int, const char*, const char*)’
   createNew(UsageEnvironment& env, Groupsock* RTPgs, u_int8_t rtpPayloadFormat,
   ^~~~~~~~~
/root/v4l2rtspserver/live/liveMedia/include/RawVideoRTPSink.hh:35:3: note:   candidate expects 8 arguments, 7 provided
make[2]: *** [CMakeFiles/libv4l2rtspserver.dir/build.make:2715: CMakeFiles/libv4l2rtspserver.dir/src/ServerMediaSubsession.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:110: CMakeFiles/libv4l2rtspserver.dir/all] Error 2
make: *** [Makefile:163: all] Error 2

As far as i can tell, i have all the pre-requisites in place.

mpromonet commented 3 years ago

Hi Brian,

Yes you are right, live555 change its interface removing the default last argument and changing the order. I will fix this.

Best Regards, Michel.

bschaefer99 commented 3 years ago

Thanks for the quick response, @mpromonet ! I was just double checking my dependencies when i saw your update.

bschaefer99 commented 3 years ago

Got 'em! [100%] Built target v4l2rtspserver