bakercp / ofxDlib

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

'gif_lib.h' file not found #32

Open stephanschulz opened 5 years ago

stephanschulz commented 5 years ago

I'm on macOS 10.12.6 with Xcode 9.2 and OF 0.10.1 (stable) and the ofxDlib master branch.

bootstrap.sh installed everything without error message. But when I am trying to compile the face regoncitnion example I get this error message:

/Applications/of_v0.10.1_osx_release/addons/ofxDlib/libs/dlib/include/dlib/image_loader/load_image.h:14:10: 'gif_lib.h' file not found

bakercp commented 5 years ago

This may be because when boostrap.sh compiled dlib, it used cmake, which probably automatically found an install of giflib on your machine (usually installed via macports or homebrew). Then when you ran the xcode project, the xcode project didn't include the right links to giflib. So the solution is likely to modify the dlib apothecary formula to explicitly disable giflib / load-Image support.

bakercp commented 5 years ago

Alternatively, it's been a while since I updated the master branch. I'd recommend trying the develop branch.

stephanschulz commented 5 years ago

thanks. I switched to develop branch and ran the bootstrap.sh again. Now it compiles and app starts.

But got new error. Something about loading image: See this Issue post: https://github.com/bakercp/ofxDlib/issues/33