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

Support for FBDev, statically linked library and musl #571

Open
wants to merge 234 commits into
base: master
Choose a base branch
from

Conversation

piranna
Copy link
Contributor

@piranna piranna commented Jun 28, 2015

This pull-request is work in progress, but it works :-) I've open early to discuss about how to integrate it. It has the next features:

  • updated dependencies, both npm and libraries. This last ones are only done on their current version branch to prevent incompatibilies on newer ones that would require modify the code.
  • allow to use FBDev as backend, so node-canvas can be used to draw on the console. This is done thanks to the work of @ReneHollander at https://github.com/ReneHollander/node-canvas, that also added some basic support for a selectable backend support.
  • compile it as a statically linked library without dependencies on any external dynamic library. This is based on the work of @magicode at https://github.com/magicode/node-canvas, although I needed to do some fix-ups due to undefined references.
  • musl support as C lib instead of glibc, that since don't support lazy linking is the reason why I need to fix the undefined references.

All of this makes it possible to use node-canvas to draw on the console on NodeOS.

First step will to update the code with current master, and later improve the FbDev support and the alternatives backends, probably making them selectable at compile time.

magicode and others added 30 commits October 27, 2013 10:04
fixed some stupid bugs and made it compile again
updated nan to 1.8.4
It's not working due lacks of _ZN8FontFace11constructorE symbol and also
needs a workaround on system libraries
(https://bugs.launchpad.net/ubuntu/+source/gcc-4.4/+bug/640734/comments/6)
due to an unfixed bug on gcc
(https://bugzilla.redhat.com/show_bug.cgi?id=214465), but it's a progress
# Conflicts:
#	src/Canvas.cc
# Conflicts:
#	package.json
#	test/canvas.test.js
# Conflicts:
#	package.json
# Conflicts:
#	.gitignore
#	package.json
#	shared.gypi
#	util/has_lib.js
# Conflicts:
#	binding.gyp
#	examples/simple_fbdev.js
#	src/Backends.cc
#	src/Canvas.cc
#	src/backend/Backend.cc
#	src/backend/Backend.h
#	src/backend/FBDevBackend.cc
#	src/backend/FBDevBackend.h
#	test/public/tests.js
@JZ-at-TP
Copy link

Just tossing this out there, I use node-sdl with node-canvas to run a native app and draw to the screen real-time.

@piranna
Copy link
Contributor Author

piranna commented Oct 13, 2022

Just tossing this out there, I use node-sdl with node-canvas to run a native app and draw to the screen real-time.

Didn't know of node-sdl, really interesting, thanks! :-D

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

Successfully merging this pull request may close these issues.

9 participants