Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Build "Compiler out of heap space" #25

Open
phildue opened this issue Feb 5, 2019 · 1 comment
Open

Windows Build "Compiler out of heap space" #25

phildue opened this issue Feb 5, 2019 · 1 comment

Comments

@phildue
Copy link

phildue commented Feb 5, 2019

Hi,

I'm trying to build this on windows 10 using visual studio 15 64-bit. I managed to resolve all dependencies. Everything is building, however, in the last step when building the g2o target, I receive the error
"C1060 compiler is out of heap space g2o d:\code\tutorials\slam\thirdparty\eigen\src\Core\DenseBase.h 253
Anyone has a solution?

@shrddr
Copy link

shrddr commented Apr 21, 2019

If you are building from IDE, Visual Studio silently uses 32-bit compiler. If you run MSBuild from command line, it also defaults to 32-bit compiler even it you use the "x64 native tools" shortcut in start menu. You have to run it like this in order to go over the 4Gb limit:
"c:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\amd64\MSBuild.exe" g2opy.sln /property:Configuration=Release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants