Gazebo Garden installation problems with cmake and msbuild (Windows 10)

asked 2022-05-30 09:56:51 -0600

hengwei_ gravatar image

Hello everybody,

I'm installing Gazebo Garden on my Windows 10 laptop and recently had some problems regarding building the ignition libraries with cmake.

First, I had an error that make couldn't run the msbuild command. The solution to that was to add the msbuild path to the system environment variables and to delete the cmake cache as in https://stackoverflow.com/questions/4... explained.

Here may be the first source of error. I changed the MS Visual studio version to the correct version of VS 19, but was not sure about the source and build folder. I set the source code folder to /ign-ws/src/ign-cmake from the installation manual (https://gazebosim.org/docs/garden/ins...) and the build folder to a new empty folder.

It kinda worked and I went on to build the libraries, but the command colcon build --cmake-args -DBUILD_TESTING=OFF --merge-install --packages-up-to ignition-gazebo7 gave an error again. This time the error is something about the VCtargetsPath as shown in the shot below.

image description

I couldn't find any solution connecting both errors. Is the cause of my second error the false source folder? Maybe someone can help?

edit retag flag offensive close merge delete