brainpicture / node-gui Goto Github PK
View Code? Open in Web Editor NEWsome gui for nodeJS
Home Page: nodejs.ru
License: Other
some gui for nodeJS
Home Page: nodejs.ru
License: Other
Do you think you can shine some light on the threading going on inside https://github.com/brainfucker/node-gui/blob/master/src/ngtk.cc ?
I'm interested in writing some GTK bindings but I'm having trouble preventing GTK from blocking the main event loop.
Some event callbacks cause the program to segfault. For example, when 'focus', 'destroyed', or numerous other events are fired, the program segfaults before the callback function is even called. See attached code
having issue compiling
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local
Checking for gtk+-2.0 : yes
Checking for glib-2.0 : yes
'configure' finished successfully (0.041s)
bmatusiak@bmatusiak-home:~/nodeApps/node-gui$ node-waf build
Waf: Entering directory `/home/bmatusiak/nodeApps/node-gui/build'
[ 1/13] cxx: src/ngtk_entry.cc -> build/Release/src/ngtk_entry_1.o
[ 2/13] cxx: src/ngtk_button.cc -> build/Release/src/ngtk_button_1.o
[ 3/13] cxx: src/ngtk_image.cc -> build/Release/src/ngtk_image_1.o
[ 4/13] cxx: src/ngtk_message_dialog.cc -> build/Release/src/ngtk_message_dialog_1.o
[ 5/13] cxx: src/ngtk_progressbar.cc -> build/Release/src/ngtk_progressbar_1.o
[ 6/13] cxx: src/ngtk_vbox.cc -> build/Release/src/ngtk_vbox_1.o
[ 7/13] cxx: src/ngtk_hbox.cc -> build/Release/src/ngtk_hbox_1.o
[ 8/13] cxx: src/ngtk_box.cc -> build/Release/src/ngtk_box_1.o
[ 9/13] cxx: src/ngtk_window.cc -> build/Release/src/ngtk_window_1.o
[10/13] cxx: src/ngtk_container.cc -> build/Release/src/ngtk_container_1.o
[11/13] cxx: src/ngtk_widget.cc -> build/Release/src/ngtk_widget_1.o
[12/13] cxx: src/ngtk.cc -> build/Release/src/ngtk_1.o
../src/ngtk.cc: In function ‘void ngtk::check_cb(ev_check*, int)’:
../src/ngtk.cc:106:47: error: cannot convert ‘__ev_io*’ to ‘ev_loop*’ for argument ‘1’ to ‘int ev_clear_pending(ev_loop*, void*)’
../src/ngtk.cc: In function ‘void ngtk::init(v8::Handle<v8::Object>)’:
../src/ngtk.cc:205:3: error: invalid conversion from ‘void (*)(ev_prepare*, int)’ to ‘void (*)(ev_loop*, ev_prepare*, int)’ [-fpermissive]
../src/ngtk.cc:207:44: error: cannot convert ‘ev_prepare*’ to ‘ev_loop*’ for argument ‘1’ to ‘void ev_prepare_start(ev_loop*, ev_prepare*)’
../src/ngtk.cc:210:3: error: invalid conversion from ‘void (*)(ev_check*, int)’ to ‘void (*)(ev_loop*, ev_check*, int)’ [-fpermissive]
../src/ngtk.cc:212:42: error: cannot convert ‘ev_check*’ to ‘ev_loop*’ for argument ‘1’ to ‘void ev_check_start(ev_loop*, ev_check*)’
Waf: Leaving directory `/home/bmatusiak/nodeApps/node-gui/build'
Build failed: -> task failed (err #1):
{task: cxx ngtk.cc -> ngtk_1.o}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.