~을(를) 만들 규칙이 없습니다. 멈춤. 현상에 관한 문의

3,012 views
Skip to first unread message

원준

unread,
Jul 26, 2020, 12:47:21 PM7/26/20
to 한국 ROS 사용자
[100%] Built target f1tenth_simulator_generate_messages_py
make[2]: *** 타겟 'f1tenth_simulator/CMakeFiles/JJJ.dir/build'을(를) 만들 규칙이 없습니다.  멈춤.
CMakeFiles/Makefile2:2832: recipe for target 'f1tenth_simulator/CMakeFiles/JJJ.dir/all' failed
make[1]: *** [f1tenth_simulator/CMakeFiles/JJJ.dir/all] Error 2
make[1]: *** 끝나지 않은 작업을 기다리고 있습니다....
[100%] Built target f1tenth_simulator_generate_messages
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j2 -l2" failed

f1tenth simulator를 구동하려는데, 위와 같은 문제가 발생했습니다. 새로운 node를 C++로 만들고(jjj.cpp) 이를 CMakeLists.txt 등에 모두 반영한 뒤 ~/catkin_ws에서 catkin_make를 실행했는데 위와 같은 문제가 발생했습니다.

CMakeLists.txt를 수정하는 과정에서 잘못된 점이 있었던 걸까요?

위와 같은 오류에도 불구하고 roslaunch를 사용해서 시뮬레이터를 구동할 수 있었으며,  이 때에는 다음과 같은 오류로 인해 해당 node만 구동할 수 없고 원래 존재하던 다른 node들은 제대로 작동합니다.

ERROR: cannot launch node of type [f1tenth_simulator/jjj]: Cannot locate node of type [jjj] in package [f1tenth_simulator]. Make sure file exists in package path and permission is set to executable (chmod +x)

(Ubuntu 18.04 LTS, ROS Melodic입니다.)

김성연

unread,
Jul 27, 2020, 4:49:18 AM7/27/20
to 한국 ROS 사용자
안녕하세요!

에러 코드 보시면 접근 권한이 없어서 그런거 같습니다.

해당 파일이 있는 경로로 가신후에 터미널창에

chmod +x jjj.cpp

혹은

chmod 777 jjj.cpp

를 통해서 접근 권한을 변경해주시고 다시 시도해보시면 될것같습니다!

원준

unread,
Jul 28, 2020, 9:45:56 AM7/28/20
to 한국 ROS 사용자
답변 감사드립니다. 다시 살펴본 결과 catkin_ws/devel/lib와 catkin_ws/src에 똑같은 이름의 디렉토리(패키지)가 있어 혼동한 결과 + CMakeList.txt의 작성 방법(syntax)에 대해 잘 몰랐던 결과로 발생한 오류인 것 같습니다. 현재는 문제가 해결되었습니다.
2020년 7월 27일 월요일 오후 5시 49분 18초 UTC+9에 cnun...@gmail.com님이 작성:
Reply all
Reply to author
Forward
0 new messages