STORM-IRIT / OpenGR

OpenGR: A C++ library for 3D Global Registration
https://storm-irit.github.io/OpenGR/
Other
349 stars 74 forks source link

Compiling issues VS2022 #111

Open oesi82 opened 2 years ago

oesi82 commented 2 years ago

Hi,

When compiling and building the INSTALL target with VS2022 under Win10 there is a bunch of errors. OpenMP is activated in the project properties (-openmp).

image

Thank you, Sven

nmellado commented 2 years ago

Hi @oesi82 ,

Thanks for the report, I'll try to replicate the error.

cjamin commented 2 years ago

Same problem here. Disabling OpenMP manually in VS helps solving most of the errors. Some errors remain in ForceOpenGRInstallation, but Super4PCS.exe is built correctly.

alvi1995 commented 2 years ago

The problem i having is object file format limit. asking me add bigobj. Its a library project so I dont have the C++ option in properties. How do i go around it? Using VS 20222 Screenshot 2022-09-10 032351

blackHorz commented 1 year ago

Indeed I have the same problem in Win10 VS2019. Severity Code Description Project File Line Suppression State Error C1128 number of sections exceeded object file format limit: compile with /bigobj D:\API\OpenGR\out\build\x64-Debug\OpenGR D:\API\OpenGR\apps\Super4PCS\super4pcs_test.cc 1