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

Openjdk8 native build issue due to freetype #3598

Closed
Rakshiths09 opened this issue Jan 5, 2024 · 5 comments
Closed

Openjdk8 native build issue due to freetype #3598

Rakshiths09 opened this issue Jan 5, 2024 · 5 comments
Labels
bug Issues that are problems in the code as reported by the community Waiting on OP Issues that are awaiting a response from the original author of the ticket

Comments

@Rakshiths09
Copy link

Hi,
I am trying to build openjdk8 using temurin build scripts in cygwin. Environment is Windows 11 Visual studio code 2022.
Command executed in cygwin
./makejdk-any-platform.sh --create-jre-image jdk8u

Freetype is not getting compiled getting these errors

First I got ARCHITECTURE: unbound variable in build.sh
if [ "${BUILD_CONFIG[OPENJDK_CORE_VERSION]}" = "${JDK8_CORE_VERSION}" ] && [ "${ARCHITECTURE}" = "64" ] && [ "${BUILD_CONFIG[BUILD_VARIANT]}" != "${BUILD_VARIANT_OPENJ9}" ]; then
I changed to
if [ "${BUILD_CONFIG[OPENJDK_CORE_VERSION]}" = "${JDK8_CORE_VERSION}" ] && [ "${BUILD_CONFIG[OS_ARCHITECTURE]}" = "x86_64" ] && [ "${BUILD_CONFIG[BUILD_VARIANT]}" != "${BUILD_VARIANT_OPENJ9}" ]; then

Then got this error:
configure : Trying to compile freetype sources with PlatformToolset=v143 to to /cygdrive/c/Openjdk8/temurin-build/workspace/libs/freetype/lib64
configure : User specified --with-freetype-src but building freetype failed

Thanks & Regards,
Rakshith S

@karianna
Copy link
Contributor

karianna commented Jan 5, 2024

@Rakshiths09 in build.sh on line 536 try removing:

jdk8* | jdk9* | jdk10*) addConfigureArg "--with-freetype-src=" "${BUILD_CONFIG[WORKSPACE_DIR]}/libs/freetype" ;;

@karianna karianna added Waiting on OP Issues that are awaiting a response from the original author of the ticket bug Issues that are problems in the code as reported by the community labels Jan 5, 2024
@karianna
Copy link
Contributor

karianna commented Jan 5, 2024

Also the function at line 242 might give you a hint as to why the freetype failed. The path to the freetype files probably doesn't exist for VS2022, you might be able to update the path

@karianna
Copy link
Contributor

karianna commented Jan 5, 2024

Not 100% sure Java 8 builds support using VS2022

@Rakshiths09
Copy link
Author

Hi @karianna,
Changed the git hash tag for freetype to use version 2.8.1. Tried with VS2019. Build is successfull.
And can I build the jdk and jre with javafx included?

@karianna
Copy link
Contributor

karianna commented Jan 7, 2024

Hi @karianna, Changed the git hash tag for freetype to use version 2.8.1. Tried with VS2019. Build is successfull. And can I build the jdk and jre with javafx included?

You'll need to look at the IcedTea project in the AdoptOpenJDK GitHub Org - I'm not really sure if there are up to date instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that are problems in the code as reported by the community Waiting on OP Issues that are awaiting a response from the original author of the ticket
Projects
None yet
Development

No branches or pull requests

2 participants