이거 무슨에러인가요
페이지 정보
본문
CMake Error at /usr/share/cmake-3.25/Modules/CMakeTestCCompiler.cmake:70 (message):
The C compiler
"/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/yjy5126/ros_colcon_ws/build/osrf_testing_tools_cpp/CMakeFiles/CMakeScratch/TryCompile-JX2PtU
Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_b8aef/fast && /usr/bin/gmake -f CMakeFiles/cmTC_b8aef.dir/build.make CMakeFiles/cmTC_b8aef.dir/build
gmake[1]: Entering directory '/home/yjy5126/ros_colcon_ws/build/osrf_testing_tools_cpp/CMakeFiles/CMakeScratch/TryCompile-JX2PtU'
Building C object CMakeFiles/cmTC_b8aef.dir/testCCompiler.c.o
/usr/bin/cc -o CMakeFiles/cmTC_b8aef.dir/testCCompiler.c.o -c /home/yjy5126/ros_colcon_ws/build/osrf_testing_tools_cpp/CMakeFiles/CMakeScratch/TryCompile-JX2PtU/testCCompiler.c
Linking C executable cmTC_b8aef
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b8aef.dir/link.txt --verbose=1
/usr/bin/cc -latomic -lpython3.7m CMakeFiles/cmTC_b8aef.dir/testCCompiler.c.o -o cmTC_b8aef
/usr/bin/ld: cannot find -lpython3.7m: No such file or directory
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_b8aef.dir/build.make:99: cmTC_b8aef] Error 1
gmake[1]: Leaving directory '/home/yjy5126/ros_colcon_ws/build/osrf_testing_tools_cpp/CMakeFiles/CMakeScratch/TryCompile-JX2PtU'
gmake: *** [Makefile:127: cmTC_b8aef/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
---
Failed <<< osrf_testing_tools_cpp [4.67s, exited with code 1]
Aborted <<< ament_package [20.2s]
Aborted <<< ament_lint [20.5s]
Aborted <<< ament_cppcheck [20.8s]
Summary: 1 package finished [33.2s]
1 package failed: osrf_testing_tools_cpp
3 packages aborted: ament_cppcheck ament_lint ament_package
1 package had stderr output: osrf_testing_tools_cpp
196 packages not processed
[Environment setup]
[Make the colcon workspace and test the colcon build]
Starting >>> stella_description
Starting >>> stella_ahrs
Starting >>> stella_md
Starting >>> stella_teleop_bluetooth
/usr/lib/python3/dist-packages/setuptools/dist.py:775: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/dist.py:775: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
warnings.warn(
--- stderr: stella_ahrs
CMake Error at CMakeLists.txt:18 (find_package):
By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"ament_cmake", but CMake did not find one.
Could not find a package configuration file provided by "ament_cmake" with
any of the following names:
ament_cmakeConfig.cmake
ament_cmake-config.cmake
Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
"ament_cmake_DIR" to a directory containing one of the above files. If
"ament_cmake" provides a separate development package or SDK, be sure it
has been installed.
---
Failed <<< stella_ahrs [3.99s, exited with code 1]
사이트에서 직접 명령어 복사해서 라즈베리파이4에 터미널 명령어 넣었는데 이런코드가 뜨는데 진짜 장난아니고 4시간째 설치 오류만 계속 나는데 무슨문제인지 화가나네요 정말로 구동할때도 파일이 없다고 하고 설명서 제대로 안써주고 코드도 최신인지도 모르겠고 뭐 어떻게하라고하는지 잘 모르겠네요
The C compiler
"/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/yjy5126/ros_colcon_ws/build/osrf_testing_tools_cpp/CMakeFiles/CMakeScratch/TryCompile-JX2PtU
Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_b8aef/fast && /usr/bin/gmake -f CMakeFiles/cmTC_b8aef.dir/build.make CMakeFiles/cmTC_b8aef.dir/build
gmake[1]: Entering directory '/home/yjy5126/ros_colcon_ws/build/osrf_testing_tools_cpp/CMakeFiles/CMakeScratch/TryCompile-JX2PtU'
Building C object CMakeFiles/cmTC_b8aef.dir/testCCompiler.c.o
/usr/bin/cc -o CMakeFiles/cmTC_b8aef.dir/testCCompiler.c.o -c /home/yjy5126/ros_colcon_ws/build/osrf_testing_tools_cpp/CMakeFiles/CMakeScratch/TryCompile-JX2PtU/testCCompiler.c
Linking C executable cmTC_b8aef
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b8aef.dir/link.txt --verbose=1
/usr/bin/cc -latomic -lpython3.7m CMakeFiles/cmTC_b8aef.dir/testCCompiler.c.o -o cmTC_b8aef
/usr/bin/ld: cannot find -lpython3.7m: No such file or directory
collect2: error: ld returned 1 exit status
gmake[1]: *** [CMakeFiles/cmTC_b8aef.dir/build.make:99: cmTC_b8aef] Error 1
gmake[1]: Leaving directory '/home/yjy5126/ros_colcon_ws/build/osrf_testing_tools_cpp/CMakeFiles/CMakeScratch/TryCompile-JX2PtU'
gmake: *** [Makefile:127: cmTC_b8aef/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
---
Failed <<< osrf_testing_tools_cpp [4.67s, exited with code 1]
Aborted <<< ament_package [20.2s]
Aborted <<< ament_lint [20.5s]
Aborted <<< ament_cppcheck [20.8s]
Summary: 1 package finished [33.2s]
1 package failed: osrf_testing_tools_cpp
3 packages aborted: ament_cppcheck ament_lint ament_package
1 package had stderr output: osrf_testing_tools_cpp
196 packages not processed
[Environment setup]
[Make the colcon workspace and test the colcon build]
Starting >>> stella_description
Starting >>> stella_ahrs
Starting >>> stella_md
Starting >>> stella_teleop_bluetooth
/usr/lib/python3/dist-packages/setuptools/dist.py:775: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/dist.py:775: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
warnings.warn(
--- stderr: stella_ahrs
CMake Error at CMakeLists.txt:18 (find_package):
By not providing "Findament_cmake.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"ament_cmake", but CMake did not find one.
Could not find a package configuration file provided by "ament_cmake" with
any of the following names:
ament_cmakeConfig.cmake
ament_cmake-config.cmake
Add the installation prefix of "ament_cmake" to CMAKE_PREFIX_PATH or set
"ament_cmake_DIR" to a directory containing one of the above files. If
"ament_cmake" provides a separate development package or SDK, be sure it
has been installed.
---
Failed <<< stella_ahrs [3.99s, exited with code 1]
사이트에서 직접 명령어 복사해서 라즈베리파이4에 터미널 명령어 넣었는데 이런코드가 뜨는데 진짜 장난아니고 4시간째 설치 오류만 계속 나는데 무슨문제인지 화가나네요 정말로 구동할때도 파일이 없다고 하고 설명서 제대로 안써주고 코드도 최신인지도 모르겠고 뭐 어떻게하라고하는지 잘 모르겠네요
- 다음글관리자님 안녕하세요 stella n3 에 관해서 여쭤봅니다. 25.01.11
댓글목록
최고관리자님의 댓글
최고관리자 작성일
안녕하세요.
아이디어 로봇입니다.
우선 지난번에도 말씀 드렸듯이 STELLA는 리눅스와 ROS의 기초는 알고 계셔야 사용이 가능한 로봇 플랫폼입니다.
보내주신 로그를 확인해 보았을 때 colcon build 명령어를 잘못된 경로에서 실행하신 것으로 보입니다.
또한 에러 로그는 기본 패키지가 설치되지 않았다는 로그입니다.
기본 패키지 설치는 너무 기초적인 부분이어서 저희가 안내 드릴 수 없습니다.
기초적인 부분은 먼저 공부하여 주셔야 합니다.