You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
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
02_day 运行make run出错 process_begin: CreateProcess((null), copy helloos.img ..\z_tools\qemu\fdimage0.bin, ...) failed.
02_day 运行make run出错 process_begin: CreateProcess((null), copy helloos.img ..\z_tools\qemu\fdimage0.bin, ...) failed.
verifierlife
opened this issue
Dec 24, 2019
· 5 comments
在Day 2的最后运行make run时,报以下错误:
D:\makeselfos\tolset\helloos5>..\z_tools\make.exe run
../z_tools/make.exe img
make.exe[1]: Entering directory
D:/makeselfos/tolset/helloos5' ../z_tools/make.exe -r helloos.img make.exe[2]: Entering directory
D:/makeselfos/tolset/helloos5'
../z_tools/nask.exe ipl.nas ipl.bin ipl.lst
../z_tools/edimg.exe imgin:../z_tools/fdimg0at.tek
wbinimg src:ipl.bin len:512 from:0 to:0 imgout:helloos.img
make.exe[2]: Leaving directory
D:/makeselfos/tolset/helloos5' make.exe[1]: Leaving directory
D:/makeselfos/tolset/helloos5'
copy helloos.img ..\z_tools\qemu\fdimage0.bin
process_begin: CreateProcess((null), copy helloos.img ..\z_tools\qemu\fdimage0.bin, ...) failed.
make (e=2): 系统找不到指定的文件。
..\z_tools\make.exe: *** [run] Error 2
如果只是运行run,就没有出错。请问一下这是什么原因?
PS:我的Makefile文件中run的命令是这样的:
run :
../z_tools/make.exe img
copy helloos.img ..\z_tools\qemu\fdimage0.bin
../z_tools/make.exe -C ../z_tools/qemu
$(COPY) haribote.img ..\z_tools\qemu\fdimage0.bin
$(MAKE) -C ../z_tools/qemu
中的 $(COPY) haribote.img ..\z_tools\qemu\fdimage0.bin移到了
haribote.img : ipl10.bin haribote.sys Makefile
$(EDIMG) imgin:../z_tools/fdimg0at.tek
wbinimg src:ipl10.bin len:512 from:0 to:0
copy from:haribote.sys to:@:
imgout:haribote.img
$(COPY) haribote.img ..\z_tools\qemu\fdimage0.bin
中,这样的话就没有问题了。
但是第三天就出来了新的问题:
copy /B asmhead.bin+bootpack.hrb haribote.sys
process_begin: CreateProcess((null), copy /B asmhead.bin+bootpack.hrb haribote.sys, ...) failed.
make (e=2): 系统找不到指定的文件。
make.exe[2]: *** [haribote.sys] Error 2
这次的问题是出现在:
haribote.sys : asmhead.bin bootpack.hrb Makefile
copy /B asmhead.bin+bootpack.hrb haribote.sys
也是因为copy这个命令。copy /B 是将asmhead.bin与bootpack.hrb合并到haribote.sys。
有谁遇到相同问题的小伙伴一起讨论一下啊。
但是第三天就出来了新的问题:
copy /B asmhead.bin+bootpack.hrb haribote.sys
process_begin: CreateProcess((null), copy /B asmhead.bin+bootpack.hrb haribote.sys, ...) failed.
make (e=2): 系统找不到指定的文件。
make.exe[2]: *** [haribote.sys] Error 2
这次的问题是出现在:
haribote.sys : asmhead.bin bootpack.hrb Makefile
copy /B asmhead.bin+bootpack.hrb haribote.sys
也是因为copy这个命令。copy /B 是将asmhead.bin与bootpack.hrb合并到haribote.sys。
有谁遇到相同问题的小伙伴一起讨论一下啊。
可以使用cmd终端来运行。或者改成
cmd.exe /C copy ...
cmd.exe /C del ....