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

Ninja build stage throwing an error because python is called #24

Closed Paxxous closed 1 year ago

Paxxous commented 1 year ago

When building aseprite, an error gets thrown that seems to occur when python is called.

The thing is the compiler is running the python command, instead of python3 I use ubuntu.

FAILED: libexpat.a 
python "/home/pax/deps/skia/gn/rm.py" "libexpat.a" && ar rcs libexpat.a @libexpat.a.rsp
/bin/sh: 1: python: not found
[14/799] compile ../../third_party/externals/harfbuzz/src/hb-subset-plan.cc
ninja: build stopped: subcommand failed.
adxl commented 1 year ago

If you don't have Python2 you will have to create a symbolic link to python3: sudo ln -s /usr/bin/python3.9 /usr/bin/python

Paxxous commented 1 year ago

Sorry for the late response, your symbolic link didn't work, but I used the whereis command and found my path the python, and used your link from there. Thanks :D.

dacap commented 1 year ago

It looks like this issue depends on the specific Linux distribution. I was able to continue the compilation using:

sudo ln -s /usr/bin/python3 /usr/bin/python