Skip to content

Instantly share code, notes, and snippets.

@nobonobo
Last active April 21, 2023 05:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nobonobo/17a0079c0404a4aedd48da022c6539e6 to your computer and use it in GitHub Desktop.
Save nobonobo/17a0079c0404a4aedd48da022c6539e6 to your computer and use it in GitHub Desktop.
opencv-contrib-pythonの配布バイナリの生成

prerequire

dockerのクロスアーキテクチャサポートを有効にする WSL2の場合、「sudo apt install qemu-user-static」とするだけ。

docker run --rm -it arm64v8/alpine:latest

setup

http://dl-cdn.alpinelinux.org/alpine/edge/main
http://dl-cdn.alpinelinux.org/alpine/edge/community
http://dl-cdn.alpinelinux.org/alpine/edge/testing
apk add -u python3-dev py3-pip py3-numpy py3-opengl py3-matplotlib py3-pygame py3-scipy py3-scikit-build
apk add gcc g++ musl-dev zlib-dev

git clone --recursive https://github.com/opencv/opencv-python
cd opencv-python
python3 setup.py bdist_wheel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment