Search code examples
xcodemacosfreetype2

xcode freetype ld symbols not found for architecture x86_64


I add freetype to my multiplatform framework. Same code works fine on windows, but I'm unable to compile it on Mac OS X. I don't use freetype libraries and I compile everything from source code. My main project is written with C++. No matter what I try I always get some sort of errors regarding ftgzip file which is included in project settings. Here's how the error looks like: enter image description here

I'm running out of options and don't know what to try else. Any help would be appreciated.

EDIT: Atleast on firefox press right mouse button and view image, to see original resolution image.


Solution

  • You need to provide those symbols in your code:

    int z_verbose = 0;
    
    void z_error(/* should be const */char* message)
    {
        log_somewhere_or_ignore(message);
    }