Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with building opencv-python with non-free modules in vs code #858

Closed
4 tasks done
aadinesarkar opened this issue Jun 25, 2023 · 3 comments
Closed
4 tasks done
Assignees
Labels

Comments

@aadinesarkar
Copy link

Expected behaviour

Expected opencv-contrib-python wheel package to be created in dist in visual studio code.

Actual behaviour

scikit-build could not get a working generator for your system. Aborting build.

Building windows wheels for Python 3.11 requires Microsoft Visual Studio 2022.
Get it with "Visual Studio 2017":

Steps to reproduce

#306 comment

Issue submission checklist
  • 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
@aadinesarkar
Copy link
Author

aadinesarkar commented Jun 25, 2023

Can non-free modules not be installed without using visual studio?

@asmorkalov
Copy link
Collaborator

Related #831

@asmorkalov
Copy link
Collaborator

OpenCV uses scikit-build infrastructure for C++ code. It supports CMAKE_ARGS environment variable to provide custom CMake options.
See:

For example, if you want to build OpenCV-Python package from sources for Linux and enable OpenVINO and GStreamer:

 export CMAKE_ARGS="-DWITH_OPENVINO=ON -DWITH_GSTREAMER=OFF"
python3 setup.py bdist_wheel

@asmorkalov asmorkalov self-assigned this Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants