Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » allegro dev-cpp and gp2x

This thread is locked; no one can reply to it. rss feed Print
allegro dev-cpp and gp2x
KaBlammyman
Member #455
June 2000
avatar

Hi,

I just got a gp2x, and I wanted to port my allegro games for it. I downloaded the "official sdk" which comes with its own version of dev-cpp just for the gp2x.:D

However, its only setup for SDL...i want to use the allegro port George Foot made. I tried emailing George, but he hasnt answered yet (probably a really busy man)I also tried getting help at the gp2x board, but its not that great a board compared to this one ;D (its seems to not have enough expriced members) I just need help setting up Dev-Cpp to use the gp2x version of allegro.

Anyway, most people don't have this system, so I dont know if I can get help here, but I was hoping someone would know how to configure dev-cpp-for-gp2x to compile with allegro games. I tried using George Foot's directions for the command line with dev-cpp, but i didn't get it right. I don't want to use the command line either...so I would really appreciate the help so I can port my games asap.

Thanx in advance.

->Insert clever quote here<-
http:my website

Evert
Member #794
November 2000
avatar

I think the SVN version of Allegro 4.2 will work out of the box, but I don't know that anyone has actually tried it.
As for Dev-C++, no idea.

KaBlammyman
Member #455
June 2000
avatar

Hey, I got it to work!
1) I did not use the pre-configured dev-cpp that came withe the sdk. I used the normal version.
2) I followed the wiki ( [url=http://wiki.gp2x.org/wiki/Using_Devcpp]http://wiki.gp2x.org/wiki/Using_Devcpp[/url] ) on getting dev-cpp to work for the gp2x, but heres what I did to make sure things worked.

I got it to work by making sure that dev-cpp found programs that were from the normal dev-cpp setup (make, gdb and windres) by actually going thru the directory in the programs tab, even though the wiki says they are "No equivalent"

Then I had to delete any *.o files i made when trying to compile stuff from the past.

Finially, in project -> project options, then parameters tab (NOT tools ->compilier options !!!)
I put the following in the linker:

-O2 -Wall -Werror -g `gp2x-allegro-config --cflags debug`

and I put the following in the linker:

C:\Dev-Cpp\devkitGP2X\lib\liballeg.a
-static
-lpthread

Then I made sure I was NOT using teh default compilier, but the gp2x one i set up.

and bingo-bango, it worked.

->Insert clever quote here<-
http:my website

Go to: