Gazebo | Ignition | Community
Ask Your Question
0

Following Windows tutorial, can't compile Sdformat

asked 2017-01-23 19:34:36 -0500

Kevin Dill gravatar image

I'm working my way through the Windows tutorial, trying to get everything downloaded and installed.

http://gazebosim.org/tutorials?tut=install_on_windows&cat=install

I've made it to step 10, including compiling ign-math. My main directory is d:\Gazebo (so Sdformat is in D:\Gazebo\Sdformat). CMake is in "D:\Program Files (x86)\CMake\bin". When I try running "..\configure" (as directed in step 10), I get this output:

D:\Gazebo\sdformat\build>..\configure
Configuring for build type Release

D:\Gazebo\sdformat\build>cmake -G "NMake Makefiles"  -DBOOST_ROOT:STRING="D:\Gaz
ebo\sdformat\build\..\..\boost_1_56_0"  -DBOOST_LIBRARYDIR:STRING="D:\Gazebo\sdf
ormat\build\..\..\boost_1_56_0\lib64-msvc-12.0"  -DCMAKE_INSTALL_PREFIX="install
/Release"  -DIGNITION-MATH_INCLUDE_DIRS:STRING="D:\Gazebo\sdformat\build\..\..\i
gn-math\build\install\Release\include\ignition\math2"  -DIGNITION-MATH_LIBRARY_D
IRS:STRING="D:\Gazebo\sdformat\build\..\..\ign-math\build\install\Release\lib"
-DIGNITION-MATH_LIBRARIES="ignition-math2"  -DCMAKE_BUILD_TYPE="Release" ..
CMake Error at build/CMakeFiles/3.7.2/CMakeCCompiler.cmake:1 (set):
  Syntax error in cmake code at

    D:/Gazebo/sdformat/build/CMakeFiles/3.7.2/CMakeCCompiler.cmake:1

  when parsing string

    D:\Program Files (x86)\CMake\bin

  Invalid escape sequence \P
Call Stack (most recent call first):
  CMakeLists.txt:23 (project)


CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "D:/Gazebo/sdformat/build/CMakeFiles/CMakeOutput.log".
See also "D:/Gazebo/sdformat/build/CMakeFiles/CMakeError.log".

D:\Gazebo\sdformat\build>

As best I can tell (maybe I have this completely wrong), there must be some makefile somewhere that should either use "/" or "\" instead of "\", but I can't find where it would be.

Any hints?

edit retag flag offensive close merge delete

Comments

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:24:13 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-12-04 08:03:08 -0500

wampus gravatar image

Edit the configure.bat file in sdformat - it has the cmake call line, and either use \ or //

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-01-23 19:34:36 -0500

Seen: 275 times

Last updated: Dec 04 '20