make install 后如何只从opencv 安装一些模块? [英] How can I only install some modules from opencv after make install?

查看:80
本文介绍了make install 后如何只从opencv 安装一些模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在安装带有额外模块的 opencv 3.1.0,我需要安装 sfm 模块.我安装了 sfm 包中安装指南中所述的所有先决条件,并从 opencv_source_directory/release 运行此命令:

I am installing opencv 3.1.0 with extra modules and I need to install sfm module. I installed all the prerequisites as stated in the installation guide in sfm package, and ran this command from opencv_source_directory/release:

cmake -DOPENCV_EXTRA_MODULES_PATH=~/git/opencv_contrib/modules ..

我可以成功创建make文件并安装.

I can successfully create make file and install.

但是我在installation_path/include/opencv2/下找不到sfm.hpp

But I cannot find sfm.hpp under installation_path/include/opencv2/

有什么我错过的吗?谢谢!

Is there anything I missed? Thanks!

我在 CMake 命令行输出中发现了这些:

I found these in CMake command line output:

-- Found required Ceres dependency: Eigen version 3.2.8 in /usr/local/include/eigen3
-- Found required Ceres dependency: Glog in /usr/include
-- Found Ceres version: 1.12.0 installed in: /usr/local
-- Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags

但我确实安装了 Glog/Gflags:

But I did installed Glog/Gflags:

~$ sudo apt-get install libeigen3-dev libgflags-dev libgoogle-glog-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libgflags-dev is already the newest version.
libgoogle-glog-dev is already the newest version.
libeigen3-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

有人可以帮忙吗?谢谢!

Could anyone help? Thanks!

推荐答案

问题解决了.请记住在再次运行 cmake 之前清除所有 cmake 缓存文件(删除整个构建文件夹).

Problem is solved. Just remember to clear all the cmake cache files (remove the whole build folder) before running cmake again.

这篇关于make install 后如何只从opencv 安装一些模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