vs中使用openMVG库函数
openMVG库函数配置方法记录如下:
1、项目属性中,添加包含目录:
D:\openMVG\src\third_party\ceres-solver\include;
D:\openMVG\src\third_party\ceres-solver\internal\ceres\miniglog;
E:\HurryUP\2020\openMVG\openMVG\third_party\ceres-solver\config;
D:\openMVG\src\third_party\eigen;
D:\openMVG\src;
D:\openMVG\src\dependencies\cereal\include;
D:\openMVG\src\third_party\lemon;
E:\HurryUP\2020\openMVG\openMVG\third_party\lemon;
D:\openMVG\src\third_party\flann\src\cpp;
D:\openMVG\src\third_party\stlplus3;
2、添加库目录
E:\HurryUP\2020\openMVG\openMVG\Windows-AMD64-Release\Release
3、添加附加依赖项
openMVG_system.lib
openMVG_image.lib
openMVG_features.lib
openMVG_sfm.lib
openMVG_stlplus.lib
openMVG_jpeg.lib
openMVG_png.lib
openMVG_tiff.lib
openMVG_zlib.lib
openMVG_geometry.lib
openMVG_matching.lib
openMVG_fast.lib
openMVG_lInftyComputerVision.lib
openMVG_multiview.lib
openMVG_lemon.lib
openMVG_cxsparse.lib
openMVG_linearProgramming.lib
openMVG_numeric.lib
lib_clp.lib
lib_OsiClpSolver.lib
lib_CoinUtils.lib
lib_Osi.lib
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
comdlg32.lib
advapi32.lib
编译过程中发现错误:
严重性 代码 说明 项目 文件 行 禁止显示状态 错误 C2065 “M_PI”: 未声明的标识符
解决办法:
属性页——C/C++-——预处理器——预处理器定义:添加:_USE_MATH_DEFINES,确定,完美。。
vs中使用openMVG库函数
openMVG库函数配置方法记录如下:
1、项目属性中,添加包含目录:
D:\openMVG\src\third_party\ceres-solver\include;
D:\openMVG\src\third_party\ceres-solver\internal\ceres\miniglog;
E:\HurryUP\2020\openMVG\openMVG\third_party\ceres-solver\config;
D:\openMVG\src\third_party\eigen;
D:\openMVG\src;
D:\openMVG\src\dependencies\cereal\include;
D:\openMVG\src\third_party\lemon;
E:\HurryUP\2020\openMVG\openMVG\third_party\lemon;
D:\openMVG\src\third_party\flann\src\cpp;
D:\openMVG\src\third_party\stlplus3;
2、添加库目录
E:\HurryUP\2020\openMVG\openMVG\Windows-AMD64-Release\Release
3、添加附加依赖项
openMVG_system.lib
openMVG_image.lib
openMVG_features.lib
openMVG_sfm.lib
openMVG_stlplus.lib
openMVG_jpeg.lib
openMVG_png.lib
openMVG_tiff.lib
openMVG_zlib.lib
openMVG_geometry.lib
openMVG_matching.lib
openMVG_fast.lib
openMVG_lInftyComputerVision.lib
openMVG_multiview.lib
openMVG_lemon.lib
openMVG_cxsparse.lib
openMVG_linearProgramming.lib
openMVG_numeric.lib
lib_clp.lib
lib_OsiClpSolver.lib
lib_CoinUtils.lib
lib_Osi.lib
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
comdlg32.lib
advapi32.lib
编译过程中发现错误:
严重性 代码 说明 项目 文件 行 禁止显示状态 错误 C2065 “M_PI”: 未声明的标识符
解决办法:
属性页——C/C++-——预处理器——预处理器定义:添加:_USE_MATH_DEFINES,确定,完美。。
发布评论