Why does "rosgenmsg" in ROS Toolbox fail when working in a directory with a long absolute path name?
Show older comments
I am working in a directory named C:\some\directory\structure\with\quite\a\few\folders\which\leads\to\a\very\long\absolute\path\in\total and I am trying to generate a MATLAB interface for the custom ROS messages in the 'custom' directory inside this. Calling:
>> rosgenmsg('custom')
fails however with:
Identifying message files in folder 'C:/some/directory/structure/with/quite/a/few/folders/which/leads/to/a/very/long/absolute/path/in/total/custom'..Done.
Validating message files in folder 'C:/some/directory/structure/with/quite/a/few/folders/which/leads/to/a/very/long/absolute/path/in/total/custom'..Done.
[3/3] Generating MATLAB interfaces for custom message packages... Done.
Running catkin build in folder 'C:/some/directory/structure/with/quite/a/few/folders/which/leads/to/a/very/long/absolute/path/in/total/custom/matlab_msg_gen_ros1/win64'.
Build in progress. This may take several minutes...Error using ros.internal.ROSProjectBuilder/buildPackage (line 534)
Error building package: build log.
Error in rosgenmsg (line 377)
buildPackage(builder, [], 'install', catkinMakeArgs); %other messages might need to be present in the same directory
Looking in the build log, at the bottom I see:
-- Generating done
-- Build files have been written to: C:/some/directory/structure/with/quite/a/few/folders/which/leads/to/a/very/long/absolute/path/in/total/custom/matlab_msg_gen_ros1/win64/build
ninja: no work to do.
ninja: build stopped: .
ninja: error: mkdir(CMakeFiles/Project__setup_util.py_exec_install_python.dir/catkin_generated/add_python_executable/Project__setup_util.py_exec_install_python): No such file or directory
Base path: C:\some\directory\structure\with\quite\a\few\folders\which\leads\to\a\very\long\absolute\path\in\total\custom\matlab_msg_gen_ros1\win64
Source space: C:\some\directory\structure\with\quite\a\few\folders\which\leads\to\a\very\long\absolute\path\in\total\custom\matlab_msg_gen_ros1\win64\src
Build space: C:\some\directory\structure\with\quite\a\few\folders\which\leads\to\a\very\long\absolute\path\in\total\custom\matlab_msg_gen_ros1\win64\build
Devel space: C:\some\directory\structure\with\quite\a\few\folders\which\leads\to\a\very\long\absolute\path\in\total\custom\matlab_msg_gen_ros1\win64\devel
Install space: C:\some\directory\structure\with\quite\a\few\folders\which\leads\to\a\very\long\absolute\path\in\total\custom\matlab_msg_gen_ros1\win64\install
####
#### Running command: "ninja build.ninja" in "C:\some\directory\structure\with\quite\a\few\folders\which\leads\to\a\very\long\absolute\path\in\total\custom\matlab_msg_gen_ros1\win64\build"
####
####
#### Running command: "ninja install install -j12 -l12" in "C:\some\directory\structure\with\quite\a\few\folders\which\leads\to\a\very\long\absolute\path\in\total\custom\matlab_msg_gen_ros1\win64\build"
####
Invoking "ninja install install -j12 -l12" failed
Accepted Answer
More Answers (0)
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!