필터 지우기
필터 지우기

An error occurs when generating a custom message using rosgenmsg.

조회 수: 3 (최근 30일)
승환 김
승환 김 2022년 3월 21일
댓글: 승환 김 2022년 3월 25일
An error occurs when generating a custom message using rosgenmsg.
The error is as follows.
ThemeCopy
>> rosgenmsg('/root/mavros_msgs/')
Identifying message files in folder '/root/mavros_msgs'..Done.
Validating message files in folder '/root/mavros_msgs'..Done.
[0/1] Generating MATLAB interfaces for custom message packages... 0%Error using ros.internal.utilities.getCMakeBinaryPath (line 24)
Could not find CMake in your system. Please install CMake version 3.15.5 or higher and rerun the command.
Error in ros.internal.CatkinBuilder.getCMakePath (line 82)
[aPath, aVersion] = ros.internal.utilities.getCMakeBinaryPath(ros.internal.CatkinBuilder.CMAKEMINVERSION);
Error in ros.internal.ROSProjectBuilder (line 391)
h.CMakePath = h.getCMakePath();
Error in ros.internal.CatkinBuilder (line 24)
h@ros.internal.ROSProjectBuilder(varargin{:});
Error in rosgenmsg (line 223)
builder = ros.internal.CatkinBuilder(genDir, pkgInfos{iPkg});
However, I have already installed cmake 3.20.5.
However, matlab does not seem to recognize the cmake installed on the desktop.
ThemeCopy
>> !which cmake
/usr/local/bin/cmake
>> !cmake version
cmake: /usr/local/MATLAB/R2020b/sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by cmake)
The above error occurs when checking the cmake version in the matlab command window.
Can you help me?
I run matlab in docker, ubuntu 20.04, cmake 3.20.5, python2.7 environment.
and matlab version is 2020b

답변 (1개)

Cam Salzberger
Cam Salzberger 2022년 3월 21일
There were several people with the same or a similar issue, and the solutions that worked for them, in this answer thread. Please check that out and try some of the solutions that worked for others.
-Cam
  댓글 수: 3
Cam Salzberger
Cam Salzberger 2022년 3월 23일
You can also contact Technical Support. They should be able to help better with knowledge of your specific system, what you have tried, and actively troubleshooting with you.
승환 김
승환 김 2022년 3월 25일
thank you. However, when I changed it to 2021b version, the problem was solved.

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

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by