Borrar filtros
Borrar filtros

ROS build package error

34 visualizaciones (últimos 30 días)
Bharath Mahadikar
Bharath Mahadikar el 30 de Mayo de 2022
Comentada: Jagadeesh Konakalla el 3 de Nov. de 2023
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 comentarios
Mario Cervantes Hernandez
Mario Cervantes Hernandez el 3 de Nov. de 2023
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 el 3 de Nov. de 2023
Can you please send me the error log ? Which version of MATLAB that yoiu are using ?

Iniciar sesión para comentar.

Respuesta aceptada

Jagadeesh Konakalla
Jagadeesh Konakalla el 31 de Mayo de 2022
Movida: Remo Pillat el 2 de Mzo. de 2023
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.

Más respuestas (0)

Categorías

Más información sobre Publishers and Subscribers en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by