Page 1 of 1

'make' is not recognized as an internal or external command, operable program or batch file.

Posted: Tue Jun 29, 2021 10:06 am
by Rekog
I am trying to build the STM32 HID bootloader, but when I execute make_all.bat or even make_all_hd.bat

It shows me this error Image

What is 'make' and how can I make this command work

Re: 'make' is not recognized as an internal or external command, operable program or batch file.

Posted: Tue Jun 29, 2021 12:50 pm
by fpiSTM
http://gnuwin32.sourceforge.net/packages/make.htm
Description

Make is a tool which controls the generation of executables and other non-source files of a program from the program's source files. Make gets its knowledge of how to build your program from a file called the makefile, which lists each of the non-source files and how to compute it from other files. When you write a program, you should write a makefile for it, so that it is possible to use Make to build and install the program.

Capabilities of Make

Make enables the end user to build and install your package without knowing the details of how that is done -- because these details are recorded in the makefile that you supply.
Make figures out automatically which files it needs to update, based on which source files have changed. It also automatically determines the proper order for updating files, in case one non-source file depends on another non-source file. As a result, if you change a few source files and then run Make, it does not need to recompile all of your program. It updates only those non-source files that depend directly or indirectly on the source files that you changed.
Make is not limited to any particular language. For each non-source file in the program, the makefile specifies the shell commands to compute it. These shell commands can run a compiler to produce an object file, the linker to produce an executable, ar to update a library, or TeX or Makeinfo to format documentation.
Make is not limited to building a package. You can also use Make to control installing or deinstalling a package, generate tags tables for it, or anything else you want to do often enough to make it worth while writing down how to do it.

Re: 'make' is not recognized as an internal or external command, operable program or batch file.

Posted: Tue Jun 29, 2021 1:45 pm
by Rekog
Thanks

I have a new error else

Image

Re: 'make' is not recognized as an internal or external command, operable program or batch file.

Posted: Tue Jun 29, 2021 3:23 pm
by mrburnette
Make is one of those utilities that will require some effort to understand its use and its power. Fortunately it is documented here and numerous examples exist on the Internet and on YouTube.

Maybe: https://github.com/Serasidis/STM32_HID_ ... /issues/10 will be helpful...

But remember, "tools" must be in the %path% or you must CD into the appropriate directory to execute the utility/program.

Re: 'make' is not recognized as an internal or external command, operable program or batch file.

Posted: Wed Jun 30, 2021 9:23 am
by Rekog
I also needed to download
http://gnuwin32.sourceforge.net/packages/coreutils.htm
https://developer.arm.com/tools-and-sof ... /downloads

Since rm and arm-none-eabi-gcc commands do not exist under windows

Re: 'make' is not recognized as an internal or external command, operable program or batch file.

Posted: Wed Jun 30, 2021 9:58 am
by ag123
one way is to install / use WSL
https://docs.microsoft.com/en-us/windows/wsl/about
you could literally have 'everything in a bundle' make, compilers etc

Re: 'make' is not recognized as an internal or external command, operable program or batch file.

Posted: Wed Jun 30, 2021 10:23 am
by Rekog
ag123 wrote: Wed Jun 30, 2021 9:58 am one way is to install / use WSL
https://docs.microsoft.com/en-us/windows/wsl/about
you could literally have 'everything in a bundle' make, compilers etc
Thanks but I would like to do without it.