Sign in to follow this  

Allegro Game Programming

This topic is 3489 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Are there any advanced Allegro programmers out there? I have a question: I can compile my Allegro code successfully on Windows with VC++, but it doesn't work when I try to compile it on Linux with GCC. Does anyone have a suggestion?

Share this post


Link to post
Share on other sites
It would be helpful if you actually explained the problem exactly, probably post a section of the makefile or a useful, but small, amount of the error. It will help others point you in the right direction.

What I would suggest is make sure you have `allegro-config --cflags --libs` somewhere, but that is just a blind assumption.

Share this post


Link to post
Share on other sites
I'm relatively new to Linux and I'm not using a makefile... which may be the problem. I'm just compiling the regular way. Do I need a makefile for Allegro on Linux (sorry if I sound ignorant)?

Share this post


Link to post
Share on other sites
Don't worry about it. You don't need a makefile for allegro on linux. If you are using the command line though, meaning you aren't using a VC++-like tool to code, it's just easier to use a Makefile.

There are a lot of different choices on linux for compiling, so please specify what you mean by the "regular way". That is different depending on who you ask, and causes arguments between people =P.

Share this post


Link to post
Share on other sites
We really need more info like what distro? What is the exact gcc command line options you are using to compile,etc?
If you are using Ubuntu you probably don't even have the necessary Allegro development installed. At least I ran into that problem when I first ported my Windows Allegro programs to Ubuntu Linux.

Share this post


Link to post
Share on other sites
I actually have both Mandriva Linux and Edubuntu Linux currently installed on my laptop's hard drive... and I think the problem is that I don't have the necessary libraries, because the Allegro web site gave me a command line script to run, but whenever I type it in it basically tells me it can't find the script. The script was supposedly generated by Allegro, but I can't seem to find it.

Share this post


Link to post
Share on other sites
I know edubuntu would not have the allegro-xxx-dev package installed by default, which means you can't develop with allegro until you install it. I'm not sure about Mandriva though.

On a side note, if you are going to ask questions on forums, please post error messages, code samples, links of guides you've tried, or anything else that will help get your question answered quickly. In short, we don't know you, so we can't know what you've already done, what system you are on, etc. Just please be verbose.

Share this post


Link to post
Share on other sites

This topic is 3489 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this