Borrar filtros
Borrar filtros

Why I get Error using ros.intern​​al.ROSPro​j​ectBuild​er​/buildP​ack​age Error building package?

9 visualizaciones (últimos 30 días)
I am using Windows11 and MATLAB R2023a.
This is my error message:
custom_msg
警告: 目录已存在。
> 位置:custom_msg (第 5 行)
警告: 目录已存在。
> 位置:custom_msg (第 6 行)
Identifying message files in folder 'D:/MATLAB/LidarSLAM/LaserSLAM-master/LaserSLAM-master/RosCustomMessages'..Done.
Validating message files in folder 'D:/MATLAB/LidarSLAM/LaserSLAM-master/LaserSLAM-master/RosCustomMessages'..Done.
[1/1] Generating MATLAB interfaces for custom message packages... Done.
Running catkin build in folder 'D:/MATLAB/LidarSLAM/LaserSLAM-master/LaserSLAM-master/RosCustomMessages/matlab_msg_gen_ros1/win64'.
Build in progress. This may take several minutes...错误使用 ros.internal.ROSProjectBuilder/buildPackage
Error building package: build log.
出错 rosgenmsg (第 592 行)
buildPackage(builder, [], 'install', catkinMakeArgs); %other messages might need to be present in the same directory
出错 custom_msg (第 17 行)
rosgenmsg(genDir,CreateShareableFile=true)
This is my build log:
********************************************************************** ** Visual Studio 2022 Developer Command Prompt v17.6.4 ** Copyright (c) 2022 Microsoft Corporation ********************************************************************** [vcvarsall.bat] Environment initialized for: 'x86_x64' -- Using CATKIN_DEVEL_PREFIX: D:/MATLAB/LidarSLAM/LaserSLAM-master/LaserSLAM-master/RosCustomMessages/matlab_msg_gen_ros1/win64/devel -- Using CMAKE_PREFIX_PATH: D:\MATLAB_R2023a\sys\ros1\win64\ros1;D:/MATLAB_R2023a/toolbox/ros/mlroscpp/custom_messages -- This workspace overlays: D:/MATLAB_R2023a/sys/ros1/win64/ros1;D:/MATLAB_R2023a/toolbox/ros/mlroscpp/custom_messages -- Using PYTHON_EXECUTABLE: C:/Users/姜宇宁/AppData/Roaming/MathWorks/MATLAB/R2023a/ros1/win64/venv/Scripts/python.exe -- Using default Python package layout -- Using empy: C:/Users/姜宇宁/AppData/Roaming/MATHWO~1/MATLAB/R2023a/ros1/win64/venv/lib/site-packages/em.py -- Using CATKIN_ENABLE_TESTING: off -- catkin 0.8.10 -- BUILD_SHARED_LIBS is on 系统找不到指定的批处理标签 - GenerateTempFilename Traceback (most recent call last): File "D:\MATLAB\LidarSLAM\LaserSLAM-master\LaserSLAM-master\RosCustomMessages\matlab_msg_gen_ros1\win64\build\catkin_generated\generate_cached_setup.py", line 22, in <module> code = generate_environment_script('D:/MATLAB/LidarSLAM/LaserSLAM-master/LaserSLAM-master/RosCustomMessages/matlab_msg_gen_ros1/win64/devel/env.bat') File "D:\MATLAB~1\sys\ros1\win64\ros1\lib\site-packages\catkin\environment_cache.py", line 67, in generate_environment_script env_after = eval(output.decode('utf-8')) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbd in position 4319: invalid start byte CMake Error at D:/MATLAB_R2023a/sys/ros1/win64/ros1/share/catkin/cmake/safe_execute_process.cmake:11 (message): execute_process(C:/Users/姜宇宁/AppData/Roaming/MathWorks/MATLAB/R2023a/ros1/win64/venv/Scripts/python.exe "D:/MATLAB/LidarSLAM/LaserSLAM-master/LaserSLAM-master/RosCustomMessages/matlab_msg_gen_ros1/win64/build/catkin_generated/generate_cached_setup.py") returned error code 1 Call Stack (most recent call first): D:/MATLAB_R2023a/sys/ros1/win64/ros1/share/catkin/cmake/all.cmake:208 (safe_execute_process) D:/MATLAB_R2023a/sys/ros1/win64/ros1/share/catkin/cmake/catkinConfig.cmake:20 (include) CMakeLists.txt:58 (find_package) -- Configuring incomplete, errors occurred! See also "D:/MATLAB/LidarSLAM/LaserSLAM-master/LaserSLAM-master/RosCustomMessages/matlab_msg_gen_ros1/win64/build/CMakeFiles/CMakeOutput.log". Base path: D:\MATLAB\LidarSLAM\LaserSLAM-master\LaserSLAM-master\RosCustomMessages\matlab_msg_gen_ros1\win64 Source space: D:\MATLAB\LidarSLAM\LaserSLAM-master\LaserSLAM-master\RosCustomMessages\matlab_msg_gen_ros1\win64\src Build space: D:\MATLAB\LidarSLAM\LaserSLAM-master\LaserSLAM-master\RosCustomMessages\matlab_msg_gen_ros1\win64\build Devel space: D:\MATLAB\LidarSLAM\LaserSLAM-master\LaserSLAM-master\RosCustomMessages\matlab_msg_gen_ros1\win64\devel Install space: D:\MATLAB\LidarSLAM\LaserSLAM-master\LaserSLAM-master\RosCustomMessages\matlab_msg_gen_ros1\win64\install #### #### Running command: "cmake D:\MATLAB\LidarSLAM\LaserSLAM-master\LaserSLAM-master\RosCustomMessages\matlab_msg_gen_ros1\win64\src -DALIAS_ROS1_CLASS_LOADER=1 -DBoost_NAMESPACE=mwboost -DCATKIN_ENABLE_TESTING=off -DCMAKE_PREFIX_PATH=D:\MATLAB_R2023a\sys\ros1\win64\ros1;D:/MATLAB_R2023a/toolbox/ros/mlroscpp/custom_messages -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE=/MD /Od /Ob2 /DNDEBUG -DCATKIN_DEVEL_PREFIX=D:\MATLAB\LidarSLAM\LaserSLAM-master\LaserSLAM-master\RosCustomMessages\matlab_msg_gen_ros1\win64\devel -DCMAKE_INSTALL_PREFIX=D:\MATLAB\LidarSLAM\LaserSLAM-master\LaserSLAM-master\RosCustomMessages\matlab_msg_gen_ros1\win64\install -G Ninja" in "D:\MATLAB\LidarSLAM\LaserSLAM-master\LaserSLAM-master\RosCustomMessages\matlab_msg_gen_ros1\win64\build" #### Invoking "cmake" failed
  5 comentarios
