From 368501a5d45f85f982f056b774a4a1e0e9a137be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20B=C3=BCchner?= Date: Mon, 6 Mar 2023 11:50:23 +0100 Subject: [PATCH] Enable installation on Apple M1 Add readme content to ensure c++ 11 compilation on mac --- README.md | 13 +++++++++++++ setup.cfg | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 394002a..1af00a6 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,19 @@ The user can provide `face_data` which then projected onto the `face_img`. We support automatic face detection with landmark extraction using `mediapipe`. However, the user can also provide the landmarks manually if they are already known and fit the Canonical Face Model. +## Installation + +### MacOS + +To use meshpy a C++ compiler is required. +On MacOS you can use xcodebuild which is installed by default. +To enable it please run the following command and agree to the license agreement. +Then it should be able to compile the C++ code in your python environment. + +```bash +sudo xcodebuild -license +``` + ## Usage ```python diff --git a/setup.cfg b/setup.cfg index acbf181..9194bc2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -51,7 +51,8 @@ install_requires = numpy meshpy opencv-python-headless - mediapipe + mediapipe; platform_system != "Darwin" or platform.machine != "arm64" + mediapipe-silicon; platform_system == "Darwin" and platform.machine == "arm64" [options.packages.find] where = src