Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: seanfcarney on November 03, 2012, 09:04:44 pm
-
Hey guys,
I am having trouble getting Allegro working correctly with c::b. Has anyone on here sucessfully set Allegro up on there identical system? If so, please help me out. I'm just frustrated, having never done anything like this before. From my understanding Allegro cannot be used in codeblocks with out using cmake to get things together. The file that comes with Allegro does not seem make sense to a newbie at this.
Thanks in advance for any help!
INFO
C::B 10.05
Allegro 5.0.7
Windows 7 (64bit)
Cmake 2.8.10
Here is where I am at:
- Downloaded Allegro 5.0.7 and unzipped to c:/Allegro
- Downloaded cmake, newest release
- Downloaded zlib newest release
- Downloaded libjpeg
- Downloaded FLAC
-
FYI:
The answer likely depends on the Compiler you are using.
Which you failed to state.
I am trying it now; will spend about 15 minutes on it before I give up.
I now know why you asked; the directions seem to be missing some needed information or not up to date.
The best directions I found; no time to really try the directions
http://www.cppgameprogramming.com/newforums/viewtopic.php?f=5&t=1965 (http://www.cppgameprogramming.com/newforums/viewtopic.php?f=5&t=1965)
Note: By best I do NOT mean the directions are really that good; just that the others seemed worse.
Tim S.
-
Tim,
Thanks for even attempting.
Compiler that came with my c::b is "tdm-mingw-1.908.0-4.4.1-2" in c:/codeblocks/mingw
Although I did dl Mingw 5.1.6 and it is in C:/mingw
BTW I realized it did make a code::blocks project file which I tried to compile and got this error
-------------- Build: all in ALLEGRO ---------------
Using makefile: Makefile
Execution of 'make.exe -s -f Makefile all' in 'C:\allegro-5.0.7\allegro\build' failed.
Nothing to be done.
Maybe this will help identify my problem lol.
And yes, the instructions are ambiguous to say the least.
Thanks again, in advance.
-
Tim,
Thanks for even attempting.
Compiler that came with my c::b is "tdm-mingw-1.908.0-4.4.1-2" in c:/codeblocks/mingw
Although I did dl Mingw 5.1.6 and it is in C:/mingw
BTW I realized it did make a code::blocks project file which I tried to compile and got this error
-------------- Build: all in ALLEGRO ---------------
Using makefile: Makefile
Execution of 'make.exe -s -f Makefile all' in 'C:\allegro-5.0.7\allegro\build' failed.
Nothing to be done.
Maybe this will help identify my problem lol.
And yes, the instructions are ambiguous to say the least.
Thanks again, in advance.
The error is makefile related but, I am not sure what caused it.
My only guess is the target all does not exist in the makefile.
NOTE: Having a MinGW installation in "C:/mingw" will often or always result in ALL other installations of MinGW GCC not working correctly.
Tim S.
-
Hmmm understood.
Would getting the c:/mingw working for codeblocks be a better alternative than continuing with what came with c::b?
Obviously, none of this is c::b's fault, but the allegro resources havent yielded any help. Just makes me wonder if this library is worth it, or if I should just skip to using something like opengl and going right to 3d. I guess if I understood more about compilers and linkers etc... it would help. It seems like MSVC is easier and that I could just c&p some pre compiled files into the MSVC. I just like c::b's interface.
Maybe someone on here has already gone through this misery and can enlighten me on how to get everything up and going.
Thanks for the help in advance
-
Would getting the c:/mingw working for codeblocks be a better alternative than continuing with what came with c::b?
You need to either Compile the Allegro library or download a binary of the Allegro library.
If you download a binary of the Allegro library, use the Compiler that matches the binary.
Either get rid of the c:/mingw folder or use it!!
Tim S.
-
I have never used Allegro, but was wondering if these instructions (http://wiki.allegro.cc/index.php?title=Windows_Vista,_Code::Blocks_10.05_and_Allegro_5) are of any use.
Edit: and build steps (http://wiki.allegro.cc/index.php?title=Building_Allegro_5.1_%28rev_15032%29_Windows_7).
-
On Allegro's download site they have some precompiled binaries (none for the compiler that came with c::b 10.05). I want to see if the tdm binary(4.6.1 tdm mingw) they have will be reverse compatible with the 4.4.2 mingw tdm that came with c::b. Otherwise, I'll be going right to that windows 7 build instructions cause they actually seem.
Thanks in advance for any help!
Sean
-
Okay guys, school has had me pretty busy. I will be attempting to get Allegro going with C::B this weekend.
I'll be using this config:
Windows 7 (64)
Code::blocks 10.05
Mingw TDM 4.7.1
If I can get everything working (or not) ill post back and let you guys know.
If I can get it working, I assume I could pass the binaries onto anyone on here who is interested(???).
Thanks for help guys