FFCreator icon indicating copy to clipboard operation
FFCreator copied to clipboard

electron require ffcreator 报错

Open songhuixiang opened this issue 2 years ago • 6 comments

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

songhuixiang avatar Aug 19 '22 08:08 songhuixiang

"ffcreator": "^6.7.2",

songhuixiang avatar Aug 19 '22 08:08 songhuixiang

rebuild -C ./node_modules/gl

https://github.com/stackgl/headless-gl/issues/227

drawcall avatar Aug 19 '22 13:08 drawcall

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

zdu-strong avatar Sep 30 '22 14:09 zdu-strong

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

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

ImpChiang avatar May 13 '24 07:05 ImpChiang

先使用这个项目 https://github.com/tnfe/FFCreator/issues/435 ,ffcreator结合electron我后面会更新

drawcall avatar Jun 28 '24 12:06 drawcall