opencv / opencv/opencv-python

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

Đang mở
#910 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

incomplete
Ngôn ngữ chính
Python
Star
5.4k
Fork
1k
Merge trung bình
22 giờ 17 phút
Pull request đã merge (30 ngày)
3

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách xem xét tài liệu build chính thức của repository và lời gọi setup.py bdist_wheel trên macOS. Tái hiện lỗi cài đặt CMake với Python 3.11 hoặc 3.12, sau đó kiểm tra đầu ra build để xác định cấu hình hoặc dependency còn thiếu. Công việc được coi là hoàn tất khi nguyên nhân được ghi lại và wheel được build thành công, kèm theo một test tập trung hoặc bản tái hiện nếu repository có cung cấp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
cmake, python
Lĩnh vực
build-system
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
20/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.