Gazebo | Ignition | Community
Ask Your Question

Could not find a package configuration file provided by "ignition-cmake0", installing Gazebo on Windows

asked 2020-06-12 05:08:56 -0500

metobom gravatar image

Hello. I am trying to install Gazebo on Windows by following this tutorial. Everything is fine untill step 9. In step 9, when I do .\configure, I get the output below.


Microsoft Windows [Version 10.0.18362.836] (c) 2019 Microsoft Corporation. Tüm hakları saklıdır.

C:\opt\gz-ws\ign-math>"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64

* Visual Studio 2017 Developer Command Prompt v15.9.19 * Copyright (c) 2017 Microsoft Corporation

[vcvarsall.bat] Environment initialized for: 'x86_x64'


C:\opt\gz-ws\ign-math>call :install_ign_project ign-cmake ign-cmake0 The system cannot find the batch label specified - install_ign_project Configuring for build type Release

C:\opt\gz-ws\ign-math>cd /d C:\opt\gz-ws\ign-math\

C:\opt\gz-ws\ign-math>md build A subdirectory or file build already exists.

C:\opt\gz-ws\ign-math>cd build

C:\opt\gz-ws\ign-math\build>cmake .. -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=""install\Release"" -DCMAKE_BUILD_TYPE="Release" -DBUILD_TESTING:BOOL=False CMake Error at CMakeLists.txt:12 (find_package): By not providing "Findignition-cmake0.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "ignition-cmake0", but CMake did not find one.

Could not find a package configuration file provided by "ignition-cmake0" (requested version 0.3.0) with any of the following names:


Add the installation prefix of "ignition-cmake0" to CMAKE_PREFIX_PATH or set "ignition-cmake0_DIR" to a directory containing one of the above files. If "ignition-cmake0" provides a separate development package or SDK, be sure it has been installed.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2020-08-18 12:45:41 -0500

Found Solution now, I suggest you use cmake-gui.exe ,you will find at C:\Program Files\CMake\bin if you install on that directory

  1. run cmake-gui.exe
  2. select path source code and select path to build
  3. run configure 1 time you will found error same
  4. edit path ignition-cmake0_DIR to gz-ws/ign-cmake/build/install/Release/lib/cmake/ignition-cmake0
  5. Run again Done !!
edit flag offensive delete link more


I did cmake-gui, and it showed configure done. But when I back to windows shell and type "nmake" , there also has a problem like + nmake + ~~~~~ + CategoryInfo : ObjectNotFound: (nmake:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

dejesus33 gravatar imagedejesus33 ( 2020-09-01 04:37:07 -0500 )edit

You can do the same with cmd, simply run .\configure once and it will fail, then go into the build folder and set the "ignition-cmake0_DIR" path to "ignition-cmake0_DIR to gz-ws/ign-cmake/build/install/Release/lib/cmake/ignition-cmake0" and then run the .\configure again. Thanks @sypgibas to for helping out.

Anjana gravatar imageAnjana ( 2020-11-24 20:55:53 -0500 )edit
Login/Signup to Answer

Question Tools



Asked: 2020-06-12 05:08:56 -0500

Seen: 1,170 times

Last updated: Jun 12 '20