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里的錯誤

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM