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

Trouble trying to build skia from source #13

Closed akirapink closed 3 years ago

akirapink commented 3 years ago

I'm probably being a bad person just posting terminal logs but I've just been following the aseprite build guide and I don't know what I fucked up, sorry about this.

akira@LinuxMint-9214:~/deps$ git clone -b aseprite-m81 https://github.com/aseprite/skia.git
Cloning into 'skia'...
remote: Enumerating objects: 541853, done.
remote: Total 541853 (delta 0), reused 0 (delta 0), pack-reused 541853
Receiving objects: 100% (541853/541853), 439.78 MiB | 2.77 MiB/s, done.
Resolving deltas: 100% (449772/449772), done.
akira@LinuxMint-9214:~/deps$ export PATH="${PWD}/depot_tools:${PATH}"
akira@LinuxMint-9214:~/deps$ cd skia
akira@LinuxMint-9214:~/deps/skia$ python tools/git-sync-deps
Skipping "../src".
third_party/externals/libgifcodec    > 38d9c73f49b861bb4a9829371ac311544b120023
third_party/externals/microhttpd     > 748945ec6f1c67b7efc934ab0808e1d32f2fb98d
common                               > 9737551d7a52c3db3262db5856e6bcd62c462b92
buildtools                           > 505de88083136eefd056e5ee4ca0f01fe9b33de8
third_party/externals/opencl-lib     > 4e6d30e406d2e5a65e1d65e404fe6df5f772a32b
third_party/externals/piex           > bb217acdca1cc0c16b704669dd6f91a1b509c406
third_party/externals/zlib           > 47af7c547f8551bd25424e56354a2ae1e9062859
third_party/externals/dng_sdk        > c8d0c9b1d16bfda56f15165d39e0ffa360a11123
third_party/externals/egl-registry   > a0bca08de07c7d7651047bedc0b653cfaaa4f2ae
third_party/externals/spirv-headers  > 29c11140baaf9f7fdaa39a583672c556bf1795a1
third_party/externals/libwebp        > 0fe1a89dbf1930fc2554dbe76adad5d962054ead
third_party/externals/expat          > e5aa0a2cb0a5f759ef31c0819dc67d9b14246a4a
third_party/externals/dawn           > 604072bc2ed01018eb03bcbbf9d94042f679af63
third_party/externals/libjpeg-turbo  > 574f3a772c96dc9db2c98ef24706feb3f6dbda9a
third_party/externals/lua            > e354c6355e7f48e087678ec49e340ca0696725b1
third_party/externals/spirv-cross    > 53ab2144b90abede33be5161aec5dfc94ddc3caf
third_party/externals/libpng         > 386707c6d19b974ca2e3db7f5c61873813c6fe44
third_party/externals/spirv-tools    > 0c4feb643b89d1792b02f7cbef315e9d95633bd7
third_party/externals/harfbuzz       > 3a74ee528255cc027d84b204a87b5c25e47bff79
third_party/externals/freetype       > 0a3d2bb99b45b72e1d45185ab054efa993d97210
third_party/externals/sfntly         > b55ff303ea2f9e26702b514cf6a3196a2e3e2974
third_party/externals/wuffs          > 4080840928c0b05a80cda0d14ac2e2615f679f1a
third_party/externals/angle2         > ee07cb317579dfda40dabb5d6d9c209e0e9e0643
third_party/externals/opengl-regi... > 14b80ebeab022b2c78f84a573f01028c96075553
third_party/externals/swiftshader    > 430def835f9f85d52f4a96db9b715cd9a7403c9c
third_party/externals/imgui          > d38d7c6628bebd02692cfdd6fa76b4d992a35b75
third_party/externals/sdl            > 5d7cfcca344034aff9327f77fc181ae3754e7a90
third_party/externals/opencl-regi... > 932ed55c85f887041291cef8019e54280c033c35
third_party/externals/icu            > dbd3825b31041d782c5b504c59dcfb5ac7dda08c
akira@LinuxMint-9214:~/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"
ERROR at //gn/BUILDCONFIG.gn:85:14: Script returned non-zero exit code.
  is_clang = exec_script("//gn/is_clang.py",
             ^----------
Current dir: /home/akira/deps/skia/out/Release-x64/
Command: python /home/akira/deps/skia/gn/is_clang.py cc c++
Returned 1.
stderr:

  File "/home/akira/deps/skia/gn/is_clang.py", line 14
    print 'true'
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('true')?

akira@LinuxMint-9214:~/deps/skia$ ninja -C out/Release-x64 skia modules
ninja: Entering directory `out/Release-x64'
ninja: error: loading 'build.ninja': No such file or directory
akira@LinuxMint-9214:~/deps/skia$ 
AJ08Coder commented 2 years ago

did you find a solution?

akirapink commented 2 years ago

nope, srry!

ezgibas commented 2 years ago

go into /home/akira/deps/skia/gn, and openis_clang.py, go to line 14 and add parantheses. That should get rid of at least one problem, as for the ninja: error: loading 'build.ninja': No such file or directory problem, I'm having the same one :/