Mac 开发 HM-16.9

该博客介绍了如何在Mac环境下通过Homebrew安装SVN,并使用SVN下载特定版本的HM工程。随后,详细阐述了在Visual Studio Code(VsCode)中配置launch.json和tasks.json以进行编译和运行HM工程的步骤。通过执行预设的make任务,可以在指定目录下编译HM源码并运行测试。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

下载

安装svn

brew install svn

使用svn下载HM工程

svn checkout https://hevc.hhi.fraunhofer.de/svn/svn_HEVCSoftware/tags/HM-16.9/

备注:关于需要的HM版本可查阅https://hevc.hhi.fraunhofer.de/svn/svn_HEVCSoftware/tags/
执行上述命令之后,在当前所在目录下会出现HM的目录文件夹

编译和运行

在VsCode中点击运行按钮,配置launch.json和tasks.json
launch.json

{    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [

        {
            "name": "test hm",
            "type": "cppdbg",
            "request": "launch",
            "program": "/Users/admin/desktop/HM/HM-16.9/bin/TAppEncoderStatic",
            "args": [
                "-c", "cfg/per-sequence/BasketballDrill.cfg",
                "-c", "cfg/encoder_intra_main.cfg",
            ],
            "stopAtEntry": false,
            "cwd": "/Users/admin/desktop/HM/HM-16.9",
            "environment": [],
            "externalConsole": false,
            "MIMode": "lldb",
            "preLaunchTask": "hm build",
        },
    ]
}

tasks.json

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "hm build",
            "type": "shell",
            "command": "make",
            "args": ["-j"],
            "options": {
                "cwd": "/Users/admin/desktop/HM/HM-16.9/build/linux" //current working directory
            },
            "group": {
                "kind":"build",
                "isDefault": true,
            },
            // Use the standard MS compiler pattern to detect errors, warnings and infos
            "problemMatcher": "$gcc",
            "detail": "Task generated by Debugger."
        }
        
    ]
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值