uoip / g2opy

Python binding of SLAM graph optimization framework g2o
678 stars 177 forks source link

Windows Build "Compiler out of heap space" #25

Open phildue opened 5 years ago

phildue commented 5 years ago

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 commented 5 years ago

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