首页 > Windows开发 > 详细

windows 10 上源码编译opengv | compile opengv on windows 10 from source

时间:2019-11-12 14:38:45      阅读:86      评论:0      收藏:0      [点我收藏+]

本文首发于个人博客https://kezunlin.me/post/51cd9fa0/,欢迎阅读!

compile opengv on windows 10 from source

Series

Guide

prerequiests

  • Visual Studio 2015
  • LLVM 5.0.1
  • eigen3
  • cmake
  • opengv latest

install llvm+clang

wget http://releases.llvm.org/5.0.1/LLVM-5.0.1-win64.exe

and install llvm to system.

compile

git clone https://github.com/laurentkneip/opengv

cd opengv 
mkdir build && cd build && cmake-gui ..

Configure and choose generator Visual Studio 14 2015 Win64 and set toolset LLVM-vs2014 (by default Visual Studio 2015 (v140))

技术分享图片
OK.

with options

CMAKE_CONFIGURATION_TYPES Release
EIGEN_INCLUDE_DIR C:/Program Files/PCL 1.8.1/3rdParty/Eigen/eigen3
BUILD_PYTHON OFF
BUILD_TESTS OFF

generate opengv.sln.

we can see toolset has benn changed from Visual Studio 2015 (v140) to LLVM-vs2014.
技术分享图片

compile project and opengv.lib and random_generators.lib will be generated.

install to C:/Program Files/opengv.

Reference

History

  • 20180124: created.

Copyright

windows 10 上源码编译opengv | compile opengv on windows 10 from source

原文:https://www.cnblogs.com/kezunlin/p/11841304.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!