Skip to content

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

@RedLove

Description

@RedLove

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions