You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to build opencv-python from source on Ubuntu 22.04 with Python 3.10.4. However, I would like to override the default PYTHON3_NUMPY_INCLUDE_DIRS setting from something like /home/user/miniconda3/envs/py310/lib/python3.10/site-packages/numpy/core/include to /home/user/miniconda3/envs/py310/lib/python3.10/site-packages/numpy/core/include/numpy. Is there any way to achieve this, because otherwise the build fails as I encounter the following error fatal error: numpy/ndarrayobject.h: No such file or directory.
Actual behaviour
Already described above.
Steps to reproduce
example code
Change directory to opencv-python.
Enable virtual Python environment and make sure numpy and scikit-build are installed.
This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
I'm using the latest version of opencv-python
The text was updated successfully, but these errors were encountered:
I have just edited the Python3_NumPy_INCLUDE_DIRS option in the file opencv-python/_skbuild/linux-x86_64-3.10/cmake-build/CMakeCache.txt to use the desired path. Have started re-building the software again and see if the same error will crop up. Will report here once I have the results.
No luck, it seems that the edited value for the Python3_NumPy_INCLUDE_DIRS option in the opencv-python/_skbuild/linux-x86_64-3.10/cmake-build/CMakeCache.txt file got overwritten during the build, so cannot update manually this way.
Expected behaviour
I need to build
opencv-python
from source on Ubuntu 22.04 with Python 3.10.4. However, I would like to override the defaultPYTHON3_NUMPY_INCLUDE_DIRS
setting from something like/home/user/miniconda3/envs/py310/lib/python3.10/site-packages/numpy/core/include
to/home/user/miniconda3/envs/py310/lib/python3.10/site-packages/numpy/core/include/numpy
. Is there any way to achieve this, because otherwise the build fails as I encounter the following errorfatal error: numpy/ndarrayobject.h: No such file or directory
.Actual behaviour
Already described above.
Steps to reproduce
opencv-python
.numpy
andscikit-build
are installed.Issue submission checklist
opencv-python
The text was updated successfully, but these errors were encountered: