|
Errors after installing on Mac |
Andrew Gillett
Member #15,868
January 2015
|
I was tutoring a student in game development and we tried to install Allegro on his Mac (latest OS). We followed the instructions here https://github.com/liballeg/allegro_wiki/wiki/Quickstart The following errors were output when trying to compile the example program: 192:C++ tommymurf$ gcc hello.c -o hello $(pkg-config allegro-5 allegro_main-5 allegro_font-5 --libs --cflags) Undefined symbols for architecture x86_64: |
Edgar Reynaldo
Major Reynaldo
May 2007
|
The first error makes it clear - you haven't installed pkg-config. Install it and then rebuild allegro or reinstall it. 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 |
Andrew Gillett
Member #15,868
January 2015
|
Is pkg-config something that can be installed as a dependency when running brew install allegro, or does it have to be installed separately? We hadn't installed pkg-config because we had never heard of it before and the tutorial didn't mention it. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
pkg-config is not a dependency of allegro, therefore won't install when you install allegro. pkg-config is simply a program that stores the different compiler and linker flags you need to build a program with allegro. You can set the compiler and linker flags manually, but I have no experience doing so on a Mac. Just google pkg-config and install it, then reinstall allegro and it should pick it up. 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 |
Peter Hull
Member #1,136
March 2001
|
You do need to install pkg-config and you can get it from Homebrew. I've updated the wiki.
|
|