I use a MinGW (with gcc version 4.9.3) MSYS environment and am having some trouble building allegro 4.2 from source. Here is what I have done to get things ready for building.
set environment variable MINGDIR=c:\MinGW
added export MINGDIR=/mingw to my 'c:\msys\etc\profile' file.
added allegro to the fstab
then when i launch MSYS and type
make returns this
You have to use mingw32-make instead of make, IIRC
You should be using "fix.bat", not "./fix.sh", because you're still building with MinGW.
No dice.
You used "fix.bat mingw32"?
So dibgrab doesn't build. Did the rest of the library build successfully? The examples?
Those errors indicate it is not linking with Allegro, when it shows that it is right above it (lib/mingw32/liballeg.a). Do you have old versions of allegro installed? Is MINGDIR correct?
Also, do you need to use 4.2 for some reason? DOS perhaps? If you don't, use Allegro 4.4.3 from GIT and build using CMake. It works for me on Windows 10 with MinGW 4.8.1 and CMake 3.3.2.