Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build on windows ROS2 #329

Open
kjoelovelife opened this issue May 16, 2024 · 3 comments
Open

Failed to build on windows ROS2 #329

kjoelovelife opened this issue May 16, 2024 · 3 comments

Comments

@kjoelovelife
Copy link

Hi there,

I encountered an issue while trying to install sick_scan_xd on Windows 10 with ROS2 Humble.

The error message I received is as follows:

failed_to_build_sick

I have ensured that the path C:/sick_scan_ws/src/sick_scan_xd/include exists.

@rostest
Copy link
Collaborator

rostest commented May 18, 2024

Thanks for your feedback. The path C:/sick_scan_ws/src/sick_scan_xd/include_directories looks strange as include_directories is not a subfolder in sick_scan_xd. Maybe it is from a previous build?

Please remove all temporary build folders, i.e. run

cd C:\sick_scan_ws
rmdir /s/q .\build
rmdir /s/q .\install
rmdir /s/q .\log
del /f/q .\src\CMakeLists.txt

and rebuild as described in Build on Windows ROS2:

call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64
call C:\opt\ros\humble\x64\setup.bat
colcon build --packages-select sick_scan_xd --cmake-args " -DROS_VERSION=2" --event-handlers console_direct+
call .\install\setup.bat

Please post a logfile of the entire build process if the problem persists.

@kjoelovelife
Copy link
Author

kjoelovelife commented May 21, 2024

Hi @rostest,

I have tested the solution you provided, but the problem still persists. Here is the logfile.

streams.log

rostest added a commit that referenced this issue May 22, 2024
@rostest
Copy link
Collaborator

rostest commented May 22, 2024

Many thanks for following up. We have adapted CMakeLists.txt for ROS-2 humble on Windows. Please use the update in branch feature/windows_ros2_humble and rebuild.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants