Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The super long command gives me IndesxError: list index out of range #31

Open
SkillSageDev opened this issue Dec 24, 2023 · 1 comment

Comments

@SkillSageDev
Copy link

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:

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 =>

image

@SkillSageDev 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
@SkillSageDev
Copy link
Author

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
image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant