You are not logged in.
Pages: 1
Hello folks:
Once I used allegro on WInbugs and wx-dev-c++, but now I'm trying to figure out how to correctly set up the allegro libraries for Netbeans. The first thing I tried was adding the directories where the allegro headers lie under "Tools, Options, C/C++, Code Assistance" (/usr/include/allegro5/ and /usr/lib according to its package); but that doesn't seem to work.
Somewhere on the internet I read that I had to execute...
allegro-config --libs --static
..on a terminal, so I can copy the output to the library linker; but I only get:
bash: allegro-config: command not found
Any suggestions?
Offline
Hmm... I use Allegro a lot, but I've never used it with NetBeans.
Do you need to specify the full path? (/usr/bin/allegro-config)
allegro-config is part of the "allegro4" package, not allegro (5).
Edit: I created a simple Makefile to compile my Allegro 5 game. Here are my linking (LDFLAGS) options:
-lallegro -lallegro_acodec -lallegro_audio -lallegro_image -lallegro_ttf
Of course, you would only need to add the libraries you use. (Allegro 5 is much more modular compared to Allegro 4)
Last edited by drcouzelis (2012-04-25 02:30:39)
Offline
Hmm... I use Allegro a lot, but I've never used it with NetBeans.
Do you need to specify the full path? (/usr/bin/allegro-config)
allegro-config is part of the "allegro4" package, not allegro (5).
Edit: I created a simple Makefile to compile my Allegro 5 game. Here are my linking (LDFLAGS) options:
-lallegro -lallegro_acodec -lallegro_audio -lallegro_image -lallegro_ttf
Of course, you would only need to add the libraries you use. (Allegro 5 is much more modular compared to Allegro 4)
Thanks for the answer. I'll give allegro4 a try.
Offline
Pages: 1