You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "C:/deps/skia/gn/highest_version_dir.py", line 17, in <module>
print(sorted(filter(regex.match, os.listdir(dirpath)))[-1])
IndexError: list index out of range
ERROR at //gn/BUILDCONFIG.gn:155:25: Script returned non-zero exit code.
clang_win_version = exec_script("//gn/highest_version_dir.py",
^----------
Current dir: C:/deps/skia/out/Release-x64/
Command: C:/deps/depot_tools/bootstrap-2@3_8_10_chromium_26_bin/python3/bin/python3.exe C:/deps/skia/gn/highest_version_dir.py "c:\deps\llvm/lib/clang" "[0-9]+\.[0-9]+\.[0-9]+"
Returned 1.
The file that encountered the error =>
The text was updated successfully, but these errors were encountered:
SkillSageDev
changed the title
Command used for building skia gives me IndesxError: list index out of range
The super long command gives me IndesxError: list index out of range
Dec 24, 2023
I solved the issue by downloading the compiled skia from here https://github.com/aseprite/skia/releases/tag/m102-861e4743af
this way you don't have to download llvm (clang) and depot tools
you need only the Ninja build system and the visual studio with Desktop development with C++ only
and do same steps here if you are in windows like me
in deps folder creat skia folder only and uncompress the compiled skia there, that you downloaded from here
and don't forget to add ninja to the path
and that's it just follow the steps in the photo and it should work.
I use windows 11, visuale studio 2022 and windows 11 sdk
The Code:
gn gen out/Release-x64 --args="is_debug=false is_official_build=true skia_use_system_expat=false skia_use_system_icu=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false skia_use_sfntly=false skia_use_freetype=true skia_use_harfbuzz=true skia_pdf_subset_harfbuzz=true skia_use_system_freetype2=false skia_use_system_harfbuzz=false target_cpu=""x64"" cc=""clang"" cxx=""clang++"" clang_win=""c:\deps\llvm"" win_vc=""C:\Program Files\Microsoft Visual Studio\2022\Community\VC"" extra_cflags=[""-MT""]"
The Error:
The file that encountered the error =>
The text was updated successfully, but these errors were encountered: