zoukankan      html  css  js  c++  java
  • ros error : c++: error: $(catkin_LIBRARIES): 没有那个文件或目录

      卧槽,真是。。。。。。。。。。。。。。。。。。。。。。。。瞎眼了。

      一个半小时才找出错误来。。。。。

     

    c++: error: $(catkin_LIBRARIES): 没有那个文件或目录
    

      Oh my God! I´m quite blind .... apologies for any inconvenience. I need my glasses to see ... I´m absolutely a disaster. It was exactly what you said to me. I didn´t realice it. ${catkin_LIBRARIES} rather than $(catkin_LIBRARIES). Thanks a lot!

      我都要崩溃了。。。。。。。。

     另一个错误:

    Could not find a package configuration file provided by "PCL" (requested
      version 1.2) with any of the following names:
        PCLConfig.cmake
        pcl-config.cmake
      Add the installation prefix of "PCL" to CMAKE_PREFIX_PATH or set "PCL_DIR"
      to a directory containing one of the above files.  If "PCL" provides a
      separate development package or SDK, be sure it has been installed.
    -- Configuring incomplete, errors occurred!
    

       我的CmakeLists.txt:

     

    cmake_minimum_required(VERSION 2.8.3)
    project(second_pcl)
    
    ## Find catkin macros and libraries
    ## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
    ## is used, also find other catkin packages
    find_package( PCL REQUIRED)    #这个可能要单独写出来
    find_package(catkin REQUIRED
         roscpp rospy pcl_conversions pcl_ros sensor_msgs
    # PCL REQUIRED
    )
    
    #find_package( PCL REQUIRED)
    
    include_directories(include ${PCL_INCLUDE_DIRS})
    link_directories(${PCL_LIBRARY_DIRS})
    
    add_executable(pcl_create  src/pcl_create.cpp )
    target_link_libraries(pcl_create   ${catkin_LIBRARIES}   ${PCL_LIBRARIES})
    

       这下没问题了,遇到这个错误,期间还自己重新编译了 PCL 包 。。。但应该还是CmakeLists.txt里的错误

     

  • 相关阅读:
    Codeforces 1291 Round #616 (Div. 2) B
    总结
    刷新DNS解析缓存+追踪+域名解析命令
    数学--数论--Hdu 5793 A Boring Question (打表+逆元)
    Lucene.net(4.8.0) 学习问题记录六:Lucene 的索引系统和搜索过程分析
    LeetCode 117 Populating Next Right Pointers in Each Node II
    LeetCode 116 Populating Next Right Pointers in Each Node
    test test
    LeetCode 115 Distinct Subsequences
    LeetCode 114. Flatten Binary Tree to Linked List
  • 原文地址:https://www.cnblogs.com/wyuzl/p/6538534.html
Copyright © 2011-2022 走看看