Installing Allegro on Code::Blocks Mac

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
Techtronic7
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 23
Joined: Thu Jun 10, 2010 4:17 pm
Programming Language of Choice: C++

Installing Allegro on Code::Blocks Mac

Post by Techtronic7 »

How on Earth do you install Allegro (or ANY api for that matter) on a mac? I have looked everywhere and it appears that I'm the only moron that cant figure this out. Dev-C++ was very straight forward and then I bought this new mac and couldnt do anything at all with it. Can anyone help me with this?
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: Installing Allegro on Code::Blocks Mac

Post by avansc »

I don't know if you know this, but apple has a IDE called Xcode, which is very good, and its free.

as for allegro.

you have two options,(probably more)

1. Download mac ports, http://www.macports.org/

Code: Select all

avansc@research ~
$ port search allegro
allegro @4.4.1.1 (devel, games)
    A game programming library for C/C++ developers.

swig-allegro @2.0.1 (devel, lang)
    Allegro binding for swig

Found 2 ports.
you would use, "sudo port install allegro" to install it.

2. And this is the one I would recommend, Download the source and compile it your self, that way you have the latest version, and you know its 100 percent compatible with your build.


note: I'm getting the feeling that you might not be technically ready for 2, so perhaps 1 is your best bet. you still need to know how to link libraries. you can check out my youtube channel, there should be some videos on there.

If you really get stuck let me know, and we can have a teamview session and see if we can build allegro into a framework on your mac.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
Techtronic7
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 23
Joined: Thu Jun 10, 2010 4:17 pm
Programming Language of Choice: C++

Re: Installing Allegro on Code::Blocks Mac

Post by Techtronic7 »

Well, I have XCode but honestly, I cant stand it. Its very hard to use after using Dev for about a year. As for compiling allegro myself, I have no idea how i would do that
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: Installing Allegro on Code::Blocks Mac

Post by avansc »

Well to each his own, but you are using a outdated, sub par ide. that ultimates is counter productive.


Anyways, well just install mac ports, then install allegro. it will or rather should just be static libs that you can link to your program.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
Post Reply