Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFCReator和FFCreatorLite支持的nodejs版本分别是哪些版本? #433

Closed
zerzhier opened this issue Jun 3, 2024 · 7 comments
Closed

Comments

@zerzhier
Copy link

zerzhier commented Jun 3, 2024

FFCReator和FFCreatorLite支持的nodejs版本分别是哪些版本?

@drawcall
Copy link
Member

node v14+

@jsoss
Copy link

jsoss commented Dec 18, 2024

FFCreator,node18安装成功, node 20+ 安装不成功
FFCreatorLite node18, 20, 22 都可以

@drawcall
Copy link
Member

FFCreator,node18安装成功, node 20+ 安装不成功

有何报错

@jsoss
Copy link

jsoss commented Dec 18, 2024

node_modules/.pnpm/[email protected][email protected]/node_modules/canvas: Running install script...
node_modules/.pnpm/[email protected]/node_modules/gl: Running install script, failed in 2.2s
.../.pnpm/[email protected]/node_modules/gl install$ prebuild-install || node-gyp rebuild
│ prebuild-install warn install No prebuilt binaries found (target=22.11.0 runtime=node arch=x64 libc= platform=linux)
│ gyp info it worked if it ends with ok
│ gyp info using [email protected]
│ gyp info using [email protected] | linux | x64
│ (node:86425) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
│ (Use `node --trace-deprecation ...` to show where the warning was created)
│ gyp info find Python using Python version 3.12.3 found at "/usr/bin/python3"
│ gyp info spawn /usr/bin/python3
│ gyp info spawn args [
│ gyp info spawn args   '/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/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   '/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/gl/build/config.gypi',
│ gyp info spawn args   '-I',
│ gyp info spawn args   '/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/node-gyp/addon.gypi',
│ gyp info spawn args   '-I',
│ gyp info spawn args   '/home/juzi/.cache/node-gyp/22.11.0/include/node/common.gypi',
│ gyp info spawn args   '-Dlibrary=shared_library',
│ gyp info spawn args   '-Dvisibility=default',
│ gyp info spawn args   '-Dnode_root_dir=/home/juzi/.cache/node-gyp/22.11.0',
│ gyp info spawn args   '-Dnode_gyp_dir=/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/node-gyp',
│ gyp info spawn args   '-Dnode_lib_file=/home/juzi/.cache/node-gyp/22.11.0/<(target_arch)/node.lib',
│ gyp info spawn args   '-Dmodule_root_dir=/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/gl',
│ gyp info spawn args   '-Dnode_engine=v8',
│ 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 args ]
│ gyp info spawn make
│ gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
│ make: Entering directory '/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/gl/build'
│   CXX(target) Release/obj.target/angle_common/angle/src/common/Float16ToFloat32.o
│ In file included from ../angle/src/common/debug.h:16,
│                  from ../angle/src/common/mathutil.h:12,
│                  from ../angle/src/common/Float16ToFloat32.cpp:9:
│ ../angle/src/common/angleutils.h:36:14: error: ‘uintptr_t’ does not name a type
│    36 | extern const uintptr_t DirtyPointer;
│       |              ^~~~~~~~~
│ ../angle/src/common/angleutils.h:21:1: note: ‘uintptr_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
│    20 | #include <vector>
│   +++ |+#include <cstdint>
│    21 | 
│ make: *** [angle/src/angle_common.target.mk:156: Release/obj.target/angle_common/angle/src/common/Float16ToFloat32.o] Error 1
│ make: Leaving directory '/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/gl/build'
│ gyp ERR! build error 
│ gyp ERR! stack Error: `make` failed with exit code: 2
│ gyp ERR! stack     at ChildProcess.onExit (/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/node-gyp/lib/build…
│ gyp ERR! stack     at ChildProcess.emit (node:events:518:28)
│ gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:293:12)
│ gyp ERR! System Linux 5.15.167.4-microsoft-standard-WSL2
│ gyp ERR! command "/home/juzi/.nvm/versions/node/v22.11.0/bin/node" "/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_m…
│ gyp ERR! cwd /home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/gl
│ gyp ERR! node -v v22.11.0
│ gyp ERR! node-gyp -v v9.4.1
│ gyp ERR! not ok 
└─ Failed in 2.2s at /home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/gl
 ELIFECYCLE  Command failed with exit code 1.

上面是安装错误信息

操作系统 win11 wsl2 subsystem ubuntu24
nvm: 0.39.5
node: 22.11.0
python: 3.12.3
看起来是 [email protected] 安装失败, [email protected] 是可以安装成功的

@drawcall
Copy link
Member

node_modules/.pnpm/[email protected][email protected]/node_modules/canvas: Running install script...
node_modules/.pnpm/[email protected]/node_modules/gl: Running install script, failed in 2.2s
.../.pnpm/[email protected]/node_modules/gl install$ prebuild-install || node-gyp rebuild
│ prebuild-install warn install No prebuilt binaries found (target=22.11.0 runtime=node arch=x64 libc= platform=linux)
│ gyp info it worked if it ends with ok
│ gyp info using [email protected]
│ gyp info using [email protected] | linux | x64
│ (node:86425) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
│ (Use `node --trace-deprecation ...` to show where the warning was created)
│ gyp info find Python using Python version 3.12.3 found at "/usr/bin/python3"
│ gyp info spawn /usr/bin/python3
│ gyp info spawn args [
│ gyp info spawn args   '/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/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   '/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/gl/build/config.gypi',
│ gyp info spawn args   '-I',
│ gyp info spawn args   '/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/node-gyp/addon.gypi',
│ gyp info spawn args   '-I',
│ gyp info spawn args   '/home/juzi/.cache/node-gyp/22.11.0/include/node/common.gypi',
│ gyp info spawn args   '-Dlibrary=shared_library',
│ gyp info spawn args   '-Dvisibility=default',
│ gyp info spawn args   '-Dnode_root_dir=/home/juzi/.cache/node-gyp/22.11.0',
│ gyp info spawn args   '-Dnode_gyp_dir=/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/node-gyp',
│ gyp info spawn args   '-Dnode_lib_file=/home/juzi/.cache/node-gyp/22.11.0/<(target_arch)/node.lib',
│ gyp info spawn args   '-Dmodule_root_dir=/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/gl',
│ gyp info spawn args   '-Dnode_engine=v8',
│ 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 args ]
│ gyp info spawn make
│ gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
│ make: Entering directory '/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/gl/build'
│   CXX(target) Release/obj.target/angle_common/angle/src/common/Float16ToFloat32.o
│ In file included from ../angle/src/common/debug.h:16,
│                  from ../angle/src/common/mathutil.h:12,
│                  from ../angle/src/common/Float16ToFloat32.cpp:9:
│ ../angle/src/common/angleutils.h:36:14: error: ‘uintptr_t’ does not name a type
│    36 | extern const uintptr_t DirtyPointer;
│       |              ^~~~~~~~~
│ ../angle/src/common/angleutils.h:21:1: note: ‘uintptr_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
│    20 | #include <vector>
│   +++ |+#include <cstdint>
│    21 | 
│ make: *** [angle/src/angle_common.target.mk:156: Release/obj.target/angle_common/angle/src/common/Float16ToFloat32.o] Error 1
│ make: Leaving directory '/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/gl/build'
│ gyp ERR! build error 
│ gyp ERR! stack Error: `make` failed with exit code: 2
│ gyp ERR! stack     at ChildProcess.onExit (/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/node-gyp/lib/build…
│ gyp ERR! stack     at ChildProcess.emit (node:events:518:28)
│ gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:293:12)
│ gyp ERR! System Linux 5.15.167.4-microsoft-standard-WSL2
│ gyp ERR! command "/home/juzi/.nvm/versions/node/v22.11.0/bin/node" "/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_m…
│ gyp ERR! cwd /home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/gl
│ gyp ERR! node -v v22.11.0
│ gyp ERR! node-gyp -v v9.4.1
│ gyp ERR! not ok 
└─ Failed in 2.2s at /home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/gl
 ELIFECYCLE  Command failed with exit code 1.

上面是安装错误信息

操作系统 win11 wsl2 subsystem ubuntu24 nvm: 0.39.5 node: 22.11.0 python: 3.12.3 看起来是 [email protected] 安装失败, [email protected] 是可以安装成功的

sudo apt-get install build-essential libxi-dev libglu1-mesa-dev libglew-dev pkg-config
cd node_modules/gl
node-gyp rebuild

@jsoss
Copy link

jsoss commented Dec 19, 2024

sudo apt-get install build-essential libxi-dev libglu1-mesa-dev libglew-dev pkg-config
cd node_modules/gl
node-gyp rebuild

谢谢解答 ,

  1. 我用的 pnpm, 脚本做了修改如下:
cd node_modules/.pnpm/[email protected]/node_modules/gl
node-gyp rebuild

报错如下:

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info find Python using Python version 3.12.3 found at "/usr/bin/python3"

gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/home/juzi/.nvm/versions/node/v22.11.0/lib/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 '/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/gl/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/juzi/.nvm/versions/node/v22.11.0/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/juzi/.cache/node-gyp/22.11.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/juzi/.cache/node-gyp/22.11.0',
gyp info spawn args '-Dnode_gyp_dir=/home/juzi/.nvm/versions/node/v22.11.0/lib/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/juzi/.cache/node-gyp/22.11.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/gl',
gyp info spawn args '-Dnode_engine=v8',
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 args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/gl/build'
  CXX(target) Release/obj.target/angle_common/angle/src/common/Float16ToFloat32.o
In file included from ../angle/src/common/debug.h:16,
                 from ../angle/src/common/mathutil.h:12,
                 from ../angle/src/common/Float16ToFloat32.cpp:9:
../angle/src/common/angleutils.h:36:14: error: ‘uintptr_t’ does not name a type
   36 | extern const uintptr_t DirtyPointer;
      |              ^~~~~~~~~
../angle/src/common/angleutils.h:21:1: note: ‘uintptr_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   20 | #include <vector>
  +++ |+#include <cstdint>
   21 | 
make: *** [angle/src/angle_common.target.mk:156: Release/obj.target/angle_common/angle/src/common/Float16ToFloat32.o] Error 1
make: Leaving directory '/home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/gl/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.<anonymous> (/home/juzi/.nvm/versions/node/v22.11.0/lib/node_modules/node-gyp/lib/build.js:216:23)
gyp ERR! System Linux 5.15.167.4-microsoft-standard-WSL2
gyp ERR! command "/home/juzi/.nvm/versions/node/v22.11.0/bin/node" "/home/juzi/.nvm/versions/node/v22.11.0/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/juzi/projects/video-server/node_modules/.pnpm/[email protected]/node_modules/gl
gyp ERR! node -v v22.11.0
gyp ERR! node-gyp -v v11.0.0
gyp ERR! not ok 

找到issue, stackgl/headless-gl#271, 确实存在这个bug, 在[email protected] 中得到修改。

@drawcall
Copy link
Member

#457

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants