I have gcc.exe, g++.exe, make.exe, etc. in C:\MinGW\bin
In the msys2 terminal, I can say
but it does not save this change after I close the msys terminal.
A StackOverflow question says I have to edit ~/.profile
I did this by adding the line in bold:
# ~/.profile: executed by the command interpreter for login shells.
# Set user-defined locale
export LANG=$(locale -uU)
And then I ran
Still doesn't work though, the path is not set permanently; I'm still getting ./configure for libraries I try to build to output the following
No working C compiler found.
And in case this is one of those "xy problems", am I setting up msys wrong to compile projects? Is there another suggested way to do this? I got fftw3 to compile correctly using msys2 (although I think it ignored the --enable-portable-binary option, but I don't think this is a big deal) and then run correctly in windows code.
Also, just to clarify, what I am currently doing is compiling the x264 library, which is apparently needed in order to compile FFMPEG library features