Could not find a package configuration file... GflagsConfig.cmake gflags-config.cmake 解决方法
写在前面
自己的环境:Ubuntu 16.04, ros-kinetic
一、报错信息
编译程序时报错:
By not providing "FindGflags.cmake" in CMAKE_MODULE_PATH this project hasasked CMake to find a package configuration file provided by "Gflags", butCMake did not find one.Could not find a package configuration file provided by "Gflags" with anyof the following names:GflagsConfig.cmakegflags-config.cmakeAdd the installation prefix of "Gflags" to CMAKE_PREFIX_PATH or set"Gflags_DIR" to a directory containing one of the above files. If "Gflags"provides a separate development package or SDK, be sure it has beeninstalled.
显然,这是缺少 gflags
,需要安装 gflags
。
二、解决方法
- 首先下载
glog
:https://github.com/gflags/gflags
,我这里下载的是v2.2.2
- 解压:
unzip gflags-2.2.2.zip
- 然后编译安装
cd gflags-2.2.2/
mkdir build
cd build/
cmake ..
make
sudo make install
接下来再次编译程序,就OK了~
Could not find a package configuration file... GflagsConfig.cmake gflags-config.cmake 解决方法相关推荐
- Could not find a package,configuration file provided by G2O ,G2OConfig.cmake,g2o-config.cmake
因为项目需要使用到g2o,所以自己从git上面clone下来, git clone https://github.com/RainerKuemmerle/g2o.git 然后: cd g2o mkdi ...
- asked CMake to find a package configuration file provided by MRPT, but CMake did not find one.
1.在ROS节点重组移植过程中遇到编译错误的问题如下: CMake Error at rf2o_laser_odometry/CMakeLists.txt:21 (find_package):By n ...
- CMake Error: Could not find a package configuration file provided by “serial“
CMakeLists.txt中添加了串口的package,如下: find_package(catkin REQUIRED COMPONENTS nav_msgs roscpp rospy seria ...
- Could not find a package configuration file provided by “object_recognition_msgs“ with any ...
错误问题: CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Cou ...
- centos 使用yum 安装出现 File contains no section headers 错误解决方法
centos 使用yum 安装出现 File contains no section headers 错误解决方法 参考文章: (1)centos 使用yum 安装出现 File contains n ...
- XXXX is not in the sudoers file. This incident will be reported解决方法
假设你用的是Red Hat系列(包括Fedora和CentOS)的Linux系统.当你执行sudo命令时可能会提示"某某用户 is not in the sudoers file. Thi ...
- user is not in the sudoers file. This incident will be reported 解决方法
Ubuntu版本,在一般用户下执行sudo命令提示user is not in the sudoers file. This incident will be reported.解决方法: ...
- win7 linux error15,Win7开机黑屏error15:file not found的两种解决方法分享
Win7开机黑屏error15:file not found怎么办?相信很多朋友都遇到过使用win7系统时,开机黑屏error15:file not found的,这种情况应该如何处理呢?感兴趣的朋友 ...
- Linux执行.sh文件,提示No such file or directory的问题的解决方法
Linux执行.sh文件,提示No such file or directory的问题的解决方法 在window平台下,写好shell脚本文件,迁移到linux平台,赋过可执行权限,执行该sh文件, ...
- archlinux启动时出现 error file /boot/vmlinuz-linus not found的解决方法
archlinux启动时出现 error file /boot/vmlinuz-linus not found的解决方法 一.系统问题描述 二.解决过程 一.系统问题描述 系统:win11+archl ...
最新文章
- MySQL主从复制异步原理以及搭建
- 七日存留查询(MYSQL)
- C#的静态方法与静态成员(转)
- Win32 Edit 文本框追加字符串
- session案例之验证码
- 前端学习(2968):完善登录页面
- 香港中文大学(深圳)吴保元教授课题组博士后招聘
- php mysql扩展 5.4_编译php5.4及安装后添加扩展
- 【现代编译器】语法分析——正则表达式,上下文无关文法,递归下降分析,分析树...
- struts2.xml中使用chain和redirectAction这两个类型结果(type-result)时,报检查错误(validation)...
- 管家婆设计页面用什么做的_管家婆软件主要是用来做什么的?
- 海明贴近度matlab,Matlab学习系列23.-模糊聚类分析原理及实现.docx
- Java如何调用芝麻信用分?
- Java随机26位英文字母
- 手动搭建HPC(高性能计算)
- c 语言提取左右声道数据
- mysql全套理解以及在php中的应用
- cas1584803-67-7|花菁染料齐岳试剂
- 【BZOJ 1433】[ZJOI2009]假期的宿舍
- HashMap的实际应用
热门文章
- 监控手机屏幕、监控电脑屏幕方案
- kvaser二次开发
- Java基于CountDownLatch的并发测试工具
- 土壤类型、土壤质地、土壤养分空间分布
- Hspice学习资源和心得
- js将docx转换为html,js实现word转换为html
- ENVI5.3+PolSARpro5.0环境下高分三号双极化数据预处理及地理编码
- 机器学习十大算法实现代码汇总(python)----线性回归、逻辑回归、决策树、支持向量机、朴素贝叶斯、K邻近算法、K-均值算法、随机森林、降低维度算法、梯度增强算法
- 计算机专业有没有3D打印,3D打印技术属于哪个专业_招生问答
- 工具系列——COMSOL Multiphysics 5.5安装教程