Why do I receive: Error using ros.internal.ROSProjectBuilder/buildPackage (line 534) Error building package: build log.
28 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
manuel mar
le 14 Juil 2021
Commenté : Jing Jin
le 10 Mar 2023
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 commentaires
Cam Salzberger
le 19 Juil 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.
Réponse acceptée
Cam Salzberger
le 21 Juil 2021
The key part of the error message in the log file is right here:
Path: <...> exceeds the OS max path limit. The fully qualified file name must be less than 260 characters.
The issue is that colcon creates a rather large folder and file heirarchy when doing any kind of package build. If the path to the initial folder is any kind of reasonable length, it may run ito the Windows limitation of 260 characters. Linux and Mac don't have that issue.
I'd suggest either creating a new folder with a shorter path (like D:/ros2) and copying the example files into there for testing, or mapping a network drive to the examples folder and changing directory so that you use that mapped network drive.
-Cam
1 commentaire
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Specialized Messages dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!