【发布时间】:2021-02-10 01:59:16
【问题描述】:
在我从 chromium 站点添加“Hello world”示例后,我尝试编译 chromium 代码:
https://www.chromium.org/developers/webui
我得到这个错误:
**../../../chrome/browser/ui/webui/hello_world_ui.cc:21:16:错误:'content::WebUIDataSource'中没有名为'SetJsonPath'的成员 html_source->SetJsonPath("strings.js");
1 error generated.
ninja: build stopped: subcommand failed.**
i open the "web_ui_data_source.h" file and the function 'SetJsonPath()' wasn't there .
please help me , what do i need do?
【问题讨论】:
-
如果您恢复更改,它会编译吗?
-
你是什么意思?就像我完全删除了我添加的“Hello world”文件?如果是这样的话。
-
您尚未发布可复制的问题。我们如何找出问题所在?
-
这是下面的完整错误:
标签: c++ json browser chromium webui