tu-darmstadt-ros-pkg / hector_quadrotor

hector_quadrotor contains packages related to modeling, control and simulation of quadrotor UAV systems.
Other
378 stars 277 forks source link

CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): #73

Closed DC-12 closed 4 years ago

DC-12 commented 7 years ago

While running the following commands: mkdir ~/hector_quadrotor_tutorial cd ~/hector_quadrotor_tutorial wstool init src https://raw.github.com/tu-darmstadt-ros-pkg/hector_quadrotor/kinetic-devel/tutorials.rosinstall catkin_make source devel/setup.bash

I got the following error:

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

geographic_msgsConfig.cmake
geographic_msgs-config.cmake

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

-- Could not find the required component 'geographic_msgs'. 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 "geographic_msgs" with any of the following names:

geographic_msgsConfig.cmake
geographic_msgs-config.cmake

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

-- Configuring incomplete, errors occurred! See also "/home/dc_12/hector_quadrotor_tutorial/build/CMakeFiles/CMakeOutput.log". See also "/home/dc_12/hector_quadrotor_tutorial/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed

wraysx commented 7 years ago

sudo apt-get install ros-kinetic-geographic-msgs

krish007k commented 5 years ago

how did u solve this error? I am also getting the same error. can u help me on this? Thanq

suqianxin commented 5 years ago

I got the similar problem as " CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "controller_interface" with any of the following names:

controller_interfaceConfig.cmake controller_interfaceconfig.cmake"

Also,i try ' sudo apt-get install ros-kinetic-controller-interface ' but it did't work. The answer just as " The following packages have unmet dependencies: ros-kinetic-controller-interface : Depends: ros-kinetic-hardware-interfac but it is not going to be installed. " What should i do?This problem bother me several days.

robotUR10 commented 4 years ago

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

rosppConfig.cmake
rospp-config.cmake

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

-- Configuring incomplete, errors occurred! See also "/home/book/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/book/catkin_ws/build/CMakeFiles/CMakeError.log". Makefile:318: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed

Dear, Sir/Madam Who has solved this error question? Thanks for your help.

BridgeQZH commented 4 years ago

I guess if you meet a error message with find_package. You can always choose to install the package you are missing. For example, If the message shows: CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package): Could not find a package configuration file provided by "geographic_msgs" with any of the following names:

geographic_msgsConfig.cmake geographic_msgs-config.cmake

Then you should type

sudo apt-get install ros-kinetic(or melodic)-geographic-msgs

(It depends on the version of ROS you choose)

If the error message goes in this way: CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "rospp" with any of the following names:

rosppConfig.cmake rospp-config.cmake

Try to type this:

sudo apt-get install ros-melodic-roscpp

Just the package name before the Config.cmake

elaiyarajathaangaraju commented 4 years ago

CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "moveit_kinematics" with any of the following names:

moveit_kinematicsConfig.cmake
moveit_kinematics-config.cmake

Any one have idea ? how to solve this issue. Thanks

StefanFabian commented 4 years ago

@elaiyarajathaangaraju Please read the comment of the guy who posted right above you. In your case the command would be:

sudo apt install ros-melodic-moveit-kinematics

Closing and locking this conversation since the original issue was solved and if what @BridgeQZH wrote does not solve your issue, you should create a new issue instead of commenting here anyway.