Windows Build FAILED

Discussion related to the LuxCore functionality, implementations and API.
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

Re: Windows Build FAILED

Post 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.
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

Re: Windows Build FAILED

Post 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.
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
theoharkes
Posts: 7
Joined: Fri Feb 05, 2021 4:17 pm

Re: Windows Build FAILED

Post by theoharkes »

Thanks for looking in to it! I will try VS2017 when i get the chance
Carl
Posts: 1
Joined: Tue Feb 09, 2021 12:38 am

Re: Windows Build FAILED

Post 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:
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

Re: Windows Build FAILED

Post 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.
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
acasta69
Developer
Developer
Posts: 472
Joined: Tue Jan 09, 2018 3:45 pm
Location: Italy

Re: Windows Build FAILED

Post 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.
Support LuxCoreRender project with salts and bounties

Windows 10 64 bits, i7-4770 3.4 GHz, RAM 16 GB, GTX 970 4GB v445.87
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Windows Build FAILED

Post by B.Y.O.B. »

Thanks!
theoharkes
Posts: 7
Joined: Fri Feb 05, 2021 4:17 pm

Re: Windows Build FAILED

Post 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)
User avatar
Dade
Developer
Developer
Posts: 5672
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Windows Build FAILED

Post 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 ?
Support LuxCoreRender project with salts and bounties
theoharkes
Posts: 7
Joined: Fri Feb 05, 2021 4:17 pm

Re: Windows Build FAILED

Post 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)
Post Reply