File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
pythonforandroid/recipes/opencv Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments