Lowkus wrote: ↑
Sat May 29, 2021 11:06 pm
I think Mingw32-make.exe should be bug-fixed so it will run correctly just by typing in the full path of the exe and the full path of the target makefile. It is not intuitive that it would require adding it to the PATH variable and that it must launch from within the target makefile directory. It will create PATH pollution the way it currently sits, and if it's removed from the PATH after the compiling is finished then it becomes one more step to perform the next time the library needs to be compiled.
There is no path pollution? The commands I showed you are normally saved as a batch file which can then be executed whenever needed. No one types them in the command line, particularly as in real world, they are usually more complex
. Obviously, the PATH is modified only for the current command line session (i.e., for the batch itself), not system wide.
As for the makefile itself, files it refers (e.g., config.gcc) are searched for in the CWD as expected, so the CWD should be the folder with the makefile.
I am quite sure this is the pattern always used when building such a library, both with GCC and MSVC.
BTW, I was right about the original issue being a folder instead of path passed for a makefile. When tried I got the same error, except there was more you did not mention and which makes it clear
Code: Select all
mingw32-make: D:\Dev\Desktop\!Lib\wxWidgets-GIT\build\MSW: Permission denied
mingw32-make: *** No rule to make target 'D:\Dev\Desktop\!Lib\wxWidgets-GIT\build\MSW'. Stop.