質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
CMake

CMakeはクロスプラットフォームで作動するオープンソースのビルドシステムです。コマンドライン又は組み込まれた開発環境で使うことができる元のmakefileとプロジェクトファイルを生成します。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

Q&A

0回答

5292閲覧

CMakeでROSのパッケージが見当たらない

hello-nezumi

総合スコア15

CMake

CMakeはクロスプラットフォームで作動するオープンソースのビルドシステムです。コマンドライン又は組み込まれた開発環境で使うことができる元のmakefileとプロジェクトファイルを生成します。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

0グッド

0クリップ

投稿2018/05/26 07:01

編集2022/01/12 10:55

前提・実現したいこと

私は現在このサイトを実現しようと思っているのですが,CMakeの際以下のエラーが発生します.解決策が分かる人がいればご教授ください

発生している問題・エラーメッセージ

CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package):
Could not find a package configuration file provided by "ecl_geometry" with
any of the following names:

ecl_geometryConfig.cmake ecl_geometry-config.cmake

Add the installation prefix of "ecl_geometry" to CMAKE_PREFIX_PATH or set
"ecl_geometry_DIR" to a directory containing one of the above files. If
"ecl_geometry" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
CMakeLists.txt:6 (find_package)

Could not find the required component 'ecl_geometry'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "ecl_geometry" with
any of the following names:

ecl_geometryConfig.cmake ecl_geometry-config.cmake

Add the installation prefix of "ecl_geometry" to CMAKE_PREFIX_PATH or set
"ecl_geometry_DIR" to a directory containing one of the above files. If
"ecl_geometry" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
CMakeLists.txt:6 (find_package)

CMake Error in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 3.5)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".

CMakeLists

project(tracker)
set(CMAKE_BUILD_TYPE Release)

set(CMAKE_CXX_FLAGS “-std=c++0x ${CMAKE_CXX_FLAGS}”)
find_package(catkin REQUIRED COMPONENTS ecl_geometry roscpp rospy tf image_transport cv_bridge moveit_ros_planning_interface moveit_msgs moveit_planners_ompl moveit_ros_move_group moveit_ros_planning dynamic_reconfigure)

find_package(PCL 1.7 REQUIRED COMPONENTS

common
octree
io
kdtree
search
sample_consensus
filters
2d
features
registration
geometry
visualization
outofcore
surface
keypoints
ml
segmentation
recognition
people
tracking
stereo
)

MESSAGE(“PCL_FOUND:” ${PCL_FOUND})
MESSAGE(“PCL_INCLUDE_DIRS:” ${PCL_LIBRARY_DIRS})
MESSAGE(“PCL_LIBRARIES:” ${PCL_LIBRARIES})
MESSAGE(“PCL_LIBRARY_DIRS:” ${PCL_LIBRARY_DIRS})
MESSAGE(“PCL_VERSION:” ${PCL_VERSION})
MESSAGE(“PCL_COMPONENTS:” ${PCL_COMPONENTS})
MESSAGE(“PCL_DEFINITIONS:” ${PCL_DEFINITIONS})

include_directories(${PCL_INCLUDE_DIRS})

link_directories(${PCL_LIBRARY_DIRS})

find_package(HDF5 REQUIRED )
add_definitions(${HDF5_DEFINITIONS})
include_directories(${HDF5_INCLUDE_DIRS})
link_directories(${HDF5_LIBRARIES})

include_directories( ${catkin_INCLUDE_DIRS})

add_executable(tracking_object sample.cpp)
target_link_libraries(tracking_object ${catkin_LIBRARIES} ${PCL_LIBRARIES} ${PCL_TRACKING_LIBRARIES} ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES} ${PCL_SEARCH_LIBRARIES} ${PCL_SAMPLE_CONSENSUS_LIBRARIES} ${PCL_FILTERS_LIBRARIES} ${PCL_APPS_LIBRARIES})

実装環境

Ubuntu 16.04LTS
CMake 3.11.2
ROS Kinetic

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問