zhangyuanwei / node-images

Cross-platform image decoder(png/jpeg/gif) and encoder(png/jpeg) for Nodejs
https://npmjs.org/package/images
MIT License
1.55k stars 204 forks source link

请问mac M1平台如何自己编译darwin-arm64-binding.node? #256

Open RedLove opened 1 year ago

RedLove commented 1 year ago

我加了游戏中支持的图片格式,现在windows可以编译通过,在mac上使用 node-gyp编译时报了很多错,解决报错编译后,使用自己编译的 darwin-arm64-binding.node 时node会发生闪退并且没有报错信息,但使用项目中已经编译好的进行格式间转换就没有问题。

目前闪退发生在new Image().loadFromBuffer(buf, 0, buf.length);,请问 darwin-arm64 上正确的编译方式是什么?

oxUnd commented 1 year ago

现在不可用么?

EdwardLi-coder commented 11 months ago

我的就是这个错

EdwardLi-coder commented 11 months ago

大佬 解决了吗?