Error installing ign-math in windows 10
Hi!
I am attempting to follow the installation instructions for windows, found here: http://gazebosim.org/tutorials?tut=install_on_windows&cat=install
Some background:
- I am running Windows 10 64 bit
- I am trying to install in D:\gz-ws
- I had to modify the configure file for ign-cmake in step #8 because the file wasn't setting the install path so it was creating the folders in the root D:\ directory instead of /ign-cmake/build/install/Release
Error:
I am now getting an error on step #9 when attempting to run the .\configure command for ign-math. I have attached the full output below:
D:\gz-ws\ign-math>.\configure
D:\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
D:\gz-ws\ign-math>cd /d D:\gz-ws\ign-math\
D:\gz-ws\ign-math>md build
A subdirectory or file build already exists.
D:\gz-ws\ign-math>cd build
D:\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:16 (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:
ignition-cmake0Config.cmake
ignition-cmake0-config.cmake
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.
-- Configuring incomplete, errors occurred!
See also "D:/gz-ws/ign-math/build/CMakeFiles/CMakeOutput.log".
D:\gz-ws\ign-math\build>.\configure
'.\configure' is not recognized as an internal or external command,
operable program or batch file.
If anyone could offer any assistance I would be really grateful, thank you!
Note: looking at the configuration file, the first line is actually this:
call %win_lib% :install_ign_project ign-cmake ign-cmake0
I don't know what win_lib is supposed to be or where this label is located
Asked by massiah3100 on 2020-05-31 11:17:50 UTC
Answers
To get it to recognize ign-cmake0
, edit ign-math\configure.bat
L22
by adding the -DCMAKE_PREFIX_PATH
:
cmake .. -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX="%WORKSPACE_INSTALL_DIR%"
-DCMAKE_BUILD_TYPE="%build_type%" -DBUILD_TESTING:BOOL=False
-DCMAKE_PREFIX_PATH="path\to\gz-ws\ign-cmake\build\install\Release"
In your case, I think it would be : -DCMAKE_PREFIX_PATH="D:\gz-ws\ign-cmake\build\install\Release"
Your second .\configure
failed because the script leaves you in the build
directory, so you need to move back to ìgn-math`.
Asked by wampus on 2020-12-02 09:56:32 UTC
Comments
I was able to solve the issue by first configuring ign-cmake with
./configure Release
then I copied cmake folder from ign-cmake to ign-cmake/build
Asked by Iyad Ahmed on 2021-10-09 12:10:33 UTC
Comments
note you also need to do wampus answer
Asked by Iyad Ahmed on 2021-10-09 12:29:00 UTC
This help me solved the problem, thank you. However I encountered a similar issue in the next step (ign-common configuration)
Asked by AndyBest on 2021-10-19 06:14:22 UTC
Comments
I'm getting the same error.
Asked by Keara on 2020-06-05 18:29:58 UTC
same error here i think the problem will be in the configure bat file
Asked by shadowzone22 on 2020-06-13 15:53:44 UTC
Any updates on this one? Seems like several people have had this problem.
Asked by Gihar on 2020-08-10 18:57:32 UTC
I have the same problem, can't get past step 9 in the tutorial and it looks like this is a reoccurring problem i don't know why it's not addressed yet
Asked by Miroslav on 2020-09-01 06:09:20 UTC
Any updates?
Asked by purple_banana on 2020-10-08 22:55:14 UTC
There is an ongoing effort of improving the methods of installing Gazebo on Windows. Please check https://github.com/osrf/gazebo/issues/2901 and linked issues, hope it can help you or at least give you some alternatives.
Asked by Jose Luis Rivero on 2020-12-11 14:25:13 UTC