jalagar / animated-art-engine

A generative engine that takes various png layers on a sprite sheet format, combines them and then converts them into a .gif file
MIT License
166 stars 64 forks source link

Please help! Can't get this working on Mac arm64 #180

Open NetworkEntity opened 1 year ago

NetworkEntity commented 1 year ago

Anyone ran into this issue?

It seems like the canvas version wont work with the node version. I'm not sure which versions i need? I'm running on a mac M1 arm64. I've built Cairo using macports, but i think the code was made on x86 and so its not compatible but i'm not sure what to change.

Any help would be much appreciated.

Error: dlopen(/Users/admin/Desktop/project/Compiling Code/Testing/gifengine/step2_spritesheet_to_generative_sheet/node_modules/canvas/build/Release/canvas.node, 0x0001): symbol not found in flat namespace '_cairo_fill' at Object.Module._extensions..node (node:internal/modules/cjs/loader:1187:18) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object. (/Users/admin/Desktop/ShodoCrypts/Shodocrypts v.3 GIF/Compiling Code/Testing/gifengine/step2_spritesheet_to_generative_sheet/node_modules/canvas/lib/bindings.js:3:18) at Module._compile (node:internal/modules/cjs/loader:1103:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) { code: 'ERR_DLOPEN_FAILED' }

gabmacinas commented 1 year ago

I'm able to find this issue if your brew is using intel, you can check using the activity monitor and if the app 'rust' is in Rosetta then reinstalling could be your solution. Link to StackOverflow setting up Homebrew on Mac Silicon