Gazebo | Ignition | Community
Ask Your Question
0

Error installing ign-math in windows 10

asked 2020-05-31 11:17:50 -0500

massiah3100 gravatar image

Hi!

I am attempting to follow the installation instructions for windows, found here: http://gazebosim.org/tutorials?tut=in...

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

edit retag flag offensive close merge delete

Comments

I'm getting the same error.

Keara gravatar imageKeara ( 2020-06-05 18:29:58 -0500 )edit

same error here i think the problem will be in the configure bat file

shadowzone22 gravatar imageshadowzone22 ( 2020-06-13 15:53:44 -0500 )edit

Any updates on this one? Seems like several people have had this problem.

Gihar gravatar imageGihar ( 2020-08-10 18:57:32 -0500 )edit

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

Miroslav gravatar imageMiroslav ( 2020-09-01 06:09:20 -0500 )edit

Any updates?

purple_banana gravatar imagepurple_banana ( 2020-10-08 22:55:14 -0500 )edit

There is an ongoing effort of improving the methods of installing Gazebo on Windows. Please check https://github.com/osrf/gazebo/issues... and linked issues, hope it can help you or at least give you some alternatives.

Jose Luis Rivero gravatar imageJose Luis Rivero ( 2020-12-11 13:25:13 -0500 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2021-10-09 12:10:33 -0500

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

edit flag offensive delete link more

Comments

note you also need to do wampus answer

Iyad Ahmed gravatar imageIyad Ahmed ( 2021-10-09 12:29:00 -0500 )edit

This help me solved the problem, thank you. However I encountered a similar issue in the next step (ign-common configuration)

AndyBest gravatar imageAndyBest ( 2021-10-19 06:14:22 -0500 )edit
0

answered 2020-12-02 08:56:32 -0500

wampus gravatar image

updated 2020-12-02 12:41:39 -0500

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 .\configurefailed because the script leaves you in the builddirectory, so you need to move back to ìgn-math`.

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2020-05-31 11:17:50 -0500

Seen: 1,567 times

Last updated: Dec 02 '20