Thank you. But I've read that post before. So I use the command
BASETOOLS=~/buildtools-BaseTools-master/Bin/CYGWIN_NT-5.1-i686/ ../../spi-flash-tools_v0.7.5/Makefile capsule
to build the capsule.
I followed the steps to build the basic HelloWorld.epi. It succeeded. But When I run the command
../../spi-flash-tools_v0.7.5/Makefile capsule
the same error occurs again.
So I think maybe I'm wrong in building the BaseTools. So would mind giving me at least hints on how to build the BaseTools? I run the command make in the base directory of the BaseTools, but only the Test directory changed. I don't know why. Thank you again.