Skip to content

Python bindings do not respect optional modules #26098

@allsey87

Description

@allsey87

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

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions