<div dir="ltr">I figured out that that error (which appeared during compilation of native decora shaders) came from a missing entry in windows.tools.properties:<div>WINDOWS_VS_INCLUDE=C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/include<br></div><div>(There were many other entries there, but all pointing at the Windowls Kit.)</div><div><br></div><div>But then a different error appeared:</div><div>LINK : fatal error LNK1104: cannot open file 'MSVCRT.lib'</div><div>This file is located under \VC\Tools\MSVC\14.33.31629\lib\x64 </div><div>I assume there's another path missing in my file, but couldn't find anything pointing directly to this path in the example file.</div><div><br></div><div>In general, I wonder why creating the file fails. If I specify where VS is located, I would assume that all the subdirectories would be easily found. I hadn't seen a change in the dir structure between 2017 and 2022.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Aug 13, 2022 at 3:22 PM Kevin Rushforth <<a href="mailto:kevin.rushforth@oracle.com">kevin.rushforth@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Sure, I'll do that when I get a chance. As long as you set
VS150COMNTOOLS, you shouldn't ever need to edit them, but it might
be useful as a sanity check to compare with yours. Our GHA builds
only set that one variable (and do not set MSVC_VER or
VSINSTALLDIR).<br>
<br>
VS150COMNTOOLS: "C:\\Program Files\\Microsoft Visual
Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build"<br>
<br>
-- Kevin<br>
<br>
<br>
<div>On 8/12/2022 8:06 PM, Nir Lisker wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Kevin, can you update the windows_tools.properties
file for the build page on the wiki [1] for VS 2022 since I see
that we updated to use that version?<br>
<br>
[1] <a href="https://wiki.openjdk.org/pages/viewpage.action?pageId=66650334" target="_blank">https://wiki.openjdk.org/pages/viewpage.action?pageId=66650334</a><br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sat, Aug 13, 2022 at 2:06
AM Nir Lisker <<a href="mailto:nlisker@gmail.com" target="_blank">nlisker@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">I see the file
under \VC\Tools\MSVC\14.33.31629\include\vcruntime.h of the
VS installation. The file calling it is under C:/Program
Files (x86)/Windows
Kits/10/include/10.0.17763.0/ucrt\corecrt.h.
<div>Is it supposed to look for some env variable to find
it? I have MSVC_VER, VSINSTALLDIR and VS150COMNTOOLS all
set. I don't remember needing anything else.</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sat, Aug 13, 2022 at
1:30 AM Kevin Rushforth <<a href="mailto:kevin.rushforth@oracle.com" target="_blank">kevin.rushforth@oracle.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">vcruntime.h is included
with the Visual Studio compiler and has been for <br>
ages. I can't think of anything recently that would have
changed <br>
relative to that.<br>
<br>
-- Kevin<br>
<br>
<br>
On 8/12/2022 2:12 PM, Nir Lisker wrote:<br>
> Hi,<br>
><br>
> I have just run gradle clean and gradle build, and
I'm getting an error:<br>
><br>
> C:/Program Files (x86)/Windows <br>
> Kits/10/include/10.0.17763.0/ucrt\corecrt.h(10):
fatal error C1083: <br>
> Cannot open include file: 'vcruntime.h': No such file
or directory<br>
><br>
> Indeed, vcruntime.h is not in that folder. Do I need
to update <br>
> something, like VS?<br>
><br>
> - Nir<br>
<br>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
<br>
</div>
</blockquote></div>