Freetype has been found when there are no freetype in environment (Windows)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- cmake, python
- Lĩnh vực
- build-system
Hướng nghiên cứu
Tái hiện quá trình build wheel Windows từ thư mục gốc của repository với các biến môi trường được liệt kê, sau đó kiểm tra phần kiểm tra freetype được hiển thị trong opencv_contrib/modules/freetype/CMakeLists.txt và cảnh báo trong OpenCVUtils.cmake. Được xem là hoàn tất khi việc thiếu cài đặt FreeType không tạo ra lỗi liên kết freetype.lib, trong khi build vẫn hoàn tất mà không cần đặt thủ công BUILD_opencv_freetype=OFF.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Actual behaviour
I have faced the issue when I do not have pre-installed freetype in my environment, but during a build cmake finds it and try to build the project with it.
The log during the configuration:
-- Checking for module 'freetype2'
-- Found freetype2, version 23.0.17
CMake Warning at C:/Users/runneradmin/AppData/Local/Temp/pip-req-build-egif0lkt/opencv/cmake/OpenCVUtils.cmake:882 (message):
ocv_check_modules(FREETYPE): can't find library 'freetype'. Specify
'pkgcfg_lib_FREETYPE_freetype' manually
Call Stack (most recent call first):
C:/Users/runneradmin/AppData/Local/Temp/pip-req-build-egif0lkt/opencv_contrib/modules/freetype/CMakeLists.txt:6 (ocv_check_modules)
And the log during the build:
LINK : fatal error LNK1181: cannot open input file 'freetype.lib' [C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-egif0lkt\_skbuild\win32-3.6\cmake-build\modules\python3\opencv_python3.vcxproj]
Steps to reproduce
- example code:
Run building a wheel command in the root directory of opencv-python repository with the following environment variables:
SDIST=0
ENABLE_HEADLESS=0
ENABLE_CONTRIB=1
python -m pip wheel --wheel-dir=%cd%\wheelhouse . --verbose
- operating system: Windows x86 / x64
- architecture (e.g. x86)
- opencv-python version: 4.5.2
- branch: master
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
How to temporary fix it
I have added the flag -DBUILD_opencv_freetype=OFF to suppress freetype and to build without it.
- 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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của opencv/opencv-python
-
[DOC] README file Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
opencv/opencv-python#1217 · 3 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
opencv/opencv-python#1165 · 2 bình luận · 1 reaction ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
opencv/opencv-python#1273 · 1 bình luận ·
-
FFMPEG v8.1.1 vulnerabilities Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
opencv/opencv-python#1272 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 70/100
opencv/opencv-python#1268 · 1 bình luận ·
Tất cả issue của opencv/opencv-python
Issue tương tự
-
bug confirmed issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
open-webui/open-webui#30750 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100