【问题标题】:Writing assembly code for raspberry Pi, MinGW error为树莓派编写汇编代码,MinGW 错误
【发布时间】:2017-02-25 15:41:15
【问题描述】:

我正在关注this tutorial,我已经到了需要“制作”已编译图像才能将其放入 pi 的地步,但出现以下错误:

mkdir build/
The syntax of the command is incorrect.
Makefile:57: recipe for target 'build/' failed
mingw32-make: *** [build/] Error 1

makefile 在模板中可用here。第 56 + 57 行如下所示:

$(BUILD):
    mkdir $@

谁能告诉我出了什么问题以及如何解决?我是新手,并按照分步指南进行操作:/ 谢谢!

【问题讨论】:

  • 如果你只是在windows命令行中输入mkdir build/呢?您仍然收到错误消息吗?
  • 谢谢你的提示,我试过了,因为斜线不正确。所以我纠正了它,它的工作原理!

标签: makefile raspberry-pi mingw


【解决方案1】:

感谢 igagis 的评论,我发现了问题所在:mkdir build/ 是不正确的命令,因为斜线符号“/”。 在make文件中,变量target被定义为:BUILD = build/,因为它后来被用作路径。我将第 57 行固定如下:

$(BUILD):
    mkdir build

现在代码按预期编译。

【讨论】:

    猜你喜欢
    • 2018-11-16
    • 2017-12-07
    • 2017-10-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-02
    • 2017-06-19
    相关资源
    最近更新 更多