srs-bench icon indicating copy to clipboard operation
srs-bench copied to clipboard

编译时缺少文件srt/srt.h

Open 13811630872 opened this issue 8 months ago • 2 comments

root@mark-VMware-Virtual-Platform:~/workspace/srs-work/srs-bench# make CGO_CFLAGS="-I/usr/local/include" CGO_LDFLAGS="-L/usr/local/lib -lsrt -L/usr/local/ssl/lib -lcrypto -lstdc++ -lm -ldl" go build -mod=vendor -o objs/srs_bench .

github.com/haivision/srtgo

vendor/github.com/haivision/srtgo/accept.go:5:10: fatal error: srt/srt.h: No such file or directory 5 | #include <srt/srt.h> | ^~~~~~~~~~~ compilation terminated. make: *** [Makefile:29: objs/srs_bench] Error 1

所以这个安装什么依赖包?

13811630872 avatar Feb 22 '25 02:02 13811630872