I decided to resurrect some of my very old Allegro code I did in Linux years ago. I'm using Allegro 5 and though it would be a piece of cake to get it going under windows..
Installing Allegro in Windows is an unmitigated disaster...
I have have Code::Blocks 16.01
I have MinGW 4.9.2 (The one that comes with Code::Blocks)
The info located at https://wiki.allegro.cc/index.php?title=Windows,_Code::Blocks_and_Allegro_5
is not very helpful.
The instructions are way out of date and when I tried to add allegro to my already active project I got nothing but compiler and linker errors.
Can help clear up what exactly is the correct way of doing this?
OK so I just tried to bite the bullet and do a full build of allegro from scratch. I uninstalled Code::Blocks entirely and I followed these instructions..
Yea these instructions are garbage too.
I can compile the dependencies, but actually compiling Allegro fails
ISSUES I FOUND.
From install of MinGW
Select the following components when prompted
MSYS basic system
You are not prompted for this. You have to select "mingw32-base" "mingw-gcc-g++" and "msys-base" from an installer application
Cmake... Install 32 bit? 64 bit? does it matter?
3. Enter "M" to select MinGW and "N" to say no to Allegro support (they mean Allegro 4, which we are not interested in)
I was never prompted for this...
From the Allegro instructions...
git checkout 5.2 <---- These is no 5.2 branch 5.2.0? 5.2.1? 5.2.2? Master?
and of course compile errors ...
C:\devel\Allegro5\src\file_stdio.c: In function 'file_stdio_ferrmsg':
C:\devel\Allegro5\src\file_stdio.c:298:7: error: unknown type name 'errno_t'
errno_t rc = strerror_s(userdata->errmsg, sizeof(userdata->errmsg),
CMakeFiles\allegro.dir\build.make:612: recipe for target 'CMakeFiles/allegro.dir/src/file_stdio.c.obj' failed
mingw32-make: *** [CMakeFiles/allegro.dir/src/file_stdio.c.obj] Error 1
CMakeFiles\Makefile2:66: recipe for target 'CMakeFiles/allegro.dir/all' failed
mingw32-make: *** [CMakeFiles/allegro.dir/all] Error 2
Makefile:128: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
Did I miss something?