dji-sdk / RoboMaster-SDK

DJI RoboMaster Python SDK and Sample Code for RoboMaster EP.
Apache License 2.0
312 stars 141 forks source link

Add Apple Silicon support #98

Open kaisoapbox opened 9 months ago

kaisoapbox commented 9 months ago

There aren't pre-built arm64 wheels for apple silicon.

I found a workaround that (related to #33) worked for me, requiring anaconda:

CONDA_SUBDIR=osx-64 conda create -n robo python=3.8.10
conda activate robo
python -c "import platform;print(platform.machine())" # x86_64
conda config --env --set subdir osx-64 # set future packages installs to also use osx-64 over arm64
pip install robomaster

That's just a temporary workaround using rosetta, though. Even just instructions for building the package from source would be great, then we could build our own packages.