Freetype has been found when there are no freetype in environment (Windows)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- cmake, python
- Ambito
- build-system
Direzione di ricerca
Riproduci la build del wheel Windows dalla radice del repository con le variabili d’ambiente indicate, quindi esamina il controllo di freetype mostrato in opencv_contrib/modules/freetype/CMakeLists.txt e l’avviso di OpenCVUtils.cmake. Il lavoro è considerato completato quando l’assenza di un’installazione di FreeType non produce un errore di linking di freetype.lib e la build continua a completarsi senza impostare manualmente BUILD_opencv_freetype=OFF.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 5.4k
- Fork
- 1k
- Merge medio
- 22h 17m
- PR unite (30g)
- 3
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di opencv/opencv-python
-
[DOC] README file Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
opencv/opencv-python#1217 · 3 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
opencv/opencv-python#1165 · 2 commenti · 1 reazione ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
opencv/opencv-python#1273 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
opencv/opencv-python#1272 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 70/100
opencv/opencv-python#1268 · 1 commento ·
Tutte le issue di opencv/opencv-python
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
canonical/paas-charm#368 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
tech debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
addition to tracking list Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
StevenBlack/hosts#3256 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
qualcomm/qai-appbuilder#275 ·