Skip to content

Commit a7b304f

Browse files
committed
opencv: fix build
1 parent d129d08 commit a7b304f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pythonforandroid/recipes/opencv/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class OpenCVRecipe(NDKRecipe):
1515
build of most of the libraries of the opencv's package, so we can
1616
process images, videos, objects, photos...
1717
'''
18-
version = '4.5.1'
18+
version = '4.12.0'
1919
url = 'https://github.com/opencv/opencv/archive/{version}.zip'
2020
depends = ['numpy']
2121
patches = ['patches/p4a_build.patch']
@@ -68,8 +68,9 @@ def build_arch(self, arch):
6868
python_link_version = self.ctx.python_recipe.link_version
6969
python_library = join(python_link_root,
7070
'libpython{}.so'.format(python_link_version))
71-
python_include_numpy = join(python_site_packages,
72-
'numpy', 'core', 'include')
71+
python_include_numpy = join(
72+
self.ctx.get_python_install_dir(arch.arch), "numpy/_core/include",
73+
)
7374

7475
shprint(sh.cmake,
7576
'-DP4A=ON',

0 commit comments

Comments
 (0)