I have gcc.exe, g++.exe, make.exe, etc. in C:\MinGW\bin
In the msys2 terminal, I can say
PATH=$PATH:/c/MinGW/bin
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:
1 2 3 4 5
|
# ~/.profile: executed by the command interpreter for login shells.
# Set user-defined locale
export LANG=$(locale -uU)
export PATH=$PATH:/c/MinGW/bin
|
And then I ran
source ~/.profile
.
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
1 2
|
$ ./configure
No working C compiler found.
|
Any ideas?
Edit: And in case this is one of those "xy problems", am I setting up msys[2] 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
http://www.videolan.org/developers/x264.html
https://github.com/FFmpeg/FFmpeg/blob/master/INSTALL.md