ROS build package error

조회 수: 24 (최근 30일)
Bharath Mahadikar
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
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
Jagadeesh Konakalla 2023년 11월 3일
Can you please send me the error log ? Which version of MATLAB that yoiu are using ?

댓글을 달려면 로그인하십시오.

채택된 답변

Jagadeesh Konakalla
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개)

카테고리

Help CenterFile Exchange에서 Custom Message Support에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by