|
Help with Code Blocks, Allegro 5 and MinGW |
Michael Weiss
Member #223
April 2000
|
I have used Allegro for years, all the way back to DOS DJGPP and RHIDE. Most recently my tool chain includes: I just released a new version of my game I have been working years: Now I want to start using Allegro 5 and Code::Blocks I am looking through the install guides and trying to follow them https://wiki.allegro.cc/index.php?title=Windows,_Code::Blocks_and_Allegro_5 I am told repeatedly here that: However both links on this guide for MinGW just go to blank pages. When I installed Code::Blocks, the version I downloaded came with MinGW The Allegro binaries I found all seem to be built with later versions of gcc The MinGW website appears to not have been updated for a few years. Am I barking up the wrong tree here? Does anyone have any advice or can tell me how they do it? Is there a better way than the way I am attempting? I don't know anything about Code::Blocks, besides what I have read I was perfectly happy with Dev-Cpp and its DevPaks, but it seems As far as compilers go, I have no interest in any MSVC or anything Any advice or pointers would be greatly appreciated...
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
Vanilla MinGW is going the way of the dodo. MinGW-W64 is the way to go. The official binaries are made with MinGW-W64 now. Pick up the matching compiler and the dependencies and you're good to go. Allegro 5.2.4 release thread : Binaries for Allegro Allegro dependencies 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 |
Michael Weiss
Member #223
April 2000
|
Thanks, I'll try that.
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
Personally I use the posix dwarf i686 binaries. Let us know if you have any hiccups. 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 |
Michael Weiss
Member #223
April 2000
|
Can't find libwebp-7.dll These are the steps I followed: installed mingw-w64 installed code::blocks-17.12 in global compiler settings for GCC -> in project build options -> search directories for compiler in project build options -> search directories for linker in project build options -> linker settings added: This test program compiles and links successfully: #include <stdio.h> int main(int argc, char **argv){ if(!al_init()) { display = al_create_display(640, 480); al_clear_to_color(al_map_rgb(0,0,0)); al_rest(10.0); al_destroy_display(display); return 0; But when I try to run the program... missing allegro_monolith-5.2.dll missing libwinpthread-1.dll Am I missing something? In all of the mingw and allegro folders I also downloaded the dependencies, but it isn't there also Also does anyone have any advice on a sensible directory structure? I downloaded both the static and dynamic versions of allegro and Should I keep them in their own directories? Should the dependencies be kept in their own directory? Are the dependencies only for the static version? What about the compiler? In its own directory too? Does it make sense to have the dll's somewhere in PATH Please, if anyone has any advice on a sensible directory Also please help me figure out what I'm doing wrong to get Thanks
|
SiegeLord
Member #7,827
October 2006
|
Get the 5.2.4.1, it fixes the accidetal libwebp dependency. "For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18 |
Michael Weiss
Member #223
April 2000
|
Thanks, I can run it now! Still if anyone has any advice on a sensible directory structure, Thanks
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
My directory structure is usually just a bin, src, and include directory. .exes and .dlls go in bin, which usually has a sub folder for data. Source goes in src, and headers go in include. 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 |
Neil Roy
Member #2,229
April 2002
|
This version of Allegro 5 is probably the easiest to compile yourself. I recommend grabbing MinGW-W64 7.2, CMake and compiling it yourself. If I could do it (and this is the first I was able to) anyone can. Just use the GUI version of CMake to do it. I posted any problems I had and solutions in the original release thread. --- |
|