Author Topic: c::b + Allegro 5.0.7 + Windows 7  (Read 7363 times)

Offline seanfcarney

  • Single posting newcomer
  • *
  • Posts: 5
c::b + Allegro 5.0.7 + Windows 7
« 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


Offline stahta01

  • Lives here!
  • ****
  • Posts: 6613
    • My Best Post
Re: c::b + Allegro 5.0.7 + Windows 7
« Reply #1 on: November 03, 2012, 11:47:24 pm »
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

Note: By best I do NOT mean the directions are really that good; just that the others seemed worse.

Tim S.
« Last Edit: November 04, 2012, 12:08:30 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline seanfcarney

  • Single posting newcomer
  • *
  • Posts: 5
Re: c::b + Allegro 5.0.7 + Windows 7
« Reply #2 on: November 04, 2012, 02:40:10 am »
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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6613
    • My Best Post
Re: c::b + Allegro 5.0.7 + Windows 7
« Reply #3 on: November 04, 2012, 02:48:56 am »
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.

« Last Edit: November 04, 2012, 03:50:42 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline seanfcarney

  • Single posting newcomer
  • *
  • Posts: 5
Re: c::b + Allegro 5.0.7 + Windows 7
« Reply #4 on: November 04, 2012, 04:08:57 am »
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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6613
    • My Best Post
Re: c::b + Allegro 5.0.7 + Windows 7
« Reply #5 on: November 04, 2012, 04:39:02 am »
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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: c::b + Allegro 5.0.7 + Windows 7
« Reply #6 on: November 04, 2012, 04:39:51 am »
I have never used Allegro, but was wondering if these instructions are of any use.

Edit: and build steps.
« Last Edit: November 04, 2012, 04:42:04 am by Alpha »

Offline seanfcarney

  • Single posting newcomer
  • *
  • Posts: 5
Re: c::b + Allegro 5.0.7 + Windows 7
« Reply #7 on: November 04, 2012, 04:18:13 pm »
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

Offline seanfcarney

  • Single posting newcomer
  • *
  • Posts: 5
Re: c::b + Allegro 5.0.7 + Windows 7
« Reply #8 on: November 09, 2012, 02:58:32 pm »
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