Code::Blocks Forums

User forums => Help => Topic started by: chewanater on May 07, 2009, 09:45:43 pm

Title: Ubuntu Nightly Build
Post by: chewanater on May 07, 2009, 09:45:43 pm
I want to use the Allegro devpak, and it seems that it's only available in the nightly build.  Is there somewhere where I can get the nightly build binaries for Ubuntu?

If there isn't, is there somewhere to get the devpak importer plugin to use with the stable version?

If there isn't, is there somewhere where I can get Allegro for codeblocks?
Title: Re: Ubuntu Nightly Build
Post by: thomas on May 07, 2009, 11:46:24 pm
Don't know about that devpak, but apt-get install codeblocks will install a nightly build. It is wrongly labelled 8.02, but it's still a nightly build from about 2 weeks ago, don't know why.

I think that you should be able to trivially install allegro-dev via apt-get too, no need for any devpaks.
Title: Re: Ubuntu Nightly Build
Post by: chewanater on May 09, 2009, 01:51:09 am
I have it installed and I got Allegro installed, but when I try to use Allegro functions it says "undeclared', and opens the allegro header file. I can put "#include<allegro.h>" at the beginning and it still compiles. I tried going to project properties> libraries, but I couldn't find allegro.  What should I do?
Title: Re: Ubuntu Nightly Build
Post by: Jenna on May 09, 2009, 10:23:56 am
I have it installed and I got Allegro installed, but when I try to use Allegro functions it says "undeclared', and opens the allegro header file. I can put "#include<allegro.h>" at the beginning and it still compiles. I tried going to project properties> libraries, but I couldn't find allegro.  What should I do?

Add it !
Title: Re: Ubuntu Nightly Build
Post by: chewanater on May 10, 2009, 02:58:29 am
I have it installed and I got Allegro installed, but when I try to use Allegro functions it says "undeclared', and opens the allegro header file. I can put "#include<allegro.h>" at the beginning and it still compiles. I tried going to project properties> libraries, but I couldn't find allegro.  What should I do?

Add it !

Add what?
Title: Re: Ubuntu Nightly Build
Post by: Jenna on May 10, 2009, 10:45:31 am
I have it installed and I got Allegro installed, but when I try to use Allegro functions it says "undeclared', and opens the allegro header file. I can put "#include<allegro.h>" at the beginning and it still compiles. I tried going to project properties> libraries, but I couldn't find allegro.  What should I do?

Add it !

Add what?

The allegro-library.
Find out where it is installed, and if the install-directory is not in the standard (linker-)search-path ("/usr/lib") add the folder to the Linkers search directories (in your projects build options).
Add the library to the library list in your projects linker settings, normally it should be enough to add it without the "lib"-prefix and the ending (either "so" or "a").
I do not ave allegro installed, but on debian (and therefore on ubuntu, too) its most likely "liballeg.[so|a]", so adding "alleg" should be enough to link against the library.
Title: Re: Ubuntu Nightly Build
Post by: chewanater on May 10, 2009, 07:27:28 pm
Yah it works now!  :D