? ? ? 官网下载srs4.0代码,命令行执行./configure --with-gb28181 --osx? 然后执行make。下一步配置VScode,launch.json配置如下:
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug",
"program": "${workspaceFolder}/objs/srs",
"args": ["-c", "${workspaceFolder}/conf/push.gb28181.conf"],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"externalConsole": false,
"environment": [],
"MIMode": "lldb"
}
]
task.json配置如下:
"version": "2.0.0",
"tasks": [
{
"label": "Build with Clang",
"type": "shell",
"command": "clang++",
"args": [
"${file}",
"-std=c++14",
"-o",
"${fileDirname}/${fileBasenameNoExtension}.out",
"-g",
"--debug"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
|