[STM32G4] 错误No rule to make target `all'. Stop.

[复制链接]
119|4
石榴大王 发表于 2025-10-30 13:54 | 显示全部楼层 |阅读模式
我将一个项目导入到项目树视图中(通过导入功能),构建项目时出现了这个错误:
10:35:43 **** Incremental Build of configuration Default for project pedscan ****
make all
make: *** No rule to make target `all'. Stop.
"make all" terminated with exit code 2. Build might be incomplete.
10:35:43 Build Failed. 1 errors, 0 warnings. (took 128ms)

Debug 目录下有一个 Makefile。
当我在终端的那个 Debug 目录中执行 “make all” 时,make all 能正常运行。看起来是目标配置不正确?

海滨消消 发表于 2025-10-30 14:24 | 显示全部楼层
项目路径有没有包含特殊字符或空格
classroom 发表于 2025-10-30 15:24 | 显示全部楼层
重新生成Makefile
cr315 发表于 2025-10-30 16:25 | 显示全部楼层
清理重建项目
duo点 发表于 2025-10-30 17:26 | 显示全部楼层
升级CubeIDE,检查 ARM GCC 编译器、ST-Link 驱动等是否为最新版本
您需要登录后才可以回帖 登录 | 注册

本版积分规则

63

主题

63

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部