Why do I receive: Error using ros.internal.ROSProjectBuilder/buildPackage (line 534) Error building package: build log.
Show older comments
Identifying message files in folder 'D:/Documents/MATLAB/Examples/R2021a/ros/ROS2CustomMessagesExample/custom'.Done.
Validating message files in folder 'D:/Documents/MATLAB/Examples/R2021a/ros/ROS2CustomMessagesExample/custom'.Done.
[3/3] Generating MATLAB interfaces for custom message packages... Done.
Running colcon build in folder 'D:/Documents/MATLAB/Examples/R2021a/ros/ROS2CustomMessagesExample/custom/matlab_msg_gen/win64'.
Build in progress. This may take several minutes...
buildPackage(builder, [], ' --merge-install', colconMakeArgs); %other messages might need to be present in the same directory
5 Comments
Cam Salzberger
on 14 Jul 2021
Hello Manuel,
A lot of the issues that can come up during a ROS 2 package build is tracked internally by colcon (the build tool). If you open up the build log that is linked in the error message, you should be able to get more specific information about the actual build error. If you need help interpreting it, please post the relevant parts too.
-Cam
manuel mar
on 14 Jul 2021
Cam Salzberger
on 19 Jul 2021
That doesn't really help to narrow it down. Try to look for the build log file in the generated folder -> <architecture> -> log folder. Do this right after attempting to run the code and the error message appears. If the folder/file gets deleted later, you won't be able to open it.
manuel mar
on 19 Jul 2021
Cam Salzberger
on 19 Jul 2021
You can see an example of where the log files are in the comments for this question (for anyone else who sees this). The stderr log should show just the issues, while the stdout_stderr log shows everything in context.
Accepted Answer
More Answers (1)
manuel mar
on 21 Jul 2021
0 votes
Categories
Find more on Custom Message Support in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!