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

Compilation of uvgRTP on linux is failing #239

Open
nlimbani opened this issue Jan 10, 2025 · 2 comments
Open

Compilation of uvgRTP on linux is failing #239

nlimbani opened this issue Jan 10, 2025 · 2 comments
Labels
build Issues related to building uvgRTP

Comments

@nlimbani
Copy link

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

@nlimbani
Copy link
Author

When I ran "cmake .." I have following output.

xyz@ubuntu1604:/rtp_stacks/cmake-3.14.0-Linux-x86_64$ cmake --version
cmake version 3.14.0
xyz@ubuntu1604:
/rtp_stacks/uvgRTP/uvgRTP-master/build$ cmake ..
-- The CXX compiler identification is GNU 5.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Found Git: /usr/bin/git (found version "2.7.4")
-- The C compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Python: /usr/bin/python3.5 (found version "3.5.2") found components: Interpreter
fatal: Not a git repository (or any of the parent directories): .git
-- Failed to get git hash
-- No build type selected. Selecting Release. You may use CMAKE_BUILD_TYPE to select a different build type.
-- Looking for getrandom
-- Looking for getrandom - not found
-- Looking for sendmsg
-- Looking for sendmsg - found
-- Looking for sendmmsg
-- Looking for sendmmsg - found
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
PKG_CONFIG_PATH is not set. Setting it to lib/pkgconfig
libcrypto++ not found. Encryption will be disabled
-- Configuring done
-- Generating done
-- Build files have been written to: /home/xyz/rtp_stacks/uvgRTP/uvgRTP-master/build

@jrsnen
Copy link
Member

jrsnen commented Jan 17, 2025

Hi.

Thank you for submitting this. The issue seems to be that some newer code in uvgRTP requires C++17 support. You can submit a pr that fixes this, upgrade your compiler or wait that someone fixes this, but it may take a while as it is not a high priority for us to keep old C++ version supported.

BR, Joni

@jrsnen jrsnen added the build Issues related to building uvgRTP label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues related to building uvgRTP
Projects
None yet
Development

No branches or pull requests

2 participants