Closed alanhoff closed 8 years ago
Thanks for the report. I'll have a look. Are you using the latest lib glfw3 on your system? Which Linux are you using?
Also, you may want to use node 0.10.33 that fixes some issues (though this error has nothing to do with 0.10.32, I think it could be your version of glfw).
-- mike On Nov 1, 2014 12:15 PM, "Alan Hoffmeister" notifications@github.com wrote:
I'm getting this error when I try to install node-glfw
node-glfw@0.3.1 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 oknpm ERR! node-glfw@0.3.1 install:
node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-glfw@0.3.1 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— Reply to this email directly or view it on GitHub https://github.com/mikeseven/node-glfw/issues/12.
Yes, I'm using the latest glfw3 downloaded from the official site, then make && sudo make install
. I'm using Ubuntu 13.10 x64.
I'm getting this error when I try to install node-glfw