DroidAITech / ROS-Academy-for-Beginners

中国大学MOOC《机器人操作系统入门》课程代码示例
2.3k stars 779 forks source link

Invoking "make -j4 -l4" failed #25

Open gyhlearner opened 5 years ago

gyhlearner commented 5 years ago

Base path: /home/gyh/catkin_ws2 Source space: /home/gyh/catkin_ws2/src Build space: /home/gyh/catkin_ws2/build Devel space: /home/gyh/catkin_ws2/devel Install space: /home/gyh/catkin_ws2/install

Running command: "make cmake_check_build_system" in "/home/gyh/catkin_ws2/build"

Running command: "make -j4 -l4" in "/home/gyh/catkin_ws2/build"

make[2]: No rule to make target 'param_demo/CMakeFiles/param_demo.dir/build'. Stop. CMakeFiles/Makefile2:907: recipe for target 'param_demo/CMakeFiles/param_demo.dir/all' failed make[1]: [param_demo/CMakeFiles/param_demo.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed

老师,您好。 在学习到service和param的程序编写时,编写工作完成进行caikin_make编译时,总是出现这样的错误。之前编译topic_demo时没有问题。我将在这里下载的包中的cpp\cmakelist\package等文件都复制过去我的workspace中进行编译,依旧是这样的错误提示。 困扰了很多天尝试解决均无果。希望可以得到老师的指点。 谢谢老师!

randomchuan commented 5 years ago

我遇到了类似的问题,个人愚见如下:如果你安装了anaconda,或者升级了Python版本,那么可能问题是Python版本太高了,anaconda参考这个https://github.com/DroidAITech/ROS-Academy-for-Beginners/issues/27,切换了Python版本,那就自行百度Ubuntu下切换Python版本,如果都不是,或者还是报错,那我也不清楚了