|
macOS 10.13.6 High Sierra build errors |
thebignic
Member #14,419
July 2012
|
Building from the instructions found here: http://curtis.schlak.com/2014/05/22/creating-and-using-allegro-5-static-libraries-with-xcode-5.html I have cloned from git and checked out the 5.1 branch, cmake seems to be ok but when I go to make, I get the following error: In file included from /Users/bignic/allegro/src/macosx/hidjoy.m:19: There is another post on allegro.cc that seems to resolve the issue but I'm new to macOS, git, and home-brew and don't know how to proceed. The post suggests to use master branch (isn't that the default? 5.1?) or to install --HEAD with homebrew but I have no idea what that means. If QuickTime APIs are deprecated (?) why are they still included?
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
You want master, and that's not 5.1. 5.2.4 is the latest branch. 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 |
thebignic
Member #14,419
July 2012
|
I tried to checkout several but only 5.1 seems to be listed in git? Any idea what I'm doing wrong?
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
You're cloning from an old repository. His instructions say : git clone git://git.code.sf.net/p/alleg/allegro You want : git clone https://github.com/liballeg/allegro5.git git checkout master
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 |
thebignic
Member #14,419
July 2012
|
Thanks... getting further, but still some issues. Freetype seems to not be included, but I've installed it (brew install freetype) make and make install seem to work fine (freetype is detected and the library is now built) I am linking all of static libs (as per the page above) but when I build just a basic example, Xcode is throwing an error about architecture: Quote: Undefined symbols for architecture x86_64: ... "_FT_Set_Pixel_Sizes", referenced from: ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) I have tried specifically setting the architecture in cmake to x86_64 and rebuilding allegro, but to no avail. Other threads and stack overflow seem to indicate I'm just not linking correctly but those other users getting similar errors seem to be using dynamic linking.
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
It looks like you didn't link to free type or else the symbols are 64-bit. 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 |
thebignic
Member #14,419
July 2012
|
Hmm... OK. Looks like I still have to link the freetype.6.dylib. I guess I thought by static linking to the allegro ttf library that I wouldn't have to. I'm assuming I'll have to redistribute the freetype.6.dylib with the application? If so, is there a suggested location or just in a directory with the app itself? Thank you kindly for your help!
|
Edgar Reynaldo
Major Reynaldo
May 2007
|
It depends on which version of FreeType2 allegro was linked to during compile time. Do you have static libs for freetype? I think they might only install or build dynamic versions. You might have to build freetype yourself. 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 |
|