catkin_make编译错误
一、在工作空间下编译Lego loam的代码,报错如下,
CMake Error at LeGO-LOAM/LeGO-LOAM/CMakeLists.txt: (find_package):
By not providing "FindGTSAM.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "GTSAM", but
CMake did not find one. Could not find a package configuration file provided by "GTSAM" with any of
the following names: GTSAMConfig.cmake
gtsam-config.cmake Add the installation prefix of "GTSAM" to CMAKE_PREFIX_PATH or set
"GTSAM_DIR" to a directory containing one of the above files. If "GTSAM"
provides a separate development package or SDK, be sure it has been
installed. -- Configuring incomplete, errors occurred!
See also "/home/gordon/ros_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/gordon/ros_ws/build/CMakeFiles/CMakeError.log".
Makefile:: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error
解决方法:
1. 在terminal中使用 locate 指令查找本机是否有 GTSAMConfig.cmake 或 gtsam-config.cmake 及其所在路径。
2. echo $PATH 和 echo $GTSAM_DIR 查看环境变量中是否包含上述路径。(一般是不包含的,所以编译时报错)。
3.往环境变量中添加上述路径。至此,一般都可以编译通过。
二、编译pl-slam,报错如下,
Could not find a package configuration file provided by "G2O" with any of
the following names: G2OConfig.cmake
g2o-config.cmake Add the installation prefix of "G2O" to CMAKE_PREFIX_PATH or set "G2O_DIR"
to a directory containing one of the above files. If "G2O" provides a
separate development package or SDK, be sure it has been installed.
通过locate指令,我在 /usr/local/g2o/lib/cmake/g2o 中找到 g2oConfig.cmake 文件。使用以上方法添加路径后,依然报相同的错误。一番观察后,发现本机文件 g2oConfig.cmake 和报错内容有不相符的地方。于是尝试将本机文件改名,
g2oConfig.cmake --> G2OConfig.cmake
成功解决!
三、在源码包中确实找不到 <PACKAGE>Config.cmake 或者 <package>-config.cmake
有两种方法:1)可能是 package-config 文件,不带cmake后缀;2)下策,自行创建 <PACKAGE>Config.cmake 或者 <package>-config.cmake ;
catkin_make编译错误的更多相关文章
- xamarin.forms新建项目android编译错误
vs2015 update3 新建的xamarin.forms项目中的android项目编译错误.提示缺少android_m2repository_r22.zip,96659D653BDE0FAEDB ...
- 《转载》使用org.w3c.dom.Element的setTextContent()、getTextContent()方法时出现编译错误
今天在更新项目后进行编译时,出现如下错误一堆: 编译错误 Google之,在stackoverflow上看到如下的解决方法: I came here with the same problem. Ev ...
- asp.net教程:编译错误同时存在于不同dll中
asp.net 编译错误类型“同时存在于”不同的dll中. 出现这种错误大概有三种情况: 1.ASPX页面,一个*.ASPX,对应着一个*.cs文件,两者其实是一个文件,通过两者实现代码分离,每个*. ...
- VS2010出现FileTracker : error FTK1011编译错误的解决办法
VS2010出现FileTracker : error FTK1011不知道是不是vs2010的一个bug,反正有人提交了. FileTracker : error FTK1011编译错误的解决办法有 ...
- PowerDesginer 生成的Oracle 11g 组合触发器代码编译错误(29): PLS-00103
问题描述: 采用PowerDesigner15针对Oracle 11g 创建物理数据模型,想实现一个字段的自增,采用如下步骤: 1.创建序列,命名为Sequence_1; 2.在自增字段编辑窗口中,选 ...
- 我看见的第一个XCODE编译错误 - Command /applications.../clang failed with exit code 1
开始用XCODE学习Apple相关开发的东东,写些demo熟悉Object C,一直还没看见什么问题,昨晚在家把一些demo上传到代码服务器,今天在另外一台机器上下载下来编译,出现了问题: Preco ...
- eclipse 编译android程序 编译错误
windows->show view -> problems, 这个窗口的内容即为 编译错误的内容.
- 一个C++宏定义与枚举定义重复的编译错误
C++的开发效率低是众所周知的,原因比如有: 语言复杂度高 编译效率低 工具链不够完整高效(尤其是linux下) 另外一个恐怕是不少编译错误让人摸不着头脑,今天碰到一个,举个例子: #include ...
- java编译错误 程序包javax.servlet不存在javax.servlet.*
java编译错误 程序包javax.servlet不存在javax.servlet.* 编译:javac Servlet.java 出现 软件包 javax.servlet 不存在 软件包javax. ...
随机推荐
- php的array数组 -------方法foreach循环时候,利用数组里值的引用地址(& )从而改变数组里的值
/* * 把每个数组值后面都加个SQL然后返回数组 * foreach循环时候,直接用引用(&)的方式就能改变之前的数组 */public function array_foreach(){ ...
- How to automate Microsoft Word to create a new document by using Visual C#
How to automate Microsoft Word to create a new document by using Visual C# For a Microsoft Visual Ba ...
- Mybatis Generator主要配置详解
MyBatis 的代码生成主要配置文档[具体] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYP ...
- 【原创】Arduino、arm、树莓派与单片机
Arduino是一个由开源软件环境支持的开源硬件原型平台.包含硬件(各种型号Arduino板)和软件(Arduino IDE).集成开发环境是Arduino IDE ,编写和编译sketch后通过US ...
- Python 守护线程
import time from threading import Thread from multiprocessing import Process #守护进程:主进程代码执行运行结束,守护进程随 ...
- Python 递归锁
import time from threading import Thread, Lock, RLock def f1(locA, locB): # print('xxxx') # time.sle ...
- nginx 支持ipv6设置
为了使nginx支持ipv6 访问需要做以下配置: 1.找到nginx的安装路径: 使用命令:whereis nginx 查看nginx安装路径: 进入nginx执行文件目录: 先用./nginx - ...
- python 将汉字转换为拼音
xpinyin提供把汉字转为汉语拼音的功能. 安装此模块 pip install xpinyin简单用例: from xpinyin import Pinyin pin = Pinyin() test ...
- JavaScript语言里判断一个整数是偶数还是奇数,并输出判断结果
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...
- Could not find a version that satisfies the requirement PIL
Python Imageing Library 简称 PIL Python常用的图像处理库之一 Pillow是PIL一个fork. C:\Users\dangzhengtao>pip insta ...