-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[opencv] opencv_contrib won't compile Freetype module #5383
Comments
I have tested this issue with vcpkg 2018.11.23-nohash and VS2017 15.9.9, I could find these two ports with following sentences in cmake project: |
@Cheney-W I don't mean that the cmake project can't find the two ports, I mean that OpenCV can't recognize the harfbuzz found. |
Hi, |
i develop in cygwin for cross development to target aarch64-unknown-linux-gnu. |
Hi,
|
@gansm255 I think you could submit an issue on https://github.com/opencv/opencv_contrib/issues . |
I have spent quite a lot of time to find this: This is unfortunate because [ovis] brings a lot of other libraries as dependecies which I absolutely do not need. UPDATE Seems that nobody there cares that under windows freetype is not available. So far exisiting workarounds are not good enough for vcpkg. |
@unbored , Thanks for posting this issue, Can you try this workaround? the issue is in: opencv_contrib/modules/freetype/CMakeLists.txt
|
Someone could tell me what is the right patch for Windows? I opened an issue and I've been told that I need to do some modifications. This issue seems to reappear over the years and very difficult to fix from vcpkg side in a reliable way, therefore I'm afraid I'm better off to patch In the workaround link posted from @JonLiu1993 there are two versions. The main one (the one just above the pic) does not work. When applied I get plenty of warnings and versions are not detected (seems there is also some duplicated stuff to mess up things):
Below there is another one, but seems for Linux and although I don't get warnings when applied, harfbuzz is not even showed:
The posted fixes are 7 years old. I would appreciate if someone could post a patch that remains reliable over the time with each new release.
|
Fixed by PR #27343. |
I've installed the two packages freetype and harfbuzz which Freetype module needs.
CMakeLists.txt in Freetype module wrotes:
It won't find freetype and harfbuzz since pkg_config doesn't exist in Windows. If I change the code to what vcpkg indicated:
it does find freetype, but harfbuzz is still missing.
The text was updated successfully, but these errors were encountered: