opencv / opencv

Open Source Computer Vision Library
https://opencv.org
Apache License 2.0
78.03k stars 55.7k forks source link

Python bindings do not respect optional modules #26098

Open allsey87 opened 1 week ago

allsey87 commented 1 week ago

System Information

OpenCV 4.10.0

Detailed description

When building OpenCV with Python support, it seems that I am forced to compile a bunch of modules that I do not want in order to generate the Python bindings. So far, I have been forced to compile imgproc, features2d, gapi, and dnn.

Steps to reproduce

When running CMake, define the BUILD_LIST as core,python_bindings_generator,python_tests,python3 and watch it fail with SymbolNotFound and TypeResolutionFailed errors.

Issue submission checklist

asmorkalov commented 1 week ago

@allsey87 There several "hard-coded" dependencies in bindings. Could you provide build log and configuration details?