How to download ignition-cmake2 on ubuntu 16.04 - cmake

CMake Error at CMakeLists.txt:12 (find_package):
By not providing "Findignition-cmake2.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"ignition-cmake2", but CMake did not find one.
Could not find a package configuration file provided by "ignition-cmake2"
with any of the following names:
ignition-cmake2Config.cmake
ignition-cmake2-config.cmake
Add the installation prefix of "ignition-cmake2" to CMAKE_PREFIX_PATH or
set "ignition-cmake2_DIR" to a directory containing one of the above files.
If "ignition-cmake2" provides a separate development package or SDK, be
sure it has been installed.
-- Configuring incomplete, errors occurred!
See also "/tmp/ign-fuel-tools/build/CMakeFiles/CMakeOutput.log".
I am using ubuntu 16.04 and already download "ignition-cmake0".

I had a similar error and I solve mine writing the path of the directory on the Build/CMakeCache in the line where is written NOT FOUND.

Related

How do I solve colcon build on Ubuntu?

The error reads as follows:
By not providing "Findrosidl_default_generators.cmake" in CMAKE_MODULE_PATH
this project has asked CMake to find a package configuration file provided
by "rosidl_default_generators", but CMake did not find one.
Could not find a package configuration file provided by
"rosidl_default_generators" with any of the following names:
rosidl_default_generatorsConfig.cmake
rosidl_default_generators-config.cmake

How can I use cmake to locate jupyter notebook installation

Is there a way to use cmake find_package() to locate jupyter_notebook installation?
I tried
FIND_PACKAGE(jupyter-notebook REQUIRED)
but it errors out with
CMake Error at CMakeLists.txt:15 (FIND_PACKAGE):
By not providing "Findjupyter-notebook.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"jupyter-notebook", but CMake did not find one.
Could not find a package configuration file provided by "jupyter-notebook"
with any of the following names:
jupyter-notebookConfig.cmake
jupyter-notebook-config.cmake
Add the installation prefix of "jupyter-notebook" to CMAKE_PREFIX_PATH or
set "jupyter-notebook_DIR" to a directory containing one of the above
files. If "jupyter-notebook" provides a separate development package or
SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred!
However, it has been installed:
apt-cache show jupyter-notebook
There are a few options when using the find_package command, MODULE and CONFIG. For this case, you likely want the CONFIG setting. The error message is trying to help here. Did either of these files come with the jupyter-notebook installation?
jupyter-notebookConfig.cmake
jupyter-notebook-config.cmake
If so, try setting CMAKE_PREFIX_PATH or jupyter-notebook_DIR to the directory where jupyter-notebook was installed. So you might try something like the following:
list(APPEND CMAKE_PREFIX_PATH /path/to/your/installation) # Try this one.
# SET(jupyter-notebook_DIR /path/to/your/installation) # Or try this one.
FIND_PACKAGE(jupyter-notebook CONFIG REQUIRED)
If your installation does not appear to have the aforementioned CMake config files, nor does it appear to have any CMake support files (a cmake directory, etc.), the find_program command is likely more appropriate for jupyter-notebook.
I suggest spending some time with the documentation for find_package, as it explicitly lays out the search paths (in order) CMake uses to find your packages. Also, check out this answer.

Windows 10, VS 2013: Cmake error while configuring OpenCL program

I'm trying to build this Github project in Windows. Getting the error below. I've installed the AMD SDK and added the path to PATH variable. Please let me know how to overcome this issue.
CMake Error at CMakeLists.txt:94 (find_package):
By not providing "FindOpenCL.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenCL", but
CMake did not find one.
Could not find a package configuration file provided by "OpenCL" with any
of the following names:
OpenCLConfig.cmake
opencl-config.cmake
Add the installation prefix of "OpenCL" to CMAKE_PREFIX_PATH or set
"OpenCL_DIR" to a directory containing one of the above files. If "OpenCL"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
According to docs, CMake provides FindOpenCL.cmake module since version 3.1. So you need at least CMake 3.1 for build given project.
Actually, it is the project's cmake_minimum_required who should provide correct constraint.

eigen3 missing error during ROS installation

Hi I'm trying to install ROS on my MAC using homebrew.While installation I got this message :
CMake Error at CMakeLists.txt:7 (find_package):
By not providing "FindEigen3.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Eigen3", but
CMake did not find one
Could not find a package configuration file provided by "Eigen3" with any
of the following names:
Eigen3Config.cmake
eigen3-config.cmake
Add the installation prefix of "Eigen3" to CMAKE_PREFIX_PATH or set
"Eigen3_DIR" to a directory containing one of the above files. If "Eigen3"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "/Users/Jishnu/ros_catkin_ws/build_isolated/pcl_ros/CMakeFiles/CMakeOutput.log".
<== Failed to process package 'pcl_ros':
Command '['/Users/Jishnu/ros_catkin_ws/install_isolated/env.sh', ' cmake', '/Users/Jishnu/ros_catkin_ws/src/perception_pcl/pcl_ros', '- DCATKIN_DEVEL_PREFIX=/Users/Jishnu/ros_catkin_ws/devel_isolated/pcl_ros', '-DCMAKE_INSTALL_PREFIX=/Users/Jishnu/ros_catkin_ws/install_isolated', '-DCMAKE_BUILD_TYPE=Release', '-G', 'Unix Makefiles']' returned non-zero exit status 1
I'M a beginner in ROS, so could someone please help me out with this. I have checked if Eigen is installed, version 3.2.4 is already installed
This solved the problem for me.
It seems this has been resolved, but I'll share how I got this
working: Elsewhere in the ros build workspace I found a copy of
FindEigen3.cmake:
ros_catkin_ws$ cp
src/orocos_kinematics_dynamics/orocos_kdl/config/FindEigen3.cmake
src/perception_pcl/pcl_ros/cfg/ Then I removed the following from
CMakeLists:
find_package(Eigen 3 Required) Replacing it with these lines from the
orocos CMakeLists
find_package(Eigen 3 QUIET) if(NOT Eigen_FOUND)
include(${PROJ_SOURCE_DIR}/cfg/FindEigen3.cmake)
set(Eigen_INCLUDE_DIR ${EIGEN3_INCLUDE_DIR}) endif()
include_directories(${Eigen_INCLUDE_DIR}) To be perfectly honest, I
didn't change config -> cfg when I did my build, but it seems to have
worked.
What I did to solve such problem was:
Finding the current value of CMAKE_ROOT by print it out using message( WARNING ${CMAKE_ROOT}) in .cmake file
Make sure Modules/FindEigen3.cmake exists in that folder
If not, download a copy from https://github.com/RainerKuemmerle/g2o/blob/master/cmake_modules/FindEigen3.cmake

Cmake Error for ITK with GDCM configuration

Following error found while configuring ITK with GDCM2.2
CMake Error at Modules/ThirdParty/GDCM/itk-module-init.cmake:5 (find_package):
By not providing "FindGDCM.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "GDCM", but
CMake did not find one.
Could not find a package configuration file provided by "GDCM" with any of
the following names:
GDCMConfig.cmake
gdcm-config.cmake
Add the installation prefix of "GDCM" to CMAKE_PREFIX_PATH or set
"GDCM_DIR" to a directory containing one of the above files. If "GDCM"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
CMakeLists.txt:558 (include)
I have installed GDCM2.2 [not repository] and manually set path of gdcm directory but still this error returned by Cmake.
Please help.
To build ITK with gdcm download .zip file of gdcm2.2.1 or latest version cause installing gdcm by exe is not include any GDCMconfig.cmake file but zip have it. And in ITK configuration we have to give path of directory where GDCMconfig.cmake is present.