Could not find a package configuration file provided by "ignition-cmake0", installing Gazebo on Windows
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.
ERROR:
Microsoft Windows Version 10.0.18362.836 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>.\configure
C:\opt\gz-ws\ign-math>call :installignproject ign-cmake ign-cmake0 The system cannot find the batch label specified - installignproject 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" -DCMAKEINSTALLPREFIX=""install\Release"" -DCMAKEBUILDTYPE="Release" -DBUILDTESTING:BOOL=False CMake Error at CMakeLists.txt:12 (findpackage): By not providing "Findignition-cmake0.cmake" in CMAKEMODULEPATH 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:
ignition-cmake0Config.cmake
ignition-cmake0-config.cmake
Add the installation prefix of "ignition-cmake0" to CMAKEPREFIXPATH 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.
Asked by metobom on 2020-06-12 05:08:56 UTC
Answers
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
- run cmake-gui.exe
- select path source code and select path to build
- run configure 1 time you will found error same
- edit path ignition-cmake0_DIR to gz-ws/ign-cmake/build/install/Release/lib/cmake/ignition-cmake0
- Run again Done !!
Asked by spygibas on 2020-08-18 12:45:41 UTC
Comments
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
Asked by dejesus33 on 2020-09-01 04:37:07 UTC
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.
Asked by Anjana on 2020-11-24 21:55:53 UTC
Comments