![]() |
|
Installing Allegro in Code::Bocks - It shouldn't be this hard! |
nshade
Member #4,372
February 2004
|
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 The info located at https://wiki.allegro.cc/index.php?title=Windows,_Code::Blocks_and_Allegro_5 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.. https://wiki.allegro.cc/index.php?title=Install_Allegro5_From_Git/Windows Yea these instructions are garbage too. I can compile the dependencies, but actually compiling Allegro fails ISSUES I FOUND. From install of MinGW C Compiler Cmake... Install 32 bit? 64 bit? does it matter? DUMB: From the Allegro instructions... and of course compile errors ... C:\devel\Allegro5\src\file_stdio.c: In function 'file_stdio_ferrmsg': Did I miss something? |
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
Hello nshade. Installing from binariesThe page at https://wiki.allegro.cc/index.php?title=Windows,_Code::Blocks_and_Allegro_5 tells you exactly what you need to know if you read it carefully enough. Step 1. Working MinGW install. See here : Step 2. Download Allegro binaries that match the exact version of your MinGW compiler. Not all compilers have binaries available! Our resources are limited as far as binary distros are concerned. If you download the MinGW compiler and the binaries from here : https://wiki.allegro.cc/index.php?title=Unofficial_MinGW_Binaries you will have everything you need to compile an Allegro 5 program. Step 3. Configure your CodeBlocks project as shown in the first link. Step 4. Report what went wrong. Tell me the exact steps needed to reproduce the problem you are having. EDIT Compiling Allegro itselfAs I said before, MinGW.org is out of date. They are severely behind everyone else in terms of features and modern C and C++ support. Don't use MinGW from there. Use TDM-GCC or MinGW-W64 or MSYS2 or something. As for this page (https://wiki.allegro.cc/index.php?title=Install_Allegro5_From_Git/Windows) it is out of date, and for that I apologize. I'll try to update it over the next few days. For now, just use the binaries. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
nshade
Member #4,372
February 2004
|
I didn't me to come off as a Bratty Betty. I was just getting super frustrated. I used the MinGW in the instructions, which is MinGW 6.3.0 but it looks like it's just the 32 bit version. You may want to update that link to https://sourceforge.net/projects/mingw-w64/?source=directory which is the 64 bit version. You know what. I'm on a mission now.. I'm going to compile this thing from scratch and get it running in Code::Blocks even if it kills me As a note - There are some packages in the a A5_Sourcepackage.zip that already have a "build" folder in them. these need to be renamed to "build.old" and a new empty build folder created. Once I get the build proecess down, I will be making a Youtube video of this for others. |
Edgar Reynaldo
Major Reynaldo
May 2007
![]() |
If you're going to compile allegro 5, let me help you out. The source deps package is way out of date. There are bugs in physfs, and libtheora, as well as dynamic build script problems with enet. Let me upload a new source pack with all the updated dependencies source code. Give me a few minutes to put it together. This is the correct directory to download mingw from : Here is a new archive of the A5 source dependency source code : EDIT My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|