aseprite / skia

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.
https://skia.org
BSD 3-Clause "New" or "Revised" License
181 stars 45 forks source link

Unable to build on windows 11 #32

Closed namiwa closed 9 months ago

namiwa commented 9 months ago

Getting this error after tools/git-sync-deps step on windows 11

C:\deps\skia>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 (x86)\Microsoft Visual Studio\2019\Community\VC"" extra_cflags=[""-MT""]"
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])
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:/Program Files (x86)/Windows Kits/10/Include'
ERROR at //gn/BUILDCONFIG.gn:147:23: Script returned non-zero exit code.
    win_sdk_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:/Program Files (x86)/Windows Kits/10/Include" "[0-9]{2}\.[0-9]\.[0-9]{5}\.[0-9]"
Returned 1.
namiwa commented 9 months ago

Closing as it was an issue with the build tools i was using, was using visual studio build tools 2022, not the full ide hence it was required separate manual install of the windows sdk 10