Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I'm trying to build substratevm on windows, following the guide at README.md there, but it fails with a rather vague error about missing file without saying which one it is.
Seems like adding
Now since this error got fixed, I'm getting another error... as expected, this time with libs that cannot be found:
I will try to look further into it.
EDIT: The missing libraries issue can be fixed by adding windows environment variable "INCLUDE" with the paths to the missing libraries. In my case it was
Seems like windows does not like the multithreaded build with the current cl commands mx build uses. Funnily enough, running the build command again and hoping that the threads will not try to read the .pdb at the same time works as a temporary solution.
Apart from this multithreaded issue, after applying the proper windows environment variables, the build seems to be successful and native-image runs. I think this part of the missing environment variables should be included in the guide and the multithreaded issue must be resolved.
@Nik-- at this point, building images on Windows is still unsupported and very much experimental.
That said, building simple hello word images should already work fine if you use the right combination of tools on your Windows machine. Most important you need to use a special version of the JDK that comes with static jdk libraries that are need for image building. You can get it from https://github.com/graalvm/openjdk8-jvmci-builder/releases.
Once everything is installed make sure you have python and git on your
Upon completion you can use