Page 1 of 1

Installing Allegro on Code::Blocks Mac

Posted: Sat Oct 30, 2010 5:03 pm
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?

Re: Installing Allegro on Code::Blocks Mac

Posted: Sat Oct 30, 2010 5:53 pm
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.

Re: Installing Allegro on Code::Blocks Mac

Posted: Sat Oct 30, 2010 6:09 pm
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

Re: Installing Allegro on Code::Blocks Mac

Posted: Sat Oct 30, 2010 7:41 pm
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.