• 错误如下:

    hread 'main' panicked at 'Failed to find libsrtp2 via pkg-config: `PKG_CONFIG_ALLOW_SYSTEM_CFLAGS="1" PKG_CONFIG_ALLOW_SYSTEM_LIBS="1" "pkg-config" "--static" "--libs" "--cflags" "libsrtp2" "libsrtp2 >= 2.3.0"` did not exit successfully: exit status: 1
    error: could not find system library 'libsrtp2' required by the 'srtp2-sys' crate
    
    --- stderr
    Package libsrtp2 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libsrtp2.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libsrtp2' found
    
    • 解決方案

      apt install libsrtp2-dev