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

gyp: Undefined variable android_ndk_path in binding.gyp while trying to load binding.gyps #2385

Closed
1 task done
spz2020 opened this issue May 20, 2024 · 3 comments
Closed
1 task done

Comments

@spz2020
Copy link

spz2020 commented May 20, 2024

Issue or Feature

install.txt

Steps to Reproduce

npm install canvas --build-from-source

Your Environment

  • Version of node-canvas (output of npm list canvas or yarn list canvas): none
  • Environment (e.g. node 20.9.0 on macOS 14.1.1): node v21.6.2 on Android (termux)
@StarSky919
Copy link

try this

mkdir ~/.gyp && echo "{'variables':{'android_ndk_path':''}}" > ~/.gyp/include.gypi

@zbjornson
Copy link
Collaborator

There are also some other issues with guidance about using canvas in termux: https://github.com/Automattic/node-canvas/issues?q=is%3Aissue+termux+ - in particular #1756 and #1609.

@edwardbeckett
Copy link

try this

mkdir ~/.gyp && echo "{'variables':{'android_ndk_path':''}}" > ~/.gyp/include.gypi

You Rock...

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

No branches or pull requests

4 participants