I am trying to compile the latest uvgRTP library on the ubuntu, but it is failing , following is the error
[ 18%] Building CXX object CMakeFiles/uvgrtp.dir/src/reception_flow.cc.o
/home/platform/rtp_stacks/uvgRTP/uvgRTP-master/src/reception_flow.cc: In member function \u2018rtp_error_t uvgrtp::reception_flow::install_receive_hook(void*, void ()(void, uvgrtp::frame::rtp_frame*), uint32_t)\u2019:
/home/platform/rtp_stacks/uvgRTP/uvgRTP-master/src/reception_flow.cc:207:45: error: could not convert \u2018{arg, hook}\u2019 from \u2018\u2019 to \u2018uvgrtp::receive_pkt_hook\u2019
receive_pkt_hook new_hook = { arg, hook };
^
/home/platform/rtp_stacks/uvgRTP/uvgRTP-master/src/reception_flow.cc: In member function \u2018int uvgrtp::reception_flow::clear_stream_from_flow(std::shared_ptr<std::atomic >)\u2019:
/home/platform/rtp_stacks/uvgRTP/uvgRTP-master/src/reception_flow.cc:728:5: error: \u2018scoped_lock\u2019 is not a member of \u2018std\u2019
std::scoped_lock hlg(hooks_mutex_, handlers_mutex_);
^
/home/platform/rtp_stacks/uvgRTP/uvgRTP-master/src/reception_flow.cc: In member function \u2018rtp_error_t uvgrtp::reception_flow::update_remote_ssrc(uint32_t, uint32_t)\u2019:
/home/platform/rtp_stacks/uvgRTP/uvgRTP-master/src/reception_flow.cc:744:5: error: \u2018scoped_lock\u2019 is not a member of \u2018std\u2019
std::scoped_lock hlg(hooks_mutex_, handlers_mutex_);
^
CMakeFiles/uvgrtp.dir/build.make:153: recipe for target 'CMakeFiles/uvgrtp.dir/src/reception_flow.cc.o' failed
make[2]: *** [CMakeFiles/uvgrtp.dir/src/reception_flow.cc.o] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/uvgrtp.dir/all' failed
make[1]: *** [CMakeFiles/uvgrtp.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
I am trying to compile the latest uvgRTP library on the ubuntu, but it is failing , following is the error
[ 18%] Building CXX object CMakeFiles/uvgrtp.dir/src/reception_flow.cc.o
/home/platform/rtp_stacks/uvgRTP/uvgRTP-master/src/reception_flow.cc: In member function \u2018rtp_error_t uvgrtp::reception_flow::install_receive_hook(void*, void ()(void, uvgrtp::frame::rtp_frame*), uint32_t)\u2019:
/home/platform/rtp_stacks/uvgRTP/uvgRTP-master/src/reception_flow.cc:207:45: error: could not convert \u2018{arg, hook}\u2019 from \u2018\u2019 to \u2018uvgrtp::receive_pkt_hook\u2019
receive_pkt_hook new_hook = { arg, hook };
^
/home/platform/rtp_stacks/uvgRTP/uvgRTP-master/src/reception_flow.cc: In member function \u2018int uvgrtp::reception_flow::clear_stream_from_flow(std::shared_ptr<std::atomic >)\u2019:
/home/platform/rtp_stacks/uvgRTP/uvgRTP-master/src/reception_flow.cc:728:5: error: \u2018scoped_lock\u2019 is not a member of \u2018std\u2019
std::scoped_lock hlg(hooks_mutex_, handlers_mutex_);
^
/home/platform/rtp_stacks/uvgRTP/uvgRTP-master/src/reception_flow.cc: In member function \u2018rtp_error_t uvgrtp::reception_flow::update_remote_ssrc(uint32_t, uint32_t)\u2019:
/home/platform/rtp_stacks/uvgRTP/uvgRTP-master/src/reception_flow.cc:744:5: error: \u2018scoped_lock\u2019 is not a member of \u2018std\u2019
std::scoped_lock hlg(hooks_mutex_, handlers_mutex_);
^
CMakeFiles/uvgrtp.dir/build.make:153: recipe for target 'CMakeFiles/uvgrtp.dir/src/reception_flow.cc.o' failed
make[2]: *** [CMakeFiles/uvgrtp.dir/src/reception_flow.cc.o] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/uvgrtp.dir/all' failed
make[1]: *** [CMakeFiles/uvgrtp.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2