Page 12 of 13

Re: Windows Build FAILED

Posted: Sun Feb 07, 2021 8:11 pm
by acasta69
I've not been able to find a solution yet.

I was thinking of some compatibility issues with Windows SDKs, but the problem persists with all those I have tried.
Also googling has not helped yet: similar but different issues are found and the proposed solutions are not applicable here (and also my little knowledge of C++ does not help...)

I am under the impression that this is caused by a recent upgrade in Visual Studio 2019.
I'll keep looking into the problem, but at the moment I can only suggest using Visual Studio 2017.

Re: Windows Build FAILED

Posted: Sun Feb 07, 2021 8:50 pm
by acasta69
acasta69 wrote: Sun Feb 07, 2021 8:11 pm I am under the impression that this is caused by a recent upgrade in Visual Studio 2019.
I can confirm this: the same commit that was built without problem here and on Azure in October, when I first tried VS2019, shows now the same errors.

Re: Windows Build FAILED

Posted: Mon Feb 08, 2021 5:50 pm
by theoharkes
Thanks for looking in to it! I will try VS2017 when i get the chance

Re: Windows Build FAILED

Posted: Tue Feb 09, 2021 12:53 am
by Carl
This is the problem I have. I downloaded WindowsCompileDeps-master and the default download. Both dont work.
using visual studio 2019 native x64 command prompt .\cmake-build-x64 /vs2019
cl is working
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29336 for x64

i compile cmake with cmake-2.8.12-win32-x86
and tryed cmake-3.19.4-win64-x64

same 8 errors with both

set enviroment path windows 10 to
C:\Program Files (x86)\CMake 2.8\bin

first error C2589:

Re: Windows Build FAILED

Posted: Tue Feb 09, 2021 7:04 am
by acasta69
This looks like the same problem described a few posts ago by user theoharkes.
We do not have a solution at the moment, the only suggestion I can give is to use Visual Studio 2017, which has always worked without problems.

Re: Windows Build FAILED

Posted: Thu Feb 11, 2021 8:42 pm
by acasta69
I should have fixed this, now it's working here and on Azure.
Apparently some OpenImageIO headers messed up something with boost/lexical_cast.hpp. I moved their include's after those of LuxCore headers.

Re: Windows Build FAILED

Posted: Fri Feb 12, 2021 8:11 am
by B.Y.O.B.
Thanks!

Re: Windows Build FAILED

Posted: Thu Feb 25, 2021 10:31 am
by theoharkes
I seemed to have found two more issues when building the current version on my desktop (using vs2019)

1) Space in User directory
First building immediately crashed due to a space in the User folder (e.g. "C:\Users\Theo Harkes").

I renamed my User folder from "Theo Harkes" to "TheoHarkes" and then building worked fine.
Source (Rename + Edit of registry paths): https://superuser.com/questions/890812/ ... windows-10

2) LINK : fatal error C1002: compiler is out of heap space in pass 2
Now it runs out of heap space only a few minutes into the build. A quick google gets me https://social.msdn.microsoft.com/Forum ... =vcgeneral but I'm not familiar with LINK or C++ building so I'm rather lost on how to continue.


PS: The build did work on my laptop with vs2017. (@acasta97 I didn't get the chance to try vs2019 on my laptop since you fixed it)

Re: Windows Build FAILED

Posted: Thu Feb 25, 2021 10:54 am
by Dade
theoharkes wrote: Thu Feb 25, 2021 10:31 am 2) LINK : fatal error C1002: compiler is out of heap space in pass 2
Are you using a 32bit Windows OS on your laptop ? How much ram do you have ?

Re: Windows Build FAILED

Posted: Thu Feb 25, 2021 11:06 am
by theoharkes
Dade wrote: Thu Feb 25, 2021 10:54 am
theoharkes wrote: Thu Feb 25, 2021 10:31 am 2) LINK : fatal error C1002: compiler is out of heap space in pass 2
Are you using a 32bit Windows OS on your laptop ? How much ram do you have ?
The error occurred first when building with vs2019 on my desktop with x64 windows and 16GB RAM.

My laptop (on which i had a successful build with vs2017) also has x64 windows with 16GB RAM. Using vs2019 to build gives the same error (C1002)