|
how to install install Allegro 5 with codelite on xubuntu ? |
dolphin swimming
Member #19,378
February 2021
|
Hi, I watched this video https://www.youtube.com/watch?v=3t19oia8F-o and the program below is working fine. //*********************************** #include <stdlib.h> //*** Inclusion des fonctions *** //********************* int main() // install le joystick //if(!al_init_font_addon()) return -1; // init pour le text font // donner un nom à sa fenetre // colorer la fenetre // colorer la fenetre // liberation memoire de la fenetre return 0; But except for this: if(!al_init_font_addon()) return -1; So with this three lines I have several errors like : I am not a professional programmer, only a beginner hobbyist. Thanks |
DanielH
Member #934
January 2001
|
You can either link the massive monolith library that includes everything. Or link to the individual libraries for each addon. Look at the libraries folder/directory for the names. |
dolphin swimming
Member #19,378
February 2021
|
Hi, Thanks, but I don't have a file named "monolith" in my DD. Do you have an example for proceed for this ? "link to the individual libraries for each addon. Look at the libraries folder/directory for the names." |
Edgar Reynaldo
Major Reynaldo
May 2007
|
The libraries you need to link will be named something like : liballegro_*.so Look in your /usr/lib or /usr/local/lib directory for the allegro libraries you need to link. The monolith library doesn't come in the repositories on Linux AFAIK. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
dolphin swimming
Member #19,378
February 2021
|
Hi thanks. Yes I have several "liballegro_*.so" on /usr/lib/x86_64-linux-gnu For installing Allegro 5 I proceeded like this: sudo add-apt-repository ppa:allegro/5.2 sudo apt install liballegro5-dev In CodeLite: New Project -> Console -> Simple executable (gcc) and now: Linker -> Libraries Search Path -> /usr/lib But I have the same errors. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
There is more than one allegro library to link, because allegro comes with a series of addons. In your linker libraries tab, add liballegro_font.so, liballegro_ttf.so, and liballegro_primitives.so, in addition to any other addon libraries you are using. You'll know which ones because you had to include their header to use them. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
dolphin swimming
Member #19,378
February 2021
|
YES very good answers thanks very much. Now I have "====0 errors, 0 warnings====" in CodeLite. Linker -> Libraries -> allegro With other libraries like this: -> liballegro_font.so Thanks a lot Edgar Reynaldo |
|