RPGDXThe center of Indie-RPG gaming
Not logged in. [log in] [register]
 
Allegro + Linux anyone?
 
Post new topic Reply to topic  
View previous topic - View next topic  
Author Message
basix
Guest





PostPosted: Sat Dec 13, 2003 10:07 am    Post subject: Allegro + Linux anyone? [quote]

Hi I was wondering if anyone(Bjorn in particular) would know how to compile files c++ proggies with the allegro font library in Linux. I know how to compile files using just allegro. But I dunno how to use libalfont.a? When I run this command it gives me errors:

g++ text.cpp -o test -l libalfont.a `allegro-config --libs`
Back to top  
Happy
JonA's American snack pack


Joined: 03 Aug 2002
Posts: 200

PostPosted: Sat Dec 13, 2003 11:29 am    Post subject: [quote]

basix wrote:
Hi I was wondering if anyone(Bjørn in particular) would know how to compile files c++ proggies with the allegro font library in Linux. I know how to compile files using just allegro. But I dunno how to use libalfont.a? When I run this command it gives me errors:

g++ text.cpp -o test -l libalfont.a `allegro-config --libs`


You'll probably want to try:

Code:
g++ -o test test.cpp -lalfont `allegro-config --libs`


You'll probably also want to make sure libalfont.a is in gcc's library search path.

That is, something like:

Code:
g++ -o test test.cpp -L/pathto/libalfont/ -lalfont `allegro-config --libs`
Back to top  
Bjorn
Demon Hunter


Joined: 29 May 2002
Posts: 1425
Location: Germany

PostPosted: Sat Dec 13, 2003 1:23 pm    Post subject: [quote]

Yep, that should do it. If passing this parameter is not to your liking, you can add the path to the LIBRARY_PATH environment variable using:

Code:
export LIBRARY_PATH=$LIBRARY_PATH:/pathto/libalfont/

You can put that into your ~/.bashrc for example, to have it set automatically.
Back to top  
akOOma
Wandering Minstrel


Joined: 20 Jun 2002
Posts: 113
Location: Germany

PostPosted: Sat Dec 13, 2003 2:34 pm    Post subject: [quote]

Yeah, that should help him. I've shown him this site, because he asked me if I knew something about Allegro+Linux. I didn't, but I know that at least Bjørn should know that...
_________________
Keep on codin'
-----------------

-----------------
Just another post to increase my rank...
Back to top  
Bjorn
Demon Hunter


Joined: 29 May 2002
Posts: 1425
Location: Germany

PostPosted: Sun Dec 14, 2003 1:46 am    Post subject: [quote]

Thanks. Yeah, we're certainly going to have a Linux release for our upcoming contest entry, though it'll probably just be for ourself, Happy and the odd one. :-)

Our main development platform is now Linux, except for one persistent artist, Modanung. Actually he's probably going to make sure that we'll have a Windows release as well. :-)
Back to top  
Modanung
Mage


Joined: 20 Jun 2002
Posts: 317
Location: The Netherlands

PostPosted: Sun Dec 14, 2003 10:27 pm    Post subject: [quote]

Yeah, I still need to start working on the graphics... I've got 3 upcoming tests in the next 3 days, I'll try to start after that.

Oh, and see you tomorrow, Bjorn! :)
Back to top  
Post new topic Reply to topic Page 1 of 1 All times are GMT
 



Display posts from previous:   
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum