用忍者和斯基亚制造错误。即使文件存在,也无法找到icudtl.dat

2024-06-06 10:10:16 发布

您现在位置:Python中文网/ 问答频道 /正文

有人知道我为什么会出错吗?

[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.

我在第三方/externals/icu/common/icudtl.dat中查找该文件

我曾经克隆过斯基亚

我的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"

Tags: thefalseisusepartycommonsystemdat
1条回答
网友
1楼 · 发布于 2024-06-06 10:10:16

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

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

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

相关问题 更多 >