It’s again about the vicious failure of installation package creation after paraview (custom application) superbuild:
RuntimeError: Unable to find the api-ms-win-crt-runtime-l1-1-0.dll library from […]
Thanks to some patches of Utkarsh in some of the cmake scripts I could generate package successfully, but now on another computer with some changed setup etc., I ended there again. Right, some of the patches were not completely there: apply them - try again - still same thing… (not exactly: this time it is another one of these api-ms-win- dlls that is missing)
Ok, I did not fully clean out the entire superbuild because that takes many hours on my rather slow system where I am testing this. And I am sure that it would be basically enough to simply delete a few files or folders in the target directory of the superbuild to avoid recompiling entire paraview (which is basically the thing that takes the time) and get the fixes… in place.
My problem: I simply do not fully understand the “magic”!
What I understand: this entire thing is again some kind of “fighting against Microsoft” because some years ago they introduced these api-ms-win…dlls are somehow “special” and maybe should not even be put into any software packages (!?)
Actually the superbuild script is searching the PATH for that missing dll, and does not find it. However, if I am using “find” from the bash shell I find that file name 26 times on my computer! For example in:
C:\Windows\System32\downlevel\ -> size 16288 bytes
C:\Windows\SysWOW64\downlevel\ -> size 15776 bytes
So obviously they are not identical and I should not simply add one of these many locations to my PATH in order to “solve” that issue: I may make it even worse!
On the other hand I do not directly see the “crucial code” in the Utkarsh patches where e.g. dlls with the name pattern api-ms-win* would simply be skipped.
To finish: If there is somebody who could give me a few hints regarding what is going on it could save me possibly many hours of trying to rebuild - rebuild - rebuild - and still not fully hit the “crucial point” that makes it happen! Because it seems to be a recurring issue, and just some very little error would bring it back.
(For the rest I have a lot of respect for these Kitware people who do this kind of struggle for days, months and years, so I also do not want to “steal” too much of their valuable time with my tricky questions: You could just as well say: “Clear everything, restart your superbuild including entire paraview rebuild, see if it works, and otherwise try again: It SHOULD work because it already did in our place!” And I know the learning effect would possibly be even higher…)