Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue building Skia on Debian #5

Open
nyDupont opened this issue Apr 20, 2020 · 5 comments
Open

Issue building Skia on Debian #5

nyDupont opened this issue Apr 20, 2020 · 5 comments

Comments

@nyDupont
Copy link

nyDupont commented Apr 20, 2020

When running the following line while building 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"

I encounter the following Error :

ERROR at //gn/BUILDCONFIG.gn:85:14: Script returned non-zero exit code.
  is_clang = exec_script("//gn/is_clang.py",
             ^----------
Current dir: /root/deps/skia/out/Release-x64/
Command: python /root/deps/skia/gn/is_clang.py cc c++
Returned 1.
stderr:

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

I guess it's related with me using python3... but I don't know how to force run the line with python2.7
I've tried to edit the missing parentheses in the is_clang.py file, but another error is then raised.

I did not encounter any error running the previous lines (at the bottom of the https://github.com/aseprite/skia page, in the Skia on linux part).

Has anyone else encountered such a problem before?

Debian 9.12 (stretch)

@enderger
Copy link

Use this command:
python2 tools/git-sync-deps

@mikaelivarsson
Copy link

I get the same problem, also using "alias python=python2" won't solve the issue. Same thing for me that if I add missing parantheses it complains instead about:
if ('clang' in subprocess.check_output('%s --version' % cc, shell=True) and TypeError: a bytes-like object is required, not 'str'

@indexofmetals
Copy link

I am also having this problem on Ubuntu.

@XReaper95
Copy link

Add this line to the end of the .gn dotfile (after running python2 tools/git-sync-deps)

script_executable = "python2"

Or whatever command that points to python 2 on your system.

@krcs
Copy link

krcs commented Apr 17, 2022

sudo ln /usr/bin/python2 /usr/bin/python

Only for compile time. This also work for aseprite compilation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants