bakercp / ofxDlib

An openFrameworks wrapper for dlib. http://dlib.net/
MIT License
52 stars 16 forks source link

OSX: Needs homebrew include path in order to find `gif_lib.h` #37

Open jchillerup opened 10 months ago

jchillerup commented 10 months ago

Hi

Needed to apply the following patch in order for Xcode to find my Homebrew-installed giflib. Not filing a PR because I'm not sure it's a good fix to add it in the common: section.

diff --git a/addon_config.mk b/addon_config.mk
index cc2ffc2..5d9429a 100644
--- a/addon_config.mk
+++ b/addon_config.mk
@@ -16,6 +16,7 @@ common:
        # Manually add the includes and source.
        ADDON_INCLUDES = libs/dlib/include
        ADDON_INCLUDES += libs/ofxDlib/include
+       ADDON_INCLUDES += /opt/homebrew/include
        ADDON_INCLUDES += src

 osx: