opencv / opencv/opencv-python

Failed to build opencv-python ERROR: Could not build wheels for opencv-python (Mac)

Aperta
#910 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

incomplete
Lingua principale
Python
Stelle
5.4k
Fork
1k
Merge medio
22h 17m
PR unite (30g)
3

Descrizione

Title: "Issue Generating Wheel for OpenCV on macOS"

Description:
I am switching to mac and,
I am trying to build OpenCV on macOS, and I encountered an issue when generating a wheel for OpenCV. Here's the context and the problem I'm facing:

Problem:
When I attempt to build OpenCV from source, I get to the point where I need to generate a wheel for OpenCV. However, the build process for fails with an error. I've tried the following steps:

  1. Cloned the OpenCV repository and followed the build process as outlined in the official documentation.

  2. At the wheel generation step, I run the following command:

    python setup.py bdist_wheel
    

Error Message:

 Problem with the CMake installation, aborting build. CMake executable is cmake
  ----------------------------------------
  ERROR: Failed building wheel for opencv-python
Failed to build opencv-python

Expected Behavior:
I expect the wheel to be generated successfully without errors.

Additional Information:

  • I have already installed Xcode and Xcode Command Line Tools.
  • My development environment is set up with the necessary dependencies.
  • I have tried building OpenCV with both Python 3.11 and Python 3.12 with the same result.

Question:
What could be causing this error during the wheel generation for OpenCV on macOS, and how can I resolve it? Are there any specific configuration or dependency requirements I might be missing?

I appreciate any guidance and suggestions to help me successfully build OpenCV on macOS. Thank you in advance for your assistance.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia esaminando la documentazione ufficiale di build del repository e l’invocazione di setup.py bdist_wheel su macOS. Riproduci il problema di installazione di CMake con Python 3.11 o 3.12, quindi esamina l’output della build per identificare la configurazione o la dipendenza mancante. Il lavoro è completato quando la causa è documentata e il wheel viene compilato correttamente, con un test mirato o una riproduzione se il repository ne fornisce uno.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
cmake, python
Ambito
build-system
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
20/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.