cdcseacave / openMVS

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

Can't build openMVS on Windows #553

Open zhengziyu1996 opened 4 years ago

zhengziyu1996 commented 4 years ago

Specifications like the version of the project, operating system, and hardware windows 10, 8 GB RAM machine

Steps to reproduce the problem Thanks for your work on OpenMVS!For special reasons, I must use the previous version of openMVS. But when I use visual studio 2019 to build openMVS, some errors occurred.Here is the error report.

Severity Code Description Project File Line Suppression State Suppression State Error C2065 'CV_LOAD_IMAGE_UNCHANGED': undeclared identifier IO D:\code\openMVS\src\libs\Common\Types.inl 2614
Error C3861 'cvRANSACUpdateNumIters': identifier not found MVS D:\code\openMVS\src\libs\Common\AutoEstimator.h 464
Error C3861 'cvRANSACUpdateNumIters': identifier not found MVS D:\code\openMVS\src\libs\Common\AutoEstimator.h 335
Error C2065 'CV_LOAD_IMAGE_UNCHANGED': undeclared identifier MVS D:\code\openMVS\src\libs\Common\Types.inl 2614
Error LNK1104 cannot open file '....\lib\x64\Debug\MVS.lib' RefineMesh D:\code\openMVS\build\apps\RefineMesh\LINK 1
Error LNK1104 cannot open file '....\lib\x64\Debug\MVS.lib' DensifyPointCloud D:\code\openMVS\build\apps\DensifyPointCloud\LINK 1
Error LNK1104 cannot open file '....\lib\x64\Debug\MVS.lib' ReconstructMesh D:\code\openMVS\build\apps\ReconstructMesh\LINK 1
Error LNK1104 cannot open file '....\lib\x64\Debug\MVS.lib' TextureMesh D:\code\openMVS\build\apps\TextureMesh\LINK 1
Error LNK1104 cannot open file '....\lib\x64\Debug\MVS.lib' InterfaceVisualSFM D:\code\openMVS\build\apps\InterfaceVisualSFM\LINK 1
Error LNK1104 cannot open file '....\lib\x64\Debug\MVS.lib' Viewer D:\code\openMVS\build\apps\Viewer\LINK 1

cdcseacave commented 4 years ago

did u use master or develop branch? pls try develop, I think there is a fix for that there