jazzay / flecs-rs

Rust bindings for the Flecs ECS library
MIT License
69 stars 9 forks source link

EMSDK setup #3

Closed troyedwardsjr closed 2 years ago

troyedwardsjr commented 2 years ago

The latest version of Emscripten is not working for me. Added setup for specific version of Emscripten and other minor configuration changes.

jazzay commented 2 years ago

Hi @troyedwardsjr thanks for this contribution! When I run the emsdk setup on my Mac M1 I get this error:

...
HEAD is now at 891b449 3.1.10 (#1046)
Cloning from https://chromium.googlesource.com/emscripten-releases...
Cloning into '/Users/jason/dev/sdks/emsdk/releases'...
remote: Finding sources: 100% (75/75)
remote: Total 33915 (delta 20096), reused 33913 (delta 20096)
Receiving objects: 100% (33915/33915), 14.53 MiB | 18.81 MiB/s, done.
Resolving deltas: 100% (20096/20096), done.
error: failed to find build of any recent emsdk revision
make: *** [setup_emsdk] Error 1

Any idea why this would be happening?

jazzay commented 2 years ago

Ok this looks to be a Mac specific issue due to SSL certs not being set up for Python. That can be resolved by following the setup instructions here: https://bugs.python.org/issue43404

I've also adjusted the make file to support Mac better re zsh.

jazzay commented 2 years ago

I'm going to merge as is, and apply Mac specific changes after.