ofxDlib icon indicating copy to clipboard operation
ofxDlib copied to clipboard

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

Open jchillerup opened this issue 2 years ago • 2 comments

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:

jchillerup avatar Nov 12 '23 11:11 jchillerup

Have you been able to get this to run on 0.12.1 I'm getting this error /addons/ofxDlib/libs/ofxDlib/include/ofx/Dlib/Utils.h:12:10 'dlib/geometry.h' file not found

vanderlin avatar Oct 06 '25 19:10 vanderlin

No, I don't even remember what I needed it for in 2023 😬

jchillerup avatar Oct 07 '25 10:10 jchillerup