mikeseven / node-glfw Goto Github PK
View Code? Open in Web Editor NEWnodejs bindings to GLFW
nodejs bindings to GLFW
I am getting following error when trying to install node-glfw in my centos 6 machine.
I have already set PKG_CONFIG_PATH to /usr/local/lib/pkgconfig/glfw3.pc
Following is the error:
npm http GET https://registry.npmjs.org/node-glfw
npm http 304 https://registry.npmjs.org/node-glfw
npm WARN engine [email protected]: wanted: {"node":"0.6.5-0.11.10"} (current: >{"node":"v0.10.33","npm":"1.3.6"})
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan[email protected] install /home/ingole/node_modules/node-glfw
node-gyp rebuild
Package glfw3 was not found in the pkg-config search path.
Perhaps you should add the directory containing glfw3.pc' to the PKG_CONFIG_PATH environment variable No package 'glfw3' found Traceback (most recent call last): File "/usr/bin/gyp", line 18, in <module> sys.exit(gyp.main(sys.argv[1:])) File "/usr/lib/python2.6/site-packages/gyp/__init__.py", line 462, in main options.circular_check) File "/usr/lib/python2.6/site-packages/gyp/__init__.py", line 100, in Load depth, generator_input_info, check, circular_check) File "/usr/lib/python2.6/site-packages/gyp/input.py", line 2255, in Load depth, check) File "/usr/lib/python2.6/site-packages/gyp/input.py", line 388, in LoadTargetBuildFile build_file_path) File "/usr/lib/python2.6/site-packages/gyp/input.py", line 1011, in ProcessVariablesAndConditionsInDict build_file) File "/usr/lib/python2.6/site-packages/gyp/input.py", line 1026, in ProcessVariablesAndConditionsInList ProcessVariablesAndConditionsInDict(item, is_late, variables, build_file) File "/usr/lib/python2.6/site-packages/gyp/input.py", line 985, in ProcessVariablesAndConditionsInDict ProcessConditionsInDict(the_dict, is_late, variables, build_file) File "/usr/lib/python2.6/site-packages/gyp/input.py", line 862, in ProcessConditionsInDict variables, build_file) File "/usr/lib/python2.6/site-packages/gyp/input.py", line 1011, in ProcessVariablesAndConditionsInDict build_file) File "/usr/lib/python2.6/site-packages/gyp/input.py", line 1030, in ProcessVariablesAndConditionsInList expanded = ExpandVariables(item, is_late, variables, build_file) File "/usr/lib/python2.6/site-packages/gyp/input.py", line 697, in ExpandVariables (contents, p.returncode)) Exception: Call to 'pkg-config --libs glfw3 glew' returned exit status 1. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error:
gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/node-gyp/lib/configure.js:428:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Linux 2.6.32-431.el6.x86_64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ingole/node_modules/node-glfw
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok
npm ERR! weird error 1
npm ERR! not ok code 0
Im not completely positive what I am having is a build issue with node-glfw .
It seems everything else is in proper order .
The examples from anttweakbar , glew, and glfw all compile and run .
This is the output from node-gyp rebuild
Any help or advice on things to check would be incredibly helpful I do not particularly understand this output .
If there is any additional information I can supply that would make it easier diagnose my problem don't hesitate to ask .
Thank you for you work .
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn python
gyp info spawn args [ '/Users/jamesandino/Desktop/Home/Platform/CORE/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/jamesandino/Desktop/node-glfw/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/jamesandino/Desktop/Home/Platform/CORE/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/jamesandino/.node-gyp/0.10.24/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/jamesandino/.node-gyp/0.10.24',
gyp info spawn args '-Dmodule_root_dir=/Users/jamesandino/Desktop/node-glfw',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/glfw/src/atb.o
../src/atb.cc:17:23: error: 'FunctionTemplate' does not refer to a value
NanAssignPersistent(FunctionTemplate, constructor_template, ctor);
^
/Users/jamesandino/.node-gyp/0.10.24/deps/v8/include/v8.h:2252:16: note:
declared here
class V8EXPORT FunctionTemplate : public Template {
^
../src/atb.cc:19:22: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
ctor->SetClassName(NanSymbol("AntTweakBar"));
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:34:3: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
DEFINE_ATB_CONSTANT(CHAR);
^
../src/atb.cc:11:5: note: expanded from macro 'DEFINE_ATB_CONSTANT'
NODE_DEFINE_CONSTANT_VALUE(ctor->InstanceTemplate(), "TYPE_" #consta...
^
../src/atb.cc:30:17: note: expanded from macro 'NODE_DEFINE_CONSTANT_VALUE'
(target)->Set(NanSymbol(name), \
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:35:3: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
DEFINE_ATB_CONSTANT(INT8);
^
../src/atb.cc:11:5: note: expanded from macro 'DEFINE_ATB_CONSTANT'
NODE_DEFINE_CONSTANT_VALUE(ctor->InstanceTemplate(), "TYPE_" #consta...
^
../src/atb.cc:30:17: note: expanded from macro 'NODE_DEFINE_CONSTANT_VALUE'
(target)->Set(NanSymbol(name), \
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:36:3: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
DEFINE_ATB_CONSTANT(UINT8);
^
../src/atb.cc:11:5: note: expanded from macro 'DEFINE_ATB_CONSTANT'
NODE_DEFINE_CONSTANT_VALUE(ctor->InstanceTemplate(), "TYPE_" #consta...
^
../src/atb.cc:30:17: note: expanded from macro 'NODE_DEFINE_CONSTANT_VALUE'
(target)->Set(NanSymbol(name), \
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:37:3: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
DEFINE_ATB_CONSTANT(INT16);
^
../src/atb.cc:11:5: note: expanded from macro 'DEFINE_ATB_CONSTANT'
NODE_DEFINE_CONSTANT_VALUE(ctor->InstanceTemplate(), "TYPE_" #consta...
^
../src/atb.cc:30:17: note: expanded from macro 'NODE_DEFINE_CONSTANT_VALUE'
(target)->Set(NanSymbol(name), \
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:38:3: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
DEFINE_ATB_CONSTANT(UINT16);
^
../src/atb.cc:11:5: note: expanded from macro 'DEFINE_ATB_CONSTANT'
NODE_DEFINE_CONSTANT_VALUE(ctor->InstanceTemplate(), "TYPE_" #consta...
^
../src/atb.cc:30:17: note: expanded from macro 'NODE_DEFINE_CONSTANT_VALUE'
(target)->Set(NanSymbol(name), \
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:39:3: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
DEFINE_ATB_CONSTANT(INT32);
^
../src/atb.cc:11:5: note: expanded from macro 'DEFINE_ATB_CONSTANT'
NODE_DEFINE_CONSTANT_VALUE(ctor->InstanceTemplate(), "TYPE_" #consta...
^
../src/atb.cc:30:17: note: expanded from macro 'NODE_DEFINE_CONSTANT_VALUE'
(target)->Set(NanSymbol(name), \
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:40:3: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
DEFINE_ATB_CONSTANT(UINT32);
^
../src/atb.cc:11:5: note: expanded from macro 'DEFINE_ATB_CONSTANT'
NODE_DEFINE_CONSTANT_VALUE(ctor->InstanceTemplate(), "TYPE_" #consta...
^
../src/atb.cc:30:17: note: expanded from macro 'NODE_DEFINE_CONSTANT_VALUE'
(target)->Set(NanSymbol(name), \
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:41:3: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
DEFINE_ATB_CONSTANT(FLOAT);
^
../src/atb.cc:11:5: note: expanded from macro 'DEFINE_ATB_CONSTANT'
NODE_DEFINE_CONSTANT_VALUE(ctor->InstanceTemplate(), "TYPE_" #consta...
^
../src/atb.cc:30:17: note: expanded from macro 'NODE_DEFINE_CONSTANT_VALUE'
(target)->Set(NanSymbol(name), \
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:42:3: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
DEFINE_ATB_CONSTANT(DOUBLE);
^
../src/atb.cc:11:5: note: expanded from macro 'DEFINE_ATB_CONSTANT'
NODE_DEFINE_CONSTANT_VALUE(ctor->InstanceTemplate(), "TYPE_" #consta...
^
../src/atb.cc:30:17: note: expanded from macro 'NODE_DEFINE_CONSTANT_VALUE'
(target)->Set(NanSymbol(name), \
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:44:3: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
DEFINE_ATB_CONSTANT(COLOR32);
^
../src/atb.cc:11:5: note: expanded from macro 'DEFINE_ATB_CONSTANT'
NODE_DEFINE_CONSTANT_VALUE(ctor->InstanceTemplate(), "TYPE_" #consta...
^
../src/atb.cc:30:17: note: expanded from macro 'NODE_DEFINE_CONSTANT_VALUE'
(target)->Set(NanSymbol(name), \
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:45:3: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
DEFINE_ATB_CONSTANT(COLOR3F);
^
../src/atb.cc:11:5: note: expanded from macro 'DEFINE_ATB_CONSTANT'
NODE_DEFINE_CONSTANT_VALUE(ctor->InstanceTemplate(), "TYPE_" #consta...
^
../src/atb.cc:30:17: note: expanded from macro 'NODE_DEFINE_CONSTANT_VALUE'
(target)->Set(NanSymbol(name), \
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:46:3: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
DEFINE_ATB_CONSTANT(COLOR4F);
^
../src/atb.cc:11:5: note: expanded from macro 'DEFINE_ATB_CONSTANT'
NODE_DEFINE_CONSTANT_VALUE(ctor->InstanceTemplate(), "TYPE_" #consta...
^
../src/atb.cc:30:17: note: expanded from macro 'NODE_DEFINE_CONSTANT_VALUE'
(target)->Set(NanSymbol(name), \
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:47:3: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
DEFINE_ATB_CONSTANT(QUAT4F);
^
../src/atb.cc:11:5: note: expanded from macro 'DEFINE_ATB_CONSTANT'
NODE_DEFINE_CONSTANT_VALUE(ctor->InstanceTemplate(), "TYPE_" #consta...
^
../src/atb.cc:30:17: note: expanded from macro 'NODE_DEFINE_CONSTANT_VALUE'
(target)->Set(NanSymbol(name), \
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:48:3: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
DEFINE_ATB_CONSTANT(QUAT4D);
^
../src/atb.cc:11:5: note: expanded from macro 'DEFINE_ATB_CONSTANT'
NODE_DEFINE_CONSTANT_VALUE(ctor->InstanceTemplate(), "TYPE_" #consta...
^
../src/atb.cc:30:17: note: expanded from macro 'NODE_DEFINE_CONSTANT_VALUE'
(target)->Set(NanSymbol(name), \
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:49:3: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
DEFINE_ATB_CONSTANT(DIR3F);
^
../src/atb.cc:11:5: note: expanded from macro 'DEFINE_ATB_CONSTANT'
NODE_DEFINE_CONSTANT_VALUE(ctor->InstanceTemplate(), "TYPE_" #consta...
^
../src/atb.cc:30:17: note: expanded from macro 'NODE_DEFINE_CONSTANT_VALUE'
(target)->Set(NanSymbol(name), \
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:50:3: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
DEFINE_ATB_CONSTANT(DIR3D);
^
../src/atb.cc:11:5: note: expanded from macro 'DEFINE_ATB_CONSTANT'
NODE_DEFINE_CONSTANT_VALUE(ctor->InstanceTemplate(), "TYPE_" #consta...
^
../src/atb.cc:30:17: note: expanded from macro 'NODE_DEFINE_CONSTANT_VALUE'
(target)->Set(NanSymbol(name), \
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:54:15: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
target->Set(NanSymbol("AntTweakBar"), ctor->GetFunction());
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:161:23: error: 'FunctionTemplate' does not refer to a value
NanAssignPersistent(FunctionTemplate, constructor_template, ctor);
^
/Users/jamesandino/.node-gyp/0.10.24/deps/v8/include/v8.h:2252:16: note:
declared here
class V8EXPORT FunctionTemplate : public Template {
^
../src/atb.cc:163:22: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
ctor->SetClassName(NanSymbol("Bar"));
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:171:15: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
target->Set(NanSymbol("Bar"), ctor->GetFunction());
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:203:47: error: use of undeclared identifier 'NanPersistentToLocal'
Local<FunctionTemplate> constructorHandle = NanPersistentToLocal(const...
^
../src/atb.cc:263:39: error: use of undeclared identifier 'NanPersistentToLocal'
Local<Function> constructorHandle = NanPersistentToLocal(cb->setter);
^
../src/atb.cc:287:23: error: use of undeclared identifier 'NanPersistentToLocal'
Local<Function> fct=NanPersistentToLocal(cb->getter);
^
../src/atb.cc:396:39: error: use of undeclared identifier 'NanPersistentToLocal'
Local<Function> constructorHandle = NanPersistentToLocal(cb->setter);
^
../src/atb.cc:410:60: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
Local<Function> getter=Local<Function>::Cast(params->Get(JS_STR("getter")));
^
../src/common.h:24:21: note: expanded from macro 'JS_STR'
#define JS_STR(...) NanSymbol(__VA_ARGS__)
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:411:60: warning: 'NanSymbol' is deprecated
[-Wdeprecated-declarations]
Local<Function> setter=Local<Function>::Cast(params->Get(JS_STR("setter")));
^
../src/common.h:24:21: note: expanded from macro 'JS_STR'
#define JS_STR(...) NanSymbol(__VA_ARGS__)
^
../node_modules/nan/nan.h:825:51: note: 'NanSymbol' has been explicitly marked
deprecated here
NAN_DEPRECATED NAN_INLINE v8::Local<v8::String> NanSymbol(
^
../src/atb.cc:417:23: error: 'Function' does not refer to a value
NanInitPersistent(Function,_getter,getter);
^
/Users/jamesandino/.node-gyp/0.10.24/deps/v8/include/v8.h:1770:7: note:
declared here
class Function : public Object {
^
../src/atb.cc:418:25: error: 'Function' does not refer to a value
NanAssignPersistent(Function, callbacks->getter, _getter);
^
/Users/jamesandino/.node-gyp/0.10.24/deps/v8/include/v8.h:1770:7: note:
declared here
class Function : public Object {
^
../src/atb.cc:422:23: error: 'Function' does not refer to a value
NanInitPersistent(Function,_setter,setter);
^
/Users/jamesandino/.node-gyp/0.10.24/deps/v8/include/v8.h:1770:7: note:
declared here
class Function : public Object {
^
../src/atb.cc:423:25: error: 'Function' does not refer to a value
NanAssignPersistent(Function, callbacks->setter, _setter);
^
/Users/jamesandino/.node-gyp/0.10.24/deps/v8/include/v8.h:1770:7: note:
declared here
class Function : public Object {
^
../src/atb.cc:474:23: error: 'Function' does not refer to a value
NanInitPersistent(Function,_setter,cb);
^
/Users/jamesandino/.node-gyp/0.10.24/deps/v8/include/v8.h:1770:7: note:
declared here
class Function : public Object {
^
../src/atb.cc:475:25: error: 'Function' does not refer to a value
NanAssignPersistent(Function, callbacks->setter, _setter);
^
/Users/jamesandino/.node-gyp/0.10.24/deps/v8/include/v8.h:1770:7: note:
declared here
class Function : public Object {
^
22 warnings and 12 errors generated.
make: *** [Release/obj.target/glfw/src/atb.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/jamesandino/Desktop/Home/Platform/CORE/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Darwin 14.1.0
gyp ERR! command "node" "/Users/jamesandino/Desktop/Home/Platform/CORE/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /Users/jamesandino/Desktop/node-glfw
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
I'm getting this error when I try to install node-glfw
> [email protected] install /home/alan/Projetos/teste/node-glfw
> node-gyp rebuild
make: Entering directory `/home/alan/Projetos/teste/node-glfw/build'
CXX(target) Release/obj.target/glfw/src/atb.o
CXX(target) Release/obj.target/glfw/src/glfw.o
SOLINK_MODULE(target) Release/obj.target/glfw.node
/usr/bin/ld: /usr/local/lib/libglfw3.a(context.c.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libglfw3.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [Release/obj.target/glfw.node] Error 1
make: Leaving directory `/home/alan/Projetos/teste/node-glfw/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Linux 3.11.0-26-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/alan/Projetos/teste/node-glfw
gyp ERR! node -v v0.10.32
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the node-glfw package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls node-glfw
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.11.0-26-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/alan/Projetos/teste/node-glfw
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/alan/Projetos/teste/node-glfw/npm-debug.log
npm ERR! not ok code 0
Here are version for npm
, node
, and node-gyp
Jonathans-MacBook-Pro-2:node-glfw jonathan$ node -v
v4.2.1
Jonathans-MacBook-Pro-2:node-glfw jonathan$ npm -v
2.14.7
Jonathans-MacBook-Pro-2:node-glfw jonathan$ node-gyp -v
v3.2.1
Installed prerequisites
Jonathans-MacBook-Pro-2:node-glfw jonathan$ brew install glfw3 anttweakbar glew
Warning: homebrew/versions/glfw3-3.1.2 already installed
Warning: anttweakbar-1.16 already installed
Warning: glew-1.13.0 already installed
Then npm install
Jonathans-MacBook-Pro-2:node-glfw jonathan$ npm install
> [email protected] install /Users/jonathan/github/node-glfw
> node-gyp rebuild
/bin/sh: pkg-config: command not found
gyp: Call to 'pkg-config --libs glfw3 glew' returned exit status 127. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/jonathan/github/node-glfw
gyp ERR! node -v v4.2.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Darwin 14.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.2.1
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the node-glfw package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls node-glfw
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/jonathan/github/node-glfw/npm-debug.log
Here is npm-debug.log
When I hit +Q or click the close window button (red X in top left of window) while running the test files, the program terminates with a segmentation fault. If I hit ESC, it terminates normally.
I got it all working finally =]
Your binding.gyp file seems to be expending the deps folder to be in a different structure than it is currently.
Presently it is
include/
GL/
GLFW/
AntTweakBar.h
but binding.gyp references
/deps/glew/include
/deps/glew/windows/lib
/deps/glfw/include
/deps/glfw/windows/lib-vc2015
/deps/AntTweakBar/include
/deps/AntTweakBar/windows/lib
I downloaded all the deps from their respective sites and organized them how the binding.gyp is expecting and it worked great. (the glfw lib dep is named differently in the latest version, which is why the above references use vc2015 as opposed to what your repo says now).
The library compiles and only works with node 8 (whereas the last one: Node.js 16.9.1 v8: 7.21.1). 8 version is completely out of date. It is necessary to provide support for the latest versions
Having Vulkan support will be beneficial on computers with NVIDIA cards.
There is a bug in the javascript, creating new bar should be done with
twBar=ATB.NewBar("Cube");
instead of using a constructor
twBar=new ATB.NewBar("Cube");
It seems like an uncommon library, and I have to build it from source on most of my platforms, which is fairly inconvenient.
Is this dependency just so for adding simple GUI elements to some of the examples? It's only used in a handful of places in the source. It seems like this would make more sense as a separate dependent package. Or there are a number of pure JS libraries for configuration GUIs.
glfw
now has experimental support to create EGL contexts, so both node-glfw
and node-webgl
should support them. This will allow to use them on NodeOS.
Hi, I have a linux vanilla - bare - system, i have nodejs installed.
Worh a note: no graphical user-interface, just command line.
How can i manage to open up a graphical window, if there is no graphical user interface installed?
Hi i'm trying to install node-glfw on my Win 7 64bit on Node 0.8.17.
I've put your dependencies in the proper directories of my VC++ 12 installation and i get this as result of "npm install"
T=v8::FunctionTemplate
] (..\src\atb.cc)
Creazione della libreria C:\Users\Furio\git\webcl-stuff\node_modules\node-
glfw\build\Release\glfw.lib e dell'oggetto C:\Users\Furio\git\webcl-stuff\nod
e_modules\node-glfw\build\Release\glfw.exp in corso...
atb.obj : error LNK2001: simbolo esterno __imp__TwAddButton@20 non risolto [C:
Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
atb.obj : error LNK2001: simbolo esterno __imp__TwDraw@0 non risolto [C:\Users
Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
atb.obj : error LNK2001: simbolo esterno __imp__TwTerminate@0 non risolto [C:\U
sers\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
atb.obj : error LNK2001: simbolo esterno __imp__TwDefineEnum@12 non risolto [C:
\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
atb.obj : error LNK2001: simbolo esterno __imp__TwDeleteBar@4 non risolto [C:\U
sers\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
atb.obj : error LNK2001: simbolo esterno __imp__TwAddSeparator@12 non risolto [
C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
atb.obj : error LNK2001: simbolo esterno ___glewUseProgram non risolto [C:\User
s\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
atb.obj : error LNK2001: simbolo esterno __imp__TwRemoveVar@8 non risolto [C:\U
sers\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
atb.obj : error LNK2001: simbolo esterno __imp__TwRemoveAllVars@4 non risolto [
C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
atb.obj : error LNK2001: simbolo esterno __imp__TwNewBar@4 non risolto [C:\User
s\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
atb.obj : error LNK2001: simbolo esterno __imp__TwInit@8 non risolto [C:\Users
Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
atb.obj : error LNK2001: simbolo esterno __imp__TwWindowSize@8 non risolto [C:
Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
atb.obj : error LNK2001: simbolo esterno __imp__TwAddVarCB@28 non risolto [C:\U
sers\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
atb.obj : error LNK2001: simbolo esterno __imp__TwDefine@4 non risolto [C:\User
s\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwSetKeyCallback@4 non risol
to [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwInit@0 non risolto [C:\Use
rs\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__TwEventMouseButtonGLFW@8 non r
isolto [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxpro
j]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwGetKey@4 non risolto [C:\U
sers\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwSwapInterval@4 non risolto
[C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwCloseWindow@0 non risolto
[C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwGetVersion@12 non risolto
[C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwGetWindowSize@8 non risolt
o [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno _glewInit non risolto [C:\Users\Furio
\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwSetMousePos@8 non risolto
[C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno _glewGetString non risolto [C:\Users
Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwSetWindowSizeCallback@4 no
n risolto [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcx
proj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwSetWindowRefreshCallback@4
non risolto [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.
vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwSetMousePosCallback@4 non
risolto [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxpr
oj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwOpenWindow@36 non risolto
[C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwSleep@8 non risolto [C:\Us
ers\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwDisable@4 non risolto [C:
Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwSetMouseWheel@4 non risolt
o [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwGetGLVersion@12 non risolt
o [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwGetMousePos@8 non risolto
[C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwGetWindowParam@4 non risol
to [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno _glewGetErrorString non risolto [C:\U
sers\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwSetWindowPos@8 non risolto
[C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwSetTime@8 non risolto [C:
Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__TwEventCharGLFW@8 non risolto
[C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwEnable@4 non risolto [C:\U
sers\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwWaitEvents@0 non risolto [
C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwSwapBuffers@0 non risolto
[C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwSetWindowCloseCallback@4 n
on risolto [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vc
xproj]
glfw.obj : error LNK2001: simbolo esterno __imp__TwEventKeyGLFW@8 non risolto [
C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwSetCharCallback@4 non riso
lto [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwGetTime@0 non risolto [C:
Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwSetMouseButtonCallback@4 n
on risolto [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vc
xproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwGetMouseWheel@0 non risolt
o [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__TwMouseMotion@8 non risolto [C
:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwPollEvents@0 non risolto [
C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwRestoreWindow@0 non risolt
o [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwIconifyWindow@0 non risolt
o [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwExtensionSupported@4 non r
isolto [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxpro
j]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwGetMouseButton@4 non risol
to [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwSetMouseWheelCallback@4 no
n risolto [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcx
proj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwTerminate@0 non risolto [C
:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__TwMouseWheel@4 non risolto [C:
\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwSetWindowTitle@4 non risol
to [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwSetWindowSize@8 non risolt
o [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
glfw.obj : error LNK2001: simbolo esterno __imp__glfwOpenWindowHint@8 non risol
to [C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw\build\Release\glfw.node :
fatal error LNK1120: 60 esterni non risolti [C:\Users\Furio\git\webcl-stuff\no
de_modules\node-glfw\build\glfw.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_mo
dules\npm\node_modules\node-gyp\lib\build.js:255:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\Program Files (x86)\nodejs\node_modules\npm\nod
e_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Furio\git\webcl-stuff\node_modules\node-glfw
gyp ERR! node -v v0.8.17
gyp ERR! node-gyp -v v0.8.2
gyp ERR! not ok
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! cmd "/c" "node-gyp rebuild"
failed with 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the node-glfw package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls node-glfw
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program File
s (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "node-glfw"
npm ERR! cwd C:\Users\Furio\git\webcl-stuff
npm ERR! node -v v0.8.17
npm ERR! npm -v 1.2.0
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Furio\git\webcl-stuff\npm-debug.log
npm ERR! not ok code 0
npm install node-glfw
fails.
Line 265 in dbec0b6
v8 API seems to be updated. My npm version is 1.3.10.
Hello, when i tried to install the package. I got the following error:
Don't know if this is just a problem with my setup. I have node version 10.14.2 and have installed visual studio 2015 community. Thanks for any help :)
It is best to start with it with a simple application code from the README.
npm install node-glfw
fails due to this dep.
Especially for use in other things, it would simplify things for me on OSX (it would probably help linux people, too) to not have a dependency on AntTweakBar, as everything else is built-in, and I don't need it.
Would it be reasonable to make node-AntTweakBar a separate project, for people who are not using AntTweakBar?
I have just installed:
And I'm trying to install node-glfw by "npm install node-glfw" but I'm having this:
Conversion from integral type to pointer type requires reinterpret_ca
st, C-style cast or function-style cast
..\src\glfw.cc(36): error C2039: 'NewSymbol' : is not a member of 'v8::String'
[C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\atb.cc(19): error C2039: 'NewSymbol' : is not a member of 'v8::String' [
C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\glfw.cc(36): error C2660: 'v8::Integer::New' : function does not take 1
arguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(19): error C3861: 'NewSymbol': identifier not found [C:\temp\1\no
de_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(36): error C3861: 'NewSymbol': identifier not found [C:\temp\1\n
ode_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(37): error C2039: 'NewSymbol' : is not a member of 'v8::String'
[C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\atb.cc(34): error C2039: 'NewSymbol' : is not a member of 'v8::String' [
C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\glfw.cc(37): error C2660: 'v8::Integer::New' : function does not take 1
arguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(34): error C2660: 'v8::Integer::New' : function does not take 1 a
rguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(37): error C3861: 'NewSymbol': identifier not found [C:\temp\1\n
ode_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(34): error C3861: 'NewSymbol': identifier not found [C:\temp\1\no
de_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(38): error C2039: 'NewSymbol' : is not a member of 'v8::String'
[C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\atb.cc(35): error C2039: 'NewSymbol' : is not a member of 'v8::String' [
C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\glfw.cc(38): error C2660: 'v8::Integer::New' : function does not take 1
arguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(35): error C2660: 'v8::Integer::New' : function does not take 1 a
rguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(38): error C3861: 'NewSymbol': identifier not found [C:\temp\1\n
ode_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(35): error C3861: 'NewSymbol': identifier not found [C:\temp\1\no
de_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(45): error C2039: 'NewSymbol' : is not a member of 'v8::String'
[C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\atb.cc(36): error C2039: 'NewSymbol' : is not a member of 'v8::String' [
C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\glfw.cc(45): error C3861: 'NewSymbol': identifier not found [C:\temp\1\n
ode_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(36): error C2660: 'v8::Integer::New' : function does not take 1 a
rguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(52): error C2660: 'v8::Number::New' : function does not take 1 a
rguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(36): error C3861: 'NewSymbol': identifier not found [C:\temp\1\no
de_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(37): error C2039: 'NewSymbol' : is not a member of 'v8::String' [
C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\glfw.cc(74): error C2664: 'v8::Local<v8::Array> v8::Array::New(v8::Isola
te *,int)' : cannot convert argument 1 from 'int' to 'v8::Isolate *' [C:\temp\1
\node_modules\node-glfw\build\glfw.vcxproj]
Conversion from integral type to pointer type requires reinterpret_ca
st, C-style cast or function-style cast
..\src\atb.cc(37): error C2660: 'v8::Integer::New' : function does not take 1 a
rguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(37): error C3861: 'NewSymbol': identifier not found [C:\temp\1\no
de_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(78): error C2660: 'v8::Object::New' : function does not take 0 a
rguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(38): error C2039: 'NewSymbol' : is not a member of 'v8::String' [
C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\glfw.cc(79): error C2039: 'NewSymbol' : is not a member of 'v8::String'
[C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\atb.cc(38): error C2660: 'v8::Integer::New' : function does not take 1 a
rguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(79): error C2660: 'v8::Boolean::New' : function does not take 1
arguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(79): error C3861: 'NewSymbol': identifier not found [C:\temp\1\n
ode_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(80): error C2039: 'NewSymbol' : is not a member of 'v8::String'
[C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\atb.cc(38): error C3861: 'NewSymbol': identifier not found [C:\temp\1\no
de_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(80): error C2660: 'v8::Integer::New' : function does not take 1
arguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(39): error C2039: 'NewSymbol' : is not a member of 'v8::String' [
C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\glfw.cc(80): error C3861: 'NewSymbol': identifier not found [C:\temp\1\n
ode_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(39): error C2660: 'v8::Integer::New' : function does not take 1 a
rguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(82): error C2039: 'NewSymbol' : is not a member of 'v8::String'
[C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\atb.cc(39): error C3861: 'NewSymbol': identifier not found [C:\temp\1\no
de_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\atb.cc(40): error C2039: 'NewSymbol' : is not a member of 'v8::String' [
C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\glfw.cc(82): error C3861: 'NewSymbol': identifier not found [C:\temp\1\n
ode_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(40): error C2660: 'v8::Integer::New' : function does not take 1 a
rguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(40): error C3861: 'NewSymbol': identifier not found [C:\temp\1\no
de_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(85): error C2039: 'NewSymbol' : is not a member of 'v8::String'
[C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\atb.cc(41): error C2039: 'NewSymbol' : is not a member of 'v8::String' [
C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\glfw.cc(85): error C2660: 'v8::Integer::New' : function does not take 1
arguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(41): error C2660: 'v8::Integer::New' : function does not take 1 a
rguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(85): error C3861: 'NewSymbol': identifier not found [C:\temp\1\n
ode_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(41): error C3861: 'NewSymbol': identifier not found [C:\temp\1\no
de_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(86): error C2039: 'NewSymbol' : is not a member of 'v8::String'
[C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\atb.cc(42): error C2039: 'NewSymbol' : is not a member of 'v8::String' [
C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\glfw.cc(86): error C2660: 'v8::Integer::New' : function does not take 1
arguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(42): error C2660: 'v8::Integer::New' : function does not take 1 a
rguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(86): error C3861: 'NewSymbol': identifier not found [C:\temp\1\n
ode_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(42): error C3861: 'NewSymbol': identifier not found [C:\temp\1\no
de_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(44): error C2039: 'NewSymbol' : is not a member of 'v8::String' [
C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\atb.cc(44): error C2660: 'v8::Integer::New' : function does not take 1 a
rguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(89): error C2039: 'NewSymbol' : is not a member of 'v8::String'
[C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\atb.cc(44): error C3861: 'NewSymbol': identifier not found [C:\temp\1\no
de_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(89): error C2660: 'v8::Integer::New' : function does not take 1
arguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(45): error C2039: 'NewSymbol' : is not a member of 'v8::String' [
C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\glfw.cc(89): error C3861: 'NewSymbol': identifier not found [C:\temp\1\n
ode_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(45): error C2660: 'v8::Integer::New' : function does not take 1 a
rguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(90): error C2039: 'NewSymbol' : is not a member of 'v8::String'
[C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\atb.cc(45): error C3861: 'NewSymbol': identifier not found [C:\temp\1\no
de_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(90): error C2660: 'v8::Integer::New' : function does not take 1
arguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(46): error C2039: 'NewSymbol' : is not a member of 'v8::String' [
C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\glfw.cc(90): error C3861: 'NewSymbol': identifier not found [C:\temp\1\n
ode_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(46): error C2660: 'v8::Integer::New' : function does not take 1 a
rguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(46): error C3861: 'NewSymbol': identifier not found [C:\temp\1\no
de_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(93): error C2039: 'NewSymbol' : is not a member of 'v8::String'
[C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\atb.cc(47): error C2039: 'NewSymbol' : is not a member of 'v8::String' [
C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\glfw.cc(93): error C2660: 'v8::Integer::New' : function does not take 1
arguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(47): error C2660: 'v8::Integer::New' : function does not take 1 a
rguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(93): error C3861: 'NewSymbol': identifier not found [C:\temp\1\n
ode_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(47): error C3861: 'NewSymbol': identifier not found [C:\temp\1\no
de_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(94): error C2039: 'NewSymbol' : is not a member of 'v8::String'
[C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\atb.cc(48): error C2039: 'NewSymbol' : is not a member of 'v8::String' [
C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\glfw.cc(94): error C2660: 'v8::Integer::New' : function does not take 1
arguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(48): error C2660: 'v8::Integer::New' : function does not take 1 a
rguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(94): error C3861: 'NewSymbol': identifier not found [C:\temp\1\n
ode_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(48): error C3861: 'NewSymbol': identifier not found [C:\temp\1\no
de_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(95): error C2039: 'NewSymbol' : is not a member of 'v8::String'
[C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\atb.cc(49): error C2039: 'NewSymbol' : is not a member of 'v8::String' [
C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\glfw.cc(95): error C2660: 'v8::Integer::New' : function does not take 1
arguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(49): error C2660: 'v8::Integer::New' : function does not take 1 a
rguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(95): error C3861: 'NewSymbol': identifier not found [C:\temp\1\n
ode_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(49): error C3861: 'NewSymbol': identifier not found [C:\temp\1\no
de_modules\node-glfw\build\glfw.vcxproj]
..\src\atb.cc(49): fatal error C1003: error count exceeds 100; stopping compila
tion [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(98): error C2664: 'v8::Local<v8::Array> v8::Array::New(v8::Isola
te *,int)' : cannot convert argument 1 from 'int' to 'v8::Isolate *' [C:\temp\1
\node_modules\node-glfw\build\glfw.vcxproj]
Conversion from integral type to pointer type requires reinterpret_ca
st, C-style cast or function-style cast
..\src\glfw.cc(100): error C2660: 'v8::Object::New' : function does not take 0
arguments [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
..\src\glfw.cc(101): error C2039: 'NewSymbol' : is not a member of 'v8::String'
[C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
C:\Users\user\.node-gyp\0.12.3\deps\v8\include\v8.h(1599) : see decla
ration of 'v8::String'
..\src\glfw.cc(101): fatal error C1003: error count exceeds 100; stopping compi
lation [C:\temp\1\node_modules\node-glfw\build\glfw.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` fail
ed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\
npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074
:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\temp\1\node_modules\node-glfw
gyp ERR! node -v v0.12.3
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\bin\\npm-cli.js" "install" "node-glfw"
npm ERR! node v0.12.3
npm ERR! npm v2.9.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the node-glfw package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls node-glfw
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\temp\1\npm-debug.log
C:\temp\1>
What am I doing wrong? :(
I can give you an access to my system via teamviewer if you want to help and need it.
Got the following error when trying to run test/test.js. Using Dependency Walker on Release\glfw.node showed that I was missing vcruntime140.dll. After installing the Visual C++ Redistributable for Visual Studio 2015 everything worked fine. It does make me wonder how that ended up as a dependency, given that the visual studio solution was generated on my computer and not part of the git tree. It must be some issue with node-gyp? Anyways, I'm just posting this here in case some else has similar issues. Maybe list "the most current visual c++ redistributable" as a dependency on the readme.md?
snip@snip ~/Documents/src/nodejs/glfw-test/node_modules/node-glfw
$ node test/test.js
c:\Users\snip\Documents\src\nodejs\glfw-test\node_modules\bindings\bindings.js
:83
throw e
^
Error: The specified module could not be found.
\\?\c:\Users\snip\Documents\src\nodejs\glfw-test\node_modules\node-glfw\build\
Release\glfw.node
at Error (native)
at Object.Module._extensions..node (module.js:424:18)
at Module.load (module.js:345:32)
at Function.Module._load (module.js:302:12)
at Module.require (module.js:355:17)
at require (internal/module.js:13:17)
at bindings (c:\Users\snip\Documents\src\nodejs\glfw-test\node_modules\bin
dings\bindings.js:76:44)
at Object.<anonymous> (c:\Users\snip\Documents\src\nodejs\glfw-test\node_m
odules\node-glfw\index.js:1:48)
at Module._compile (module.js:399:26)
at Object.Module._extensions..js (module.js:406:10)
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.