|
Error compiling Allegro 5.2 on Ubuntu 16.04 |
x.Blue
Member #15,768
October 2014
|
I was working on Allegro 5.0.10 and now I decided to continue my works. Errors be like: What have I done? Can it be fixed? |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Undefined references mean you're not linking to enough libraries, or to incorrect ones. You need to specify the allegro native dialog addon, and the main addon, and anything else you're using when you call pkg-config to get the link options for allegro. I don't use Ubuntu or pkg-config so I can't help you there. Someone else should be along soon. EDIT 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 |
x.Blue
Member #15,768
October 2014
|
I tried and it's not working. Package allegro-5.2 was not found in the pkg-config search path. ...the same with all the packages... g++: fatal error: no input files With "pkg-config --list-all | grep allegro": I tried with "g++ -o main.cpp `pkg-config --cflags --libs allegro-5 allegro_acodec-5 allegro_audio-5 allegro_color-5 allegro_dialog-5 allegro_font-5 allegro_image-5 allegro_main-5 allegro_memfile-5 allegro_physfs-5 allegro_primitives-5 allegro_ttf-5`" and the output is: |
Edgar Reynaldo
Major Reynaldo
May 2007
|
I assume you wrote a main function. Try putting allegro_main-5 last in the arguments to pkg-config. 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 |
x.Blue
Member #15,768
October 2014
|
The problem was the name of the program after -o (I forgot it) Now is working! |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Post the output of just the pkg-config command by itself. EDIT You're lucky it didn't overwrite your .cpp file. 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 |
|