[Discourse.ros.org] [Next Generation ROS] Ament Tutorial: Build Fails with Symlink

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Discourse.ros.org] [Next Generation ROS] Ament Tutorial: Build Fails with Symlink

Florian Friesdorf via ros-users


Trying build the ament package builder for ROS2 on windows. Getting the following errors. any suggestion on how resolve these?

Following the steps mentioned: https://github.com/ros2/ros2/wiki/Ament-Tutorial

PostBuildEvent:
  setlocal
  "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake
  if %errorlevel% neq 0 goto :cmEnd
  :cmEnd
  endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
  :cmErrorLevel
  exit /b %1
  :cmDone
  if %errorlevel% neq 0 goto :VCEnd
  :VCEnd
  -- Install configuration: "Release"
  -- Execute custom install script
  -- Symlinking: D:/ROS/ros2_ws/install/share/ament_index/resource_index/package_run_dependencies/ament_cmake_core
  failed to create symbolic link 'D:/ROS/ros2_ws/install/share/ament_index/resource_index/package_run_dependencies/ament_cmake_core': No error
  CMake Error at ament_cmake_symlink_install/ament_cmake_symlink_install.cmake:293 (message):
    Could not create symlink
    'D:/ROS/ros2_ws/install/share/ament_index/resource_index/package_run_dependencies/ament_cmake_core'
    pointing to
    'D:/ROS/ros2_ws/build/ament_cmake_core/ament_cmake_index/share/ament_index/resource_index/package_run_dependencies/ament_cmake_core'
  Call Stack (most recent call first):
    ament_cmake_symlink_install/ament_cmake_symlink_install.cmake:149 (_ament_cmake_symlink_install_create_symlink)
    ament_cmake_symlink_install/ament_cmake_symlink_install.cmake:305 (ament_cmake_symlink_install_files)
    cmake_install.cmake:31 (include)





---
[Visit Topic](https://discourse.ros.org/t/ament-tutorial-build-fails-with-symlink/1899/1) or reply to this email to respond.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list
[hidden email]
http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Discourse.ros.org] [Next Generation ROS] Ament Tutorial: Build Fails with Symlink

Florian Friesdorf via ros-users


I get the same error on Windows. I've traditionally never build with --symlink-install, so I haven't seen this in the past.
Building without that option on Windows works very well.





---
[Visit Topic](https://discourse.ros.org/t/ament-tutorial-build-fails-with-symlink/1899/2) or reply to this email to respond.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list
[hidden email]
http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Discourse.ros.org] [Next Generation ROS] Ament Tutorial: Build Fails with Symlink

Florian Friesdorf via ros-users
In reply to this post by Florian Friesdorf via ros-users


without --symlink-install i get same error





---
[Visit Topic](https://discourse.ros.org/t/ament-tutorial-build-fails-with-symlink/1899/3) or reply to this email to respond.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list
[hidden email]
http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Discourse.ros.org] [Next Generation ROS] Ament Tutorial: Build Fails with Symlink

Florian Friesdorf via ros-users
In reply to this post by Florian Friesdorf via ros-users


Did you try removing your build and install folder before building without the `--symlink-install` flag?
to do so you can run
```
rmdir /S build install
```
and then run ament again





---
[Visit Topic](https://discourse.ros.org/t/ament-tutorial-build-fails-with-symlink/1899/4) or reply to this email to respond.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list
[hidden email]
http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>
Loading...