-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[native-image] Document the prerequisites for native-image on Windows #1852
Comments
Another question: what should be installed to prevent this error when turning on SSL support in Windows? LINK : fatal error LNK1181: cannot open input file 'stdc++.lib' |
Here is a link to a repository with a reproduction: https://github.com/sogaiu/stdcpp-link-error
|
Note: #1886 has some details for preparing Command Prompt and PowerShell to use graalvm-java11-19.3.0 |
To create a native image on Windows with GraalVM 19.3 for Java 11, install Visual Studio 2017 (making sure to include Visual C++ compilers and libraries for ARM64 and Visual C++ tools for CMake). After installation, set up the environment from a Command Prompt with this command:
Then run |
Thanks a lot for this update. |
For automating in the case of GraalVM 19.3.x with Java 11, the following chocolatey invocation may come in handy:
I originally used the |
This worked well for me for GraalVM 19.3+ with Java 11:
After installation, set up the environment from the
|
That looks nicer -- may give that a try next time around. Thanks for sharing! |
Thanks for sharing the Is anyone getting |
We have included the prerequisites for using Native Image on Windows platform for both Java 11 and Java 8 GraalVM builds: https://www.graalvm.org/docs/reference-manual/native-image/#prerequisites |
Thanks! |
Hello remkop. now i have installed windows SDK 7.1 for GraalVM, but I face an issue. |
The documentation should be updated to clarify the prerequisites for building Windows native images with GraalVM 19.3.
Comments on this ticket indicate that Visual Studio 2017 is required for the Java 11 version of GraalVM 19.3. Is this correct?
With GraalVM 19.2 and older, which were were JDK 8 based, Windows SDK 7.1. with the 2010 Visual C++ Compilers (from KB2519277) were required. Is this still the case for the Java 8 version of GraalVM 19.3?
Update: The more exact version numbers mentioned in this ticket are also useful:
It may also be good to provide detailed instructions. For GraalVM 19.2 and older, the following steps were needed to set up:
With GraalVM 19.2, people had issues getting set up until this was clarified. It would be good to have similar steps for GraalVM 19.3.
The text was updated successfully, but these errors were encountered: