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
190 stars 50 forks source link

ninja: FAILED: libexpat.a #30

Open GrosserKaese opened 1 year ago

GrosserKaese commented 1 year ago

I think this is linked to ISSUE27.

While executing

ninja -C out/Release-x64 skia modules

the error

FAILED: libexpat.a python "/home/rb/deps/skia/gn/rm.py" "libexpat.a" && ar rcs libexpat.a @libexpat.a.rsp /bin/sh: 1: python: not found [427/1786] compile ../../third_party/externals/harfbuzz/src/hb-ot-layout.cc ninja: build stopped: subcommand failed.

occured (at step 414/1786).

edit: Just realized, when I'm executing ninja over and over again, it fails on a different file every time, but always claims it's the error at libexpat.a.

I'm using Linux Mint, full updated.

hien-ngo29 commented 11 months ago

I think this error is a library missing of Python code. I resolved the problem by installing expatriate library through pip (pip install expatriate).

Somehow on some machines pip doesn't work. It returns the error "This environment is externally managed" and doesn't install the package. In this case, you may refer to this StackOverflow page.

After installation, you can execute ninja -C out/Release-x64 skia modules and everything will work.

Hope this help.

goudaghost commented 10 months ago

Had the same issue trying to build on Debian. I think it's an issue referencing the python version or something since I had to run python3 instead of python in a previous step. Found a work around using help from a Cyberciti article to make a symlink.