【问题标题】:Build errors with Ninja and Skia. Unable to find icudtl.dat even though the file exists使用 Ninja 和 Skia 构建错误。即使文件存在也无法找到 icudtl.dat
【发布时间】:2020-05-19 18:49:05
【问题描述】:

有人知道我为什么会收到这个错误吗?

[1/2620] copy ../../third_party/externals/icu/common/icudtl.dat icudtl.dat
FAILED: icudtl.dat
python E:/Development/c++/skia/skia/gn/cp.py ../../third_party/externals/icu/common/icudtl.dat icudtl.dat
CreateProcess failed: The system cannot find the file specified.
ninja: fatal: ReadFile: The handle is invalid.

我查找了文件,它位于 third_party/externals/icu/common/icudtl.dat 中

我用 fetch 克隆了skia

我的 args.gn 是

is_official_build               = true
is_debug                        = false
is_component_build              = false
skia_use_system_libjpeg_turbo   = false
skia_use_system_libpng          = false
skia_use_system_libwebp         = false
skia_use_system_zlib            = false
skia_use_system_icu             = false
skia_use_system_harfbuzz        = false

cc          = "clang"
cxx         = "clang++"
clang_win   = "C:\Program Files\LLVM"

【问题讨论】:

    标签: python build ninja skia gn


    【解决方案1】:

    我遇到了一个非常相似的错误,刚刚完成调试。

    您在 CreateProcess 上遇到错误。它当时试图创建的进程是 Python,所以要么你没有安装 Python,要么(更有可能)构建系统没有在正确的位置寻找它。使用 -v 标志运行以查看实际的错误消息并确认这一点。

    我的错误是没有安装 Python(它是),我可以从 Windows 应用商店获得它。我没有费心与构建系统进行斗争来弄清楚为什么它没有找到正确的位置,而是安装了 Python 的 Windows Store 版本,它解决了这个问题。

    【讨论】:

      【解决方案2】:

      我知道现在回答已经很晚了,但可能对你的浏览有所帮助! 导航到 /Applications/Python/version/ 和 单击安装证书。命令 这样就可以了。

      【讨论】:

        猜你喜欢
        • 2022-12-16
        • 2022-07-12
        • 2017-08-06
        • 1970-01-01
        • 2022-06-15
        • 2020-10-06
        • 1970-01-01
        • 2021-09-30
        • 2015-10-26
        相关资源
        最近更新 更多