ROS build package error
26 ビュー (過去 30 日間)
古いコメントを表示
Bharath Mahadikar
2022 年 5 月 30 日
コメント済み: Jagadeesh Konakalla
2023 年 11 月 3 日
Hello,
I am facing the error with the buildPackage in rosgenmsg command.
The error I am getting is as follows:
<
Build in progress. This may take several minutes...Error using ros.internal.ROSProjectBuilder/buildPackage (line 552)
Error building package: build log.
Error in rosgenmsg (line 483)
buildPackage(builder, [], 'install', catkinMakeArgs); %other messages might need to be present in the same directory
>
When I checked the build log, it shows:
<
-- Configuring incomplete, errors occurred! See also "E:/catkin_ws/src/matlab_msg_gen_ros1/win64/build/CMakeFiles/CMakeOutput.log". Base path: E:\catkin_ws\src\matlab_msg_gen_ros1\win64 Source space: E:\catkin_ws\src\matlab_msg_gen_ros1\win64\src Build space: E:\catkin_ws\src\matlab_msg_gen_ros1\win64\build Devel space: E:\catkin_ws\src\matlab_msg_gen_ros1\win64\devel Install space: E:\catkin_ws\src\matlab_msg_gen_ros1\win64\install #### #### Running command: "cmake E:\catkin_ws\src\matlab_msg_gen_ros1\win64\src -DBoost_NAMESPACE=mwboost -DCATKIN_ENABLE_TESTING=off -DCMAKE_CXX_COMPILER=cl.exe -DCMAKE_C_COMPILER=cl.exe -DCMAKE_LINKER=link.exe -DMSVC_TOOLSET_VERSION=141 -DCMAKE_PREFIX_PATH=C:\Program Files\MATLAB\R2021b\sys\ros1\win64\ros1;C:/Program Files/MATLAB/R2021b/toolbox/ros/mlroscpp/custom_messages -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE=/MD /Od /Ob2 /DNDEBUG -DCATKIN_DEVEL_PREFIX=E:\catkin_ws\src\matlab_msg_gen_ros1\win64\devel -DCMAKE_INSTALL_PREFIX=E: \catkin_ws\src\matlab_msg_gen_ros1\win64\install -G Ninja" in "E:\catkin_ws\src\matlab_msg_gen_ros1\win64\build" #### Invoking "cmake" failed
>
Could anyone support? I am not sure what's the issue in this case.
16 件のコメント
Mario Cervantes Hernandez
2023 年 11 月 3 日
I have the same message error but I do not have an username "with spaces" I am wondered if you could help me on this issue?
Hello, I need to run the command "rosgenmsg". I am using Windows 10, Visual Studio 2017, Python 2.7.18 and Cmake 3.15.5 as Matlab recommends for each version.
but I have the following error:
[1/1] Generating MATLAB interfaces for custom message packages... Done.
Running catkin build in folder 'C:/Users/username/Documents/Hexa2023/matlab_msg_gen_ros1/win64'.
Build in progress. This may take several minutes...Error using ros.internal.ROSProjectBuilder/buildPackage (line 552)
Error building package: build log.
Error in rosgenmsg (line 483)
buildPackage(builder, [], 'install', catkinMakeArgs); %other messages might need to be present in the same directory
Jagadeesh Konakalla
2023 年 11 月 3 日
Can you please send me the error log ? Which version of MATLAB that yoiu are using ?
採用された回答
Jagadeesh Konakalla
2022 年 5 月 31 日
移動済み: Remo Pillat
2023 年 3 月 2 日
Hi Bharath,
We create a python virtual environement in MATLAB preferences directory (prefdir). In your case, the preference directory has sapces. Please note that your username has spaces.
C:\Users\Bharath B Mahadikar\AppData\\Roaming\MathWorks\MATLAB\R2022b
From the CMAKE log, i see that error says that
B was unexpected this time.
The issue looks like some python script is not able to handle spaces in the Path where the python virtual environment is created. This issue looks specific to Windows platform only.
One workaround is to change MATLAB preference directory for your 2021b MATLAB.
You can give a try and let me know if that works for you.
Thanks,
Jagadeesh K.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Custom Message Support についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!