opencv - python3-opencv not building properly
With master as of yesterday (February 12, 2024), the python3-opencv package is not building. There is no error during the build of the opencv recipe, but the package itself never builds.
During the do_configure step there is a non-fatal error generated:
-- Found PythonInterp: .../opencv/4.9.0/recipe-sysroot-native/usr/bin/python3 (found suitable version "3.12.1", minimum required is "3.2") -- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is at least version "3.12")
I've been unable to figure out what is causing the failure. Was hoping someone else might be able to figure this out or provide a clue to be able to figure out what Cmake is trying to do that it can't.
Quoted 7 lines · Mark Hatle
With master as of yesterday (February 12, 2024), the python3-opencv package is not building. There is no error during the build of the opencv recipe, but the package itself never builds.
During the
do_configurestep there is a non-fatal error generated:
Quoted 8 lines
-- Found PythonInterp: .../opencv/4.9.0/recipe-sysroot-native/usr/bin/python3 (found suitable version "3.12.1", minimum required is "3.2")
-- Could NOT find PythonLibs (missing:PYTHON_LIBRARIESPYTHON_INCLUDE_DIRS) (Required is at least version "3.12")I've been unable to figure out what is causing the failure. Was hoping someone else might be able to figure this out or provide a clue to be able to figure out what Cmake is trying to do that it can't.
Just shooting in dark here, but can you try inheriting python3targetconfig in the recipe and see if that helps ?
Quoted 9 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#108729): https://lists.openembedded.org/g/openembedded-devel/message/108729
Mute This Topic: https://lists.openembedded.org/mt/104335555/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 14 lines · Khem Raj
Quoted 12 lines · Mark Hatle
With master as of yesterday (February 12, 2024), the python3-opencv package is not building. There is no error during the build of the opencv recipe, but the package itself never builds.
During the
do_configurestep there is a non-fatal error generated:-- Found PythonInterp: .../opencv/4.9.0/recipe-sysroot-native/usr/bin/python3 (found suitable version "3.12.1", minimum required is "3.2")
-- Could NOT find PythonLibs (missing:PYTHON_LIBRARIESPYTHON_INCLUDE_DIRS) (Required is at least version "3.12")
Quoted 6 lines
Quoted 3 lines
I've been unable to figure out what is causing the failure. Was hoping someone else might be able to figure this out or provide a clue to be able to figure out what Cmake is trying to do that it can't.
Just shooting in dark here, but can you try inheriting python3targetconfig in the recipe and see if that helps ?
This seems to have changed the error message (or something else updated in the last day causing it to change). It's now:
Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is at least "3.12") Cannot probe for Python/Numpy support (because we are cross-compiling OpenCV)
If you want to enable Python/Numpy support, set the following variables:
PYTHON2_INCLUDE_PATH
PYTHON2_LIBRARIES (optional on Unix-like systems)
PYTHON2_NUMPY_INCLUDE_DIRS
PYTHON3_INCLUDE_PATH
PYTHON3_LIBRARIES (optional on Unix-like systems)
PYTHON3_NUMPY_INCLUDE_DIRS
So the issue may be the above now that I'm getting further diagnostics. I'll continue to explore, thanks!
--Mark
Quoted 13 lines
Quoted 13 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#108731): https://lists.openembedded.org/g/openembedded-devel/message/108731
Mute This Topic: https://lists.openembedded.org/mt/104335555/3616948
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 38 lines · Mark Hatle
Quoted 14 lines · Khem Raj
Quoted 12 lines · Mark Hatle
With master as of yesterday (February 12, 2024), the python3-opencv package is not building. There is no error during the build of the opencv recipe, but the package itself never builds.
During the
do_configurestep there is a non-fatal error generated:-- Found PythonInterp: .../opencv/4.9.0/recipe-sysroot-native/usr/bin/python3 (found suitable version "3.12.1", minimum required is "3.2")
-- Could NOT find PythonLibs (missing:PYTHON_LIBRARIESPYTHON_INCLUDE_DIRS) (Required is at least version "3.12")Quoted 6 lines
Quoted 3 lines
I've been unable to figure out what is causing the failure. Was hoping someone else might be able to figure this out or provide a clue to be able to figure out what Cmake is trying to do that it can't.
Just shooting in dark here, but can you try inheriting python3targetconfig in the recipe and see if that helps ?
This seems to have changed the error message (or something else updated in the last day causing it to change). It's now:
Could NOT find PythonLibs (missing:
PYTHON_LIBRARIESPYTHON_INCLUDE_DIRS) (Required is at least "3.12")
Cannot probe for Python/Numpy support (because we are cross-compiling OpenCV) If you want to enable Python/Numpy support, set the following variables:
PYTHON2_INCLUDE_PATH
PYTHON2_LIBRARIES(optional on Unix-like systems)PYTHON2_NUMPY_INCLUDE_DIRS
PYTHON3_INCLUDE_PATH
PYTHON3_LIBRARIES(optional on Unix-like systems)PYTHON3_NUMPY_INCLUDE_DIRS
Quoted 2 lines
So the issue may be the above now that I'm getting further diagnostics. I'll continue to explore, thanks!
Ok, I got it to build. PYTHON3_NUMPY_INCLUDE_DIRS was already specified by the PACKAGECONFIG settings, but the PYTHON3_INCLUDE_PATH was _not_, when I add that it started working. I'll generate a patch that should help resolve this.
Quoted 19 lines
--Mark
Quoted 17 lines
Quoted 17 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#108741): https://lists.openembedded.org/g/openembedded-devel/message/108741
Mute This Topic: https://lists.openembedded.org/mt/104335555/3616948
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-