PrismarineJS/prismarine-viewer

Can't install - fails when building #93

3top1a posted onGitHub

Error:

CXX(target) Release/obj.target/translator_static/angle/src/compiler/translator/ShaderVars.o
  AR(target) Release/obj.target/angle/src/translator_static.a
  COPY Release/translator_static.a
  CXX(target) Release/obj.target/webgl/src/native/bindings.o
g++: error: 2/node_modules/gl/deps/include: No such file or directory
make: *** [webgl.target.mk:120: Release/obj.target/webgl/src/native/bindings.o] Error 1
make: Leaving directory '/home/not-a-weeb/Documents/mineflayer/test 2/node_modules/gl/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (node:events:376:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:277:12)
gyp ERR! System Linux 5.8.18-1-MANJARO
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/not-a-weeb/Documents/mineflayer/test 2/node_modules/gl
gyp ERR! node -v v15.3.0
gyp ERR! node-gyp -v v7.1.0
gyp ERR! not ok 
npm WARN enoent ENOENT: no such file or directory, open '/home/not-a-weeb/Documents/mineflayer/test 2/package.json'
npm WARN test 2 No description
npm WARN test 2 No repository field.
npm WARN test 2 No README data
npm WARN test 2 No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gl@4.9.0 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the gl@4.9.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/not-a-weeb/.npm/_logs/2020-12-22T21_44_55_853Z-debug.log

Installing fails when i install any version from 1.6 to latest.

Full log: 2020-12-22T21_44_55_853Z-debug.log


Don't put spaces in your path

posted by Karang over 4 years ago

Maybe we could make headless gl an optional dependency ?

On Tue, Dec 22, 2020, 20:47 Karang notifications@github.com wrote:

Don't put spaces in your path

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/prismarine-viewer/issues/93#issuecomment-749742922, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437RM3LGNPJJ5LXHL2STSWDZV3ANCNFSM4VGB5HMQ .

posted by rom1504 over 4 years ago

Maybe we could make headless gl an optional dependency ? … On Tue, Dec 22, 2020, 20:47 Karang @.***> wrote: Don't put spaces in your path — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#93 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437RM3LGNPJJ5LXHL2STSWDZV3ANCNFSM4VGB5HMQ .

Sure we could do that. We'll have to reorganize a bit the headless files. Maybe put them in a subpackage like electron and standalone. But its a separate issue, here the problem is the /home/not-a-weeb/Documents/mineflayer/test 2/node_modules/gl/deps/include path that get cut in half when used in g++. If it doesn't fail here it will fail later.

posted by Karang over 4 years ago

Either it was a space in my path or me not having a package.json, but either way it works now. Thanks!

posted by 3top1a over 4 years ago

Fund this Issue

$0.00
Funded

Pull requests