Skip to content
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

Freetype does not have harfbuzz support (circular dependency) #1903

Closed
Ghabry opened this issue Oct 2, 2017 · 5 comments
Closed

Freetype does not have harfbuzz support (circular dependency) #1903

Ghabry opened this issue Oct 2, 2017 · 5 comments
Assignees
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist

Comments

@Ghabry
Copy link
Contributor

Ghabry commented Oct 2, 2017

Freetype supports textshaping through Harfbuzz but to compile harfbuzz you need freetype first.

Which means to get a freetype that supports harfbuzz the compile order is:

  • Freetype without Harfbuzz <- in vcpkg
  • Harfbuzz <- in vcpkg
  • Freetype with Harfbuzz <- not in vcpkg

Any idea how to solve this? This would need a "freetype-with-harfbuzz" package that provides "freetype". Can this be expressed with vcpkg?

@muemart
Copy link
Contributor

muemart commented Oct 2, 2017

How do other package managers do this?
MSVC apparently supports mutual imports, so technically it's possible to do. But I think that would need to be a single port that builds both libraries itself, and presumably needs a lot of patching for both build systems.

@ebraminio
Copy link
Contributor

ebraminio commented Nov 27, 2017

have a look at https://gist.github.com/roxlu/0108d45308a0434e27d4320396399153#file-cmakelists-txt which support circular dependency of harfbuzz and freetype, and vitasdk/packages#28 (comment)

@JackBoosY JackBoosY added the category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist label Feb 27, 2019
@NancyLi1013
Copy link
Contributor

Hi @Ghabry thanks for posting this issue.
Currently freetype(v2.10.1) has been one of harfbuzz(v2.5.3) dependencies and harfbuzz need to depend on freetype to build in vcpkg.

Please try to update vcpkg and use them.

@ebraminio thanks for your all work on this issue.

@zcream
Copy link

zcream commented Jun 27, 2020

Hi. I can confirm this is still an issue. Is there a patch for the circular dependency?

@NancyLi1013
Copy link
Contributor

Hi @zcream
Thanks for posting this issue again.
Could you please describe the specific issue you met? As for the current status, we cannot fix it that caused by circular dependency in near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist
Projects
None yet
Development

No branches or pull requests

6 participants