glfwJS
glfwJS copied to clipboard
Cannot build on Windows
~~I'm not familiar with gyp, but it turns out it misses the include path in windows.~~
~~It will says~~
C:\Users\<user>\Workspace\<project>\node_modules\glfw-n-api\generated\calls.c(1,10): fatal error C1083: Cannot open include file: “include/c/glfw3.h”: No such file or directory [C:\Users\<user>\Workspace\<project>\node_modules\glfw-n-api\build\glfwJS.vcxproj]
~~In the glfwJS.vsxproj, all the compile paths are missing path splitting \ like:~~
C:UsersXXXWorkspacenglnode_modulesglfw-n-api
~~Update:~~
~~In binding.gyp, we have~~
"include_dirs": [
"<@(module_root_dir)",
],
~~If I remove the @, it can compile correctly:~~
"include_dirs": [
"<(module_root_dir)",
],
~~Additionally:~~
~~Once the compile is passed, I found the javascript is requiring the ../build/${platform}/Release/glfwJS.node whereas the glfwJS.node is built to ../build/Release/glfwJS.node on Windows.~~
Update: I switch to use the git repo zip. It seems the git repo is up-to-date, but the npm package (0.0.4) is outdate. Maybe you can update the npm package. Thanks.