Skip to content

hubutui/python-mediapipe-pkgbuild

Repository files navigation

PKGBUILD for building mediapipe python binding for ArchLinux with GPU support by opengl

Update: 2024.02.21, this PKGBUILD is tested for mediapipe 0.10.9, and should also works for the latest master branch.

To build mediapipe for ArchLinux with GPU support by opengl, we need to:

  1. update rules_apple to version 3.2.1, as this patch do.
  2. disable unused patch, as this patch do.
  3. add cstdint header, as this patch do, see also gcc 13 doc.
  4. setup opencv4 headers. as this patch do.
  5. add --experimental_allow_proto3_optional to protoc command, as this patch do.
  6. set link_opencv to True in setup.py by find and replace.
  7. optionally, set __version__ in setup.py to the right release.
  8. update .bazelversion to match the bazel version we are using.
  9. build the wheel file with MEDIAPIPE_DISABLE_GPU=0 python -m build --wheel --no-isolation, or MEDIAPIPE_DISABLE_GPU=0 python setup.py bdist_wheel, or just use extra-x86_64-build to create the package for ArchLinux.

If you would like to build mediapipe with CUDA support, refer to this repo. You will need more modifications if you would like to build mediapipe != 0.10.1 with CUDA support for ArchLinux or other platform.

You could also refer to this post for building mediapipe for Nvidia Jetson Nano platform (zh-cn only).

About

PKGBUILD file for building python-mediapipe in ArchLinux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages