ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A

Error MSB4126: The specified solution configuration "Release|x 86" is invalid

I tried building the ros2 code using this guide,

i couldnt build the /dev/ros2 folder tree.
when i tried to run this code:

python src\ament\ament_tools\scripts\ build
i get,

Build started 10-02-2018 09:21:00.
1>Project “C:\dev\ros2\build\ament_cmake_core\ament_cmake_core.sln” on node 1 (default targets).
1>C:\dev\ros2\build\ament_cmake_core\ament_cmake_core.sln.metaproj : error MSB4126: The specified solution configuration “Release|x
86” is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe S
olution.sln /p:Configuration=Debug /p:Platform=“Any CPU”) or leave those properties blank to use the default solution configurati
on. [C:\dev\ros2\build\ament_cmake_core\ament_cmake_core.sln]
1>Done Building Project “C:\dev\ros2\build\ament_cmake_core\ament_cmake_core.sln” (default targets) – FAILED.

I use command prompt and vs2017.
Please help me get around this.

Hi @RAM46,

You need to be in a Visual Studio shell to build the code. From the wiki paged you linked:
"Windows 10: Press the windows key and type apps: vs2015 x64 native tools command prompt".

Note that ROS2 targets only 64bits architectures and compilations so we have never tried building in “Release|x86” only x64.

Regarding VS version, we are planning on migrating to VS2017 in the near future but this is not the case at the moment, so the instructions have been tested only for VS2015 Update 3.