cdcseacave / openMVS

open Multi-View Stereo reconstruction library
http://cdcseacave.github.io
GNU Affero General Public License v3.0
3.3k stars 905 forks source link

Errors occur when build the solution with Microsoft Visual Studio 2017 on Windows 10-64bit system #594

Open zengletian1491 opened 4 years ago

zengletian1491 commented 4 years ago

On windows 10-64bit system, all the dependencies of OpenMVS are compiled with source code successfully. However, when I build the solution with Microsoft Visual Studio 2017 under Release mode, strange errors occur as follows:

  Code Interpretation Project File Line
error E0035 #error command:  "undefined processor type" MVS D:\Software\MinGW\mingw-get-setup\include\winnt.h 2436
error C1189 #error:  "undefined processor type" MVS D:\Software\MinGW\mingw-get-setup\include\winnt.h 2436
error C2373 restrict”: redefinition;Different types of modifiers MVS D:\Software\MinGW\mingw-get-setup\include\string.h 211
error C2040 Different levels of indirect addressing for “restrict”:“char *”and“char MVS D:\Software\MinGW\mingw-get-setup\include\string.h 211
error E0070 Use of incomplete types is not allowed MVS D:\Software\MinGW\mingw-get-setup\include\shellapi.h 292
error E0070 Use of incomplete types is not allowed MVS D:\Software\MinGW\mingw-get-setup\include\winbase.h 1561
error E0070 Use of incomplete types is not allowed MVS D:\Software\MinGW\mingw-get-setup\include\winbase.h 1562

I do not know why. I search corresponding questions on the Internet, but I get nothing useful. Could you please give me some suggestions? Thanks very much.

cdcseacave commented 4 years ago

pls see the wiki or build document on how to build it on windows