ofxDlib icon indicating copy to clipboard operation
ofxDlib copied to clipboard

'gif_lib.h' file not found

Open stephanschulz opened this issue 6 years ago • 3 comments

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

stephanschulz avatar Sep 28 '19 17:09 stephanschulz

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 avatar Sep 28 '19 17:09 bakercp

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

bakercp avatar Sep 28 '19 17:09 bakercp

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

stephanschulz avatar Sep 28 '19 18:09 stephanschulz