Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

fifty-five。 Write down the process of compiling OpenJDK9 source code on mac os

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

one。 OpenJDK code download

Go to the official website of OpenJDK and download it through hg, such as referring to this post.

Https://www.jianshu.com/p/746963f28245

But downloading code with hg (usage similar to git) often fails, and I modify the script to download it in an infinite loop, which has been a failure for half a day.

Download it on github. This method is recommended.

If you find an OpenJDK9 code on github, just git clone it directly, as follows:

Command line executes git clone git@github.com:campolake/openjdk9.gitgithub address https://github.com/campolake/openjdk9

two。 Compile

You can https://www.jianshu.com/p/746963f28245 by referring to the above post.

But there are a few things that are different.

Export FREETYPE_LIB_PATH and FREETYPE_INCLUDE_PATH. If there is no freetype, you can brew install freetype first.

Export FREETYPE_LIB_PATH=/usr/local/Cellar/freetype/2.9.1/lib/

Export FREETYPE_INCLUDE_PATH=/usr/local/Cellar/freetype/2.9.1/include

Configure ordered to use other people's comments in the above post.

Bash. / configure-enable-debug-with-target-bits=64-with-jobs=8-disable-warnings-as-errors-with-jvm-variants=server

Make starts compilation

three。 Compilation error

The compilation process was smooth and encountered these problems.

Ordered comparison between pointer and zero, this is to modify the source code and change > 0 to! = NULL

Refer to this post

Https://www.cnblogs.com/weixliu/

Finally, after compiling, I ran the java version

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report