Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catkin_make缺少文件报错 #25

Open
zz0350 opened this issue Jul 22, 2024 · 10 comments
Open

catkin_make缺少文件报错 #25

zz0350 opened this issue Jul 22, 2024 · 10 comments

Comments

@zz0350
Copy link

zz0350 commented Jul 22, 2024

在catkin_make的时候报了以下的错误:


/home/zhouzhou/catkin_ws/src/RACER/swarm_exploration/utils/lkh_tsp_solver/src2/tsp_node.cpp:6:10: fatal error: lkh_tsp_solver/SolveTSP.h: No such file or directory
#include <lkh_tsp_solver/SolveTSP.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
RACER/swarm_exploration/utils/lkh_tsp_solver/CMakeFiles/tsp_node.dir/build.make:2582: recipe for target 'RACER/swarm_exploration/utils/lkh_tsp_solver/CMakeFiles/tsp_node.dir/src2/tsp_node.cpp.o' failed
make[2]: *** [RACER/swarm_exploration/utils/lkh_tsp_solver/CMakeFiles/tsp_node.dir/src2/tsp_node.cpp.o] Error 1
CMakeFiles/Makefile2:3021: recipe for target 'RACER/swarm_exploration/utils/lkh_tsp_solver/CMakeFiles/tsp_node.dir/all' failed
make[1]: *** [RACER/swarm_exploration/utils/lkh_tsp_solver/CMakeFiles/tsp_node.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /home/zhouzhou/catkin_ws/src/RACER/swarm_exploration/plan_env/src/sdf_map.cpp:3:0:
/home/zhouzhou/catkin_ws/src/RACER/swarm_exploration/plan_env/include/plan_env/multi_map_manager.h:7:10: fatal error: plan_env/ChunkStamps.h: No such file or directory
#include <plan_env/ChunkStamps.h>
^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
RACER/swarm_exploration/plan_env/CMakeFiles/plan_env.dir/build.make:62: recipe for target 'RACER/swarm_exploration/plan_env/CMakeFiles/plan_env.dir/src/sdf_map.cpp.o' failed
make[2]: *** [RACER/swarm_exploration/plan_env/CMakeFiles/plan_env.dir/src/sdf_map.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/zhouzhou/catkin_ws/src/RACER/swarm_exploration/plan_env/src/multi_map_manager.cpp:2:0:
/home/zhouzhou/catkin_ws/src/RACER/swarm_exploration/plan_env/include/plan_env/multi_map_manager.h:7:10: fatal error: plan_env/ChunkStamps.h: No such file or directory
#include <plan_env/ChunkStamps.h>
^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
RACER/swarm_exploration/plan_env/CMakeFiles/plan_env.dir/build.make:182: recipe for target 'RACER/swarm_exploration/plan_env/CMakeFiles/plan_env.dir/src/multi_map_manager.cpp.o' failed
make[2]: *** [RACER/swarm_exploration/plan_env/CMakeFiles/plan_env.dir/src/multi_map_manager.cpp.o] Error 1
In file included from /home/zhouzhou/catkin_ws/src/RACER/swarm_exploration/plan_env/src/map_ros.cpp:3:0:
/home/zhouzhou/catkin_ws/src/RACER/swarm_exploration/plan_env/include/plan_env/multi_map_manager.h:7:10: fatal error: plan_env/ChunkStamps.h: No such file or directory
#include <plan_env/ChunkStamps.h>
^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
RACER/swarm_exploration/plan_env/CMakeFiles/plan_env.dir/build.make:158: recipe for target 'RACER/swarm_exploration/plan_env/CMakeFiles/plan_env.dir/src/map_ros.cpp.o' failed
make[2]: *** [RACER/swarm_exploration/plan_env/CMakeFiles/plan_env.dir/src/map_ros.cpp.o] Error 1
CMakeFiles/Makefile2:3938: recipe for target 'RACER/swarm_exploration/plan_env/CMakeFiles/plan_env.dir/all' failed
make[1]: *** [RACER/swarm_exploration/plan_env/CMakeFiles/plan_env.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed


以上的错误看起来像是git仓库中缺少了部分文件,但是我又不知道该怎么获得这些文件

@Hewiex
Copy link

Hewiex commented Nov 6, 2024

我也遇到了这个问题,请问解决了吗

@Zager-Zhang
Copy link
Member

近期更新的代码应该已经修复了这个问题,按照readme安装应该可以顺利通过的,请问你现在还会遇到这个问题吗 @Hewiex

@Hewiex
Copy link

Hewiex commented Nov 7, 2024

近期更新的代码应该已经修复了这个问题,按照readme安装应该可以顺利通过的,请问你现在还会遇到这个问题吗 @Hewiex

@Zager-Zhang 您好,我是按照readME 一步步安装的,确实出现了这个问题。重新试过好几次,还是有问题。

@Hewiex
Copy link

Hewiex commented Nov 7, 2024

@Zager-Zhang 错误提示如下:

[ 68%] Generating EusLisp manifest code for lkh_tsp_solver
/home/hewie/桌面/RACER/src/RACER/swarm_exploration/utils/lkh_tsp_solver/src2/tsp_node.cpp:6:10: fatal error: lkh_tsp_solver/SolveTSP.h: 没有那个文件或目录
6 | #include <lkh_tsp_solver/SolveTSP.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [RACER/swarm_exploration/utils/lkh_tsp_solver/CMakeFiles/tsp_node.dir/build.make:1428:RACER/swarm_exploration/utils/lkh_tsp_solver/CMakeFiles/tsp_node.dir/src2/tsp_node.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:3127:RACER/swarm_exploration/utils/lkh_tsp_solver/CMakeFiles/tsp_node.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务....
[ 68%] Built target lkh_tsp_solver_generate_messages_eus
make: *** [Makefile:141:all] 错误 2
Invoking "make -j2 -l2" failed

@Hewiex
Copy link

Hewiex commented Nov 7, 2024

@Zager-Zhang 错误提示如下:

[ 68%] Generating EusLisp manifest code for lkh_tsp_solver /home/hewie/桌面/RACER/src/RACER/swarm_exploration/utils/lkh_tsp_solver/src2/tsp_node.cpp:6:10: fatal error: lkh_tsp_solver/SolveTSP.h: 没有那个文件或目录 6 | #include <lkh_tsp_solver/SolveTSP.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [RACER/swarm_exploration/utils/lkh_tsp_solver/CMakeFiles/tsp_node.dir/build.make:1428:RACER/swarm_exploration/utils/lkh_tsp_solver/CMakeFiles/tsp_node.dir/src2/tsp_node.cpp.o] 错误 1 make[1]: *** [CMakeFiles/Makefile2:3127:RACER/swarm_exploration/utils/lkh_tsp_solver/CMakeFiles/tsp_node.dir/all] 错误 2 make[1]: *** 正在等待未完成的任务.... [ 68%] Built target lkh_tsp_solver_generate_messages_eus make: *** [Makefile:141:all] 错误 2 Invoking "make -j2 -l2" failed

对于这个问题,我切换到英文目录home/hewie/Desktop/RACER/后,得到解决

1 similar comment
@Hewiex
Copy link

Hewiex commented Nov 7, 2024

@Zager-Zhang 错误提示如下:

[ 68%] Generating EusLisp manifest code for lkh_tsp_solver /home/hewie/桌面/RACER/src/RACER/swarm_exploration/utils/lkh_tsp_solver/src2/tsp_node.cpp:6:10: fatal error: lkh_tsp_solver/SolveTSP.h: 没有那个文件或目录 6 | #include <lkh_tsp_solver/SolveTSP.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [RACER/swarm_exploration/utils/lkh_tsp_solver/CMakeFiles/tsp_node.dir/build.make:1428:RACER/swarm_exploration/utils/lkh_tsp_solver/CMakeFiles/tsp_node.dir/src2/tsp_node.cpp.o] 错误 1 make[1]: *** [CMakeFiles/Makefile2:3127:RACER/swarm_exploration/utils/lkh_tsp_solver/CMakeFiles/tsp_node.dir/all] 错误 2 make[1]: *** 正在等待未完成的任务.... [ 68%] Built target lkh_tsp_solver_generate_messages_eus make: *** [Makefile:141:all] 错误 2 Invoking "make -j2 -l2" failed

对于这个问题,我切换到英文目录home/hewie/Desktop/RACER/后,得到解决

@Zager-Zhang
Copy link
Member

嗷,你一开始是中文路径是这个意思吗 ,那现在切换到英文路径就已经解决了吗 @Hewiex

@ClockZinc
Copy link

@Zager-Zhang 我这边使用英文路径同样报错
/home/chinatowns/catkin_ws/src/RACER/swarm_exploration/utils/lkh_tsp_solver/src2/tsp_node.cpp:6:10: fatal error: lkh_tsp_solver/SolveTSP.h: 没有那个文件或目录
6 | #include <lkh_tsp_solver/SolveTSP.h>
这个文件我在相关目录中并不能够找到

@ClockZinc
Copy link

定位到bug了,这里不合理地出现了一个test_node文件的add_executable,可能是测试用的遗留下来的东西。将其注释后报错解决
image

@Zager-Zhang
Copy link
Member

好的,感谢反馈,我们排查一下问题 Thanks♪(・ω・)ノ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants