Comments (8)
Yes, currently only tested with 8.x.
Issues with 10.x are caused by the removal of V8's object->ForceSet()
, which is still used in [email protected].
nodejs/nan#763
from node-gtk.
Which is true #if NODE_MODULE_VERSION >= NODE_9_0_MODULE_VERSION
:
https://github.com/nodejs/nan/blob/master/nan_maybe_43_inl.h#L137-L144
Not sure where it's coming from yet. (Btw, I'm assuming you get the same issue I get on my home laptop when building, which is something related to ForceSet
)
from node-gtk.
../src/function.cc:59:58: error: too few arguments to function call, expected 4, have 3
auto res = stringify->CallAsFunction(JSON, 1, args_js);
~~~~~~~~~~~~~~~~~~~~~~~~~ ^
../node_modules/nan/nan_callbacks_12_inl.h:108:64: error: no member named 'Callee' in 'v8::FunctionCallbackInfo<v8::Value>'
inline v8::Local<v8::Function> Callee() const { return info_.Callee(); }
~~~~~ ^
from node-gtk.
0d789b9 will solve the top one.
Bottom one is probably related to invalid node or nan headers. Could you try to find which version of node and nan headers are used?
- Nan:
cat node_modules/nan/package.json | grep '"version"'
- Node: search in
./build/node-gtk.target.mk
for.node-gyp
, or list~/.nody-gyp
(if you don't find, link to a paste of the complete build output)
from node-gtk.
Could reproduce the issue, opened nodejs/nan#788.
from node-gtk.
Basically, it seems that nan doesn't support node 10.x even though it says it does. The reason is that FunctionCallbackInfo.Callee
has been deprecated & removed on V8, but nan didn't catch up.
For the moment, it's possible to build and run on node 10.x by commenting the line 108 of node_modules/nan/nan_callbacks_12_inl.h
. We'll wait for a reply from nan's maintainer to check for a more permanent solution.
from node-gtk.
Waiting for a PR on the upstream nan to be merged, but this should now compile anyway (tested on 10.2.1). Does it work for you, @benwaffle?
from node-gtk.
yep
from node-gtk.
Related Issues (20)
- It seems there is no chance to get GLib to have an externally driven main loop, what work is needed to run node-gtk on Qode?
- Broadway html5 display crash with webkit2 example
- "focus-out-event" crashes application
- v0.11.0: `Error: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found` HOT 11
- Segmentation fault in GTK4 custom widget demo
- Documentatin bug? HOT 5
- How to create `NULL`? HOT 1
- Working with pointers HOT 2
- 403 Access denied HOT 2
- Installation not possible HOT 11
- WebKit2 Cannot be Used With GTK 4.0 HOT 1
- Virtual functions don't work HOT 12
- Basic example doesn't work outside of the terminal HOT 4
- node-gtk 0.12+ fails to compile against libgirepository1.0-dev <1.72 (Ubuntu 20) HOT 4
- NPM installation fails HOT 2
- `activate` vfunc in `Gtk.Application` results in segfault
- NPM installation fails with a v8-related compile error on Node v22.2 w/ GCC 14.1.1
- Install failed on Apple M1 HOT 1
- Build Error HOT 4
- GTK4 with Adw 1 runs into an error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-gtk.