简体   繁体   English

Makefile --mingw32-make.exe

[英]Makefile --mingw32-make.exe

I have this makefile and I try to run it我有这个 makefile 我尝试运行它

code : CC = gcc

all: sph2pipe create_mix

sph2pipe: sph2pipe_compiled

sph2pipe_compiled: sph2pipe_v2.5/sph2pipe

sph2pipe_v2.5/sph2pipe: | sph2pipe_v2.5
    cd sph2pipe_v2.5/; \
    $(CC) -o sph2pipe  *.c -lm

sph2pipe_v2.5: sph2pipe_v2.5.tar.gz
    tar xzf sph2pipe_v2.5.tar.gz

create_mix:
    unzip create-speaker-mixtures.zip -d create-speaker-mixtures

clean:
    rm -rf sph2pipe_v2.5/
    rm -rf create-speaker-mixtures/

I'm on windows 8.1 so i use this commande in cmd: mingw32-make.exe makefile我在 windows 8.1 所以我在 cmd 中使用这个命令:mingw32-make.exe makefile
but i have an error (( mingw32-make.exe nothing to be done for 'makefile' ))但我有一个错误((mingw32-make.exe 'makefile' 无事可做))

I try to this: mingw32-make.exe我尝试这样做:mingw32-make.exe
and i have another error我还有另一个错误
i will share a picture with the second error我将分享第二个错误的图片
误差 n2

Please cut and paste the commands you invoked and the errors you got into your question, and format it properly.请剪切并粘贴您调用的命令以及您在问题中遇到的错误,并正确格式化。 Other people with the same problems as yours cannot search a link to a picture on a remote site that may go away at any time and we can't copy content from an image.与您有相同问题的其他人无法搜索到远程站点上的图片链接,该站点可能随时离开,我们无法从图像中复制内容。

However you say you ran the command:但是你说你运行了命令:

mingw32-make.exe makefile

that is wrong.那是错的。 Make doesn't accept the name of a makefile as an argument, it accepts the name of a target you want to build. Make 不接受 makefile 的名称作为参数,它接受您要构建的目标的名称。 So this command is telling make, "please be sure the file makefile is up to date".所以这个命令告诉 make,“请确保文件makefile是最新的”。 Since it is, you get the informative message ( not an error.) telling you that.既然是这样,您就会收到信息性消息(不是错误。)告诉您。

You should just run:你应该只运行:

mingw32-make.exe

and you may or may not get a different problem.你可能会也可能不会遇到不同的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM