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
170 stars 42 forks source link

Multiple errors in build. #14

Open llightning96 opened 3 years ago

llightning96 commented 3 years ago

Attempting to create build files with command:

PS.C:\..\..\bin\gn gen out/Shared --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:\Users\USERNAME\source\repos\LLVM\bin"" win_vc=""C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC"" extra_cflags=[""-MT""]"

Results in the following error message:

File "../source/repos/skia/gn/highest_version_dir.py", line 15 print sorted(filter(regex.match, os.listdir(dirpath)))[-1] ^ SyntaxError: invalid syntax ERROR at //gn/BUILDCONFIG.gn:133:29: Script returned non-zero exit code. win_toolchain_version = exec_script("//gn/highest_version_dir.py", ^---------- Current dir: C:/Users/USERNAME/source/repos/skia/out/Shared/ Command: "C:/Program Files/Python38/python.exe" C:/Users/USERNAME/source/repos/skia/gn/highest_version_dir.py "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC/Tools/MSVC" "[0-9]{2}\.[0-9]{2}\.[0-9]{5}" Returned 1.

Removing the --args parameter results in an error (despite having the build-dir on the commandline):

ERROR Need exactly one build directory to generate.

MaximeWYZUJ commented 10 months ago

I had the same error during build and removed the last line of code in highest_version_dir.py which was a print causing the issue.