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.
Windows Build FAILED
Re: Windows Build FAILED
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.
-
- Posts: 7
- Joined: Fri Feb 05, 2021 4:17 pm
Re: Windows Build FAILED
Thanks for looking in to it! I will try VS2017 when i get the chance
Re: Windows Build FAILED
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:
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
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.
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
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.
Apparently some OpenImageIO headers messed up something with boost/lexical_cast.hpp. I moved their include's after those of LuxCore headers.
-
- Posts: 7
- Joined: Fri Feb 05, 2021 4:17 pm
Re: Windows Build FAILED
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)
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
Are you using a 32bit Windows OS on your laptop ? How much ram do you have ?theoharkes wrote: ↑Thu Feb 25, 2021 10:31 am 2) LINK : fatal error C1002: compiler is out of heap space in pass 2
-
- Posts: 7
- Joined: Fri Feb 05, 2021 4:17 pm
Re: Windows Build FAILED
The error occurred first when building with vs2019 on my desktop with x64 windows and 16GB RAM.Dade wrote: ↑Thu Feb 25, 2021 10:54 amAre you using a 32bit Windows OS on your laptop ? How much ram do you have ?theoharkes wrote: ↑Thu Feb 25, 2021 10:31 am 2) LINK : fatal error C1002: compiler is out of heap space in pass 2
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)