Skip to content

install error with gen.js #11

@michaelpalumbo

Description

@michaelpalumbo

@grrrwaaa I'm attempting to fresh install node-gles3 on a VR-capable windows laptop (Unreal runs fine, for instance), but I can't get past this error:

npm i

> gles3@0.0.1 install
> node tools/gen.js && node-gyp rebuild

unhandled int* xpos     void glfwGetMonitorWorkarea(GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height)
unhandled int* ypos     void glfwGetMonitorWorkarea(GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height)
unhandled int* width    void glfwGetMonitorWorkarea(GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height)
unhandled int* height   void glfwGetMonitorWorkarea(GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height)
unhandled GLFWgammaramp* ramp   void glfwSetGammaRamp(GLFWmonitor* monitor, GLFWgammaramp* ramp)
unhandled GLFWimage* images     void glfwSetWindowIcon(GLFWwindow* window, int count, GLFWimage* images)
unhandled double timeout        void glfwWaitEventsTimeout(double timeout)
unhandled double* xpos  void glfwGetCursorPos(GLFWwindow* window, double* xpos, double* ypos)
unhandled double* ypos  void glfwGetCursorPos(GLFWwindow* window, double* xpos, double* ypos)
unhandled double xpos   void glfwSetCursorPos(GLFWwindow* window, double xpos, double ypos)
unhandled double ypos   void glfwSetCursorPos(GLFWwindow* window, double xpos, double ypos)
unhandled GLFWdropfun callback  GLFWdropfun glfwSetDropCallback(GLFWwindow* window, GLFWdropfun callback)
unhandled double time   void glfwSetTime(double time)
undefined:1
value": "0"}
^

SyntaxError: Unexpected token v in JSON at position 0
    at JSON.parse (<anonymous>)
    at Object.<anonymous> (C:\Users\User\Documents\Git\node-gles3\tools\gen.js:403:26)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47

Node.js v18.16.1
npm ERR! code 1
npm ERR! path C:\Users\User\Documents\Git\node-gles3
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node tools/gen.js && node-gyp rebuild

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\User\AppData\Local\npm-cache\_logs\2023-07-12T22_02_07_484Z-debug-0.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions