gpt4 book ai didi

jvm - 在Windows 10l中编译后如何将openjdk9源代码导入visual studio 2017?

转载 作者:行者123 更新时间:2023-12-01 04:35:33 24 4
gpt4 key购买 nike

我尝试通过以下命令在 Windows 10 中构建 openjdk9 源代码

go to D:\jdk9\jdk9 with cygwin

./configure -with-freetype=/cygdrive/c/freetype -enable-debug -with-target-bits=64

make all

最后它使用消息成功构建:
Creating support/demos/image/jfc/Font2DTest/Font2DTest.jar
Creating support/demos/image/jfc/Metalworks/Metalworks.jar
Creating support/demos/image/jfc/Notepad/Notepad.jar
Creating support/demos/image/jfc/TableExample/TableExample.jar
Creating support/demos/image/jfc/TransparentRuler/TransparentRuler.jar
Creating support/demos/image/jfc/SampleTree/SampleTree.jar
Creating jre jimage
Creating jdk jimage
WARNING: Using incubator modules: jdk.incubator.httpclient
WARNING: Using incubator modules: jdk.incubator.httpclient
Finished building target 'all' in configuration 'windows-x86_64-normal-server-fastdebug'

但是如何将jdk或Hotspot等项目导入visual studio?既没有解决方案文件也没有生成项目文件,文件夹\jdk9\hotspot\make中也没有create.bat文件(openjdk 8有文件),那么如何将jdk/Hotspot源代码导入visual studio 2017调试源码?

最佳答案

要构建 VS Project Creator,请从 openjdk9 运行以下命令顶级目录:

make hotspot-ide-project

就我而言,生成的 VS 项目文件位于:
.../openjdk9/build/windows-x86_64-normal-server-slowdebug/ide/hotspot-visualstudio

最后,找到 jvm.vcxproj hotspot-visualstudio 中的文件目录并打开它。

关于jvm - 在Windows 10l中编译后如何将openjdk9源代码导入visual studio 2017?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51808317/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com