编译OpenMVS

编译OpenMVS

报错函数重名

修改boost_program_options-vc140-mt-x64-1_67.lib为
libboost_program_options-vc140-mt-x64-1_67.lib

编译jpg,png,zlib,tiff

image的接口库也要编译,不然运行的时候会出错

编译viewer

glew要在…/glew-2.1.0/lib/Release/x64/glew32.lib
glfw要在…/GLFW/lib/cmake/glfw3

编译InterfaceOpenMVG

修改app文件夹下的CMakeLists.txt:
Add applications
ADD_SUBDIRECTORY(InterfaceCOLMAP)
ADD_SUBDIRECTORY(InterfaceOpenMVG)
ADD_SUBDIRECTORY(InterfaceVisualSFM)
ADD_SUBDIRECTORY(DensifyPointCloud)
ADD_SUBDIRECTORY(ReconstructMesh)
ADD_SUBDIRECTORY(RefineMesh)
ADD_SUBDIRECTORY(TextureMesh)
ADD_SUBDIRECTORY(Viewer)
添加ADD_SUBDIRECTORY(InterfaceOpenMVG)

删除
#include

添加
#include
#include
#include

添加目录
C:\Program Files\openMVG\include
添加库
C:\Program Files\openMVG\lib\openMVG_image.lib
C:\Program Files\openMVG\lib\openMVG_sfm.lib
C:\Program Files\openMVG\lib\openMVG_stlplus.lib

修改
getFullFileName->getFileFullName
ensureDirectorySlash->ensureFolder

你可能感兴趣的:(计算机视觉,openMVS,编译)