概述
cmakelist 中这么写
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
geometry_msgs
orocos_kdl
)
会报找不到orocos_kdl
Could not find a package configuration file provided by "orocos_kdl" with
any of the following names:
orocos_kdlConfig.cmake
orocos_kdl-config.cmake
Add the installation prefix of "orocos_kdl" to CMAKE_PREFIX_PATH or set
"orocos_kdl_DIR" to a directory containing one of the above files. If
"orocos_kdl" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:10 (find_package)
解决办法:加上 find_package(orocos_kdl REQUIRED)
总结起来cmakelist中需要
find_package(Eigen3 REQUIRED)
find_package(orocos_kdl REQUIRED)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
geometry_msgs
#orocos_kdl
kdl_parser
utils
)
另外如果自己编译orocos-kdl然后系统中也有orocos-kdl,调用kdl相关的函数的时候就会出现stack smashing detected
所以不要自己编译orocos-kdl,直接用系统自带的,否则就坑了
最后
以上就是光亮跳跳糖为你收集整理的Could not find a package configuration file provided by “orocos_kdl“ 找不到的解决方法的全部内容,希望文章能够帮你解决Could not find a package configuration file provided by “orocos_kdl“ 找不到的解决方法所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复