Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

AdoptOpenJDK 8 libfontmanager.dylib requires libfreetype.6.dylib #42

Closed
rmartin-chwy opened this issue Nov 5, 2018 · 8 comments
Closed
Labels
bug Something isn't working

Comments

@rmartin-chwy
Copy link

rmartin-chwy commented Nov 5, 2018

When I attempted to run IntelliJ IDEA 2018.2 using Adopt OpenJDK 8 as the boot JDK, it failed with the following:

Caused by: java.lang.UnsatisfiedLinkError: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/lib/libfontmanager.dylib: dlopen(/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/lib/libfontmanager.dylib, 1): Library not loaded: @rpath/libfreetype.6.dylib
  Referenced from: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/lib/libfontmanager.dylib
  Reason: image not found

I was able to recover by manually installing freetype from homebrew: brew install freetype

Can we solve this with a dependency on the cask(s)?

@karianna karianna added the bug Something isn't working label Nov 5, 2018
@karianna
Copy link
Member

karianna commented Nov 5, 2018

Which cask did you use for this? It may actually be an underlying build problem we have with our Mac OS X binaries

@rmartin-chwy
Copy link
Author

rmartin-chwy commented Nov 5, 2018 via email

@karianna
Copy link
Member

karianna commented Nov 6, 2018

See adoptium/temurin-build#202 and related issues - looks like they're all intertwined

@gdams
Copy link
Member

gdams commented Jan 11, 2019

Coretto had the same issue as us... Apparently by renaming renaming libfreetype.dylib.6 to libfreetype.6.dylib in jre/lib the issue is resolved. @rmartin7c can you confirm?

@1stone
Copy link

1stone commented Jan 14, 2019

Same problem here when using adoptopenjdk8 with Tomcat8.
I can confirm that linking the library as @gdams suggested, does fix the problem.

@gdams
Copy link
Member

gdams commented Jan 14, 2019

@sxa555 / @johnoliver could one of you add this command to the build scripts?

@gdams
Copy link
Member

gdams commented Jan 21, 2019

@rmartin7c please try with the new jdk8 release?

@rmartin-chwy
Copy link
Author

@gdams Looks good to me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants