Kautenja / nes-py

A Python3 NES emulator and OpenAI Gym interface
MIT License
235 stars 63 forks source link

Can't compile it in m1 mac #81

Closed yingshaoxo closed 2 years ago

yingshaoxo commented 2 years ago

Here is my solution:

go to setup.py,

replace:

EXTRA_COMPILE_ARGS = ['-std=c++1y', '-march=native', '-pipe', '-O3']

to:

EXTRA_COMPILE_ARGS = ['-std=c++1y', '-mcpu=apple-m1', '-pipe', '-O3']

then:

pip install .
Kautenja commented 2 years ago

Resolved in https://github.com/Kautenja/nes-py/pull/79