宇宁 姜
宇宁 姜 el 8 de Ag. de 2023
I've tried almost all the methods found on the internet to solve this problem, but I still get this error, I chose to convert rosbags data into ".mat" format which is supported in matlab when I recorded the msg in Ubuntu, sorry I dcannot help you figure this question.
Rita_Official
Walter Roberson
Walter Roberson el 6 de Sept. de 2023
There is no "standard" language to MATLAB Answers. Mathworks provides an interface to MATLAB Answers in at least 5 different languages, with more languages due soon.
Each person can post in whatever language they feel most comfortable posting in. It is better that someone posts an good-quality question in their own language than it that they post a confusing message in English.
People might tend to get more responses if they post in English, but the policy is that people can post in their own language.

Iniciar sesión para comentar.

Respuestas (1)

wings gui
wings gui el 6 de Sept. de 2023
Editada: wings gui el 6 de Sept. de 2023
I get same error:
"UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbd in position 4319: ...."
This is because you have Chinese characters in your path (C:/Users/姜宇宁/AppData...)
However Windows cannot modify user name, You have to create a new pure English username and configure the matlab running path for the new user.the username cannot be a number begin,and cannot space,"2name 2" is error in catkin_make.
Sometimes, file"custom_messages" code int8 map #Comments in the code ,the comments cannot be like above,atleast change to #Comments_in_the_code
---------
If you are familiar with Python,you can change generate_cached_setup.py line 22, add encoding = 'utf-8'
"D:\MATLAB\LidarSLAM\LaserSLAM-master\LaserSLAM-master\RosCustomMessages\matlab_msg_gen_ros1\win64\build\catkin_generated\generate_cached_setup.py", line 22 ..."
this is because matlab call python to process file, however it not considering Chinese characters

Categorías

Más información sobre ROS Log Files and Transformations en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by