1
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".

Kevin
  • 16,549
  • 8
  • 60
  • 74
GP2020-DAR
  • 29
  • 4
  • What commands are you running that trigger this error? – Kevin Feb 13 '20 at 13:14
  • $/tmp/ign-fuel-tools/build: cmake ../ – GP2020-DAR Feb 13 '20 at 13:18
  • i am using the terminal – GP2020-DAR Feb 13 '20 at 13:18
  • Your question is missing some context: are you building the Ignition Fuel Tools (as described [here](https://ignitionrobotics.org/tutorials/fuel_tools/1.0/md__data_ignition_ign-fuel-tools_tutorials_installation.html))? If so, did you install any dependencies before running `cmake ../`? – Kevin Feb 13 '20 at 13:24
  • yes as showing in the link (ignition fuel tools),i did install so many dependencies as required in my project – GP2020-DAR Feb 13 '20 at 13:30
  • 1
    If you have installed `ignition-cmake2`, then, according to the [package info](https://packages.ubuntu.com/focal/amd64/libignition-cmake2-dev/filelist), you should have a file `/usr/share/cmake/ignition-cmake2/ignition-cmake2-config.cmake`. Do you actually have this file? – Tsyvarev Feb 13 '20 at 16:39

1 Answers1

0

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.