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

electron require ffcreator 报错 #262

Open
songhuixiang opened this issue Aug 19, 2022 · 6 comments
Open

electron require ffcreator 报错 #262

songhuixiang opened this issue Aug 19, 2022 · 6 comments

Comments

@songhuixiang
Copy link

node version: 16.14.2
electron version: 19.0.8
微信截图_20220819160319

@songhuixiang
Copy link
Author

"ffcreator": "^6.7.2",

@drawcall
Copy link
Member

drawcall commented Aug 19, 2022

rebuild -C ./node_modules/gl

stackgl/headless-gl#227

@songhuixiang
Copy link
Author

@zdu-strong
Copy link
Contributor

在electron中使用会有很多麻烦, 许多库需要进行重新编译, 当然, 是可以解决的.
我曾经在electron中使用了ffcreator, 它导致我的开发环境的搭建步骤变得更多.
如果可以选择, 建议你使用一个独立的nodejs项目, 并引入ffcreator进行开发.
在后台使用多进程的方式去调用这个nodejs项目.

@ImpChiang
Copy link

在electron中使用会有很多麻烦, 许多库需要进行重新编译, 当然, 是可以解决的. 我曾经在electron中使用了ffcreator, 它导致我的开发环境的搭建步骤变得更多. 如果可以选择, 建议你使用一个独立的nodejs项目, 并引入ffcreator进行开发. 在后台使用多进程的方式去调用这个nodejs项目.

请问原生模块重新编译怎么解决?我遇到的是gl和canvas均编译失败

@drawcall
Copy link
Member

先使用这个项目 #435 ,ffcreator结合electron我后面会更新

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

4 participants