bakercp / ofxDlib

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

dlib::image_load_error: Error, unable to allocate png structure while opening file #33

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 develop branch.

running in to this problem when trying to run face regoncitnion example:

libc++abi.dylib: terminating with uncaught exception of type dlib::image_load_error: Error, unable to allocate png structure while opening file /Applications/of_v0.10.1_osx_release/addons/ofxDlib/example_dlib_dnn_face_recognition/bin/data/bald_guys.png This is happening because you compiled against one version of libpng, but then linked to another. Compiled against libpng version: 1.4.12 Linking to this version of libpng: 1.6.16

bakercp commented 5 years ago

https://forum.openframeworks.cc/t/dlib-face-recognition-detect-faces-from-multiple-images/26640/6?u=bakercp

stephanschulz commented 5 years ago

Thanks again. You old post in the torch thread helped https://github.com/torch/image/issues/137#issuecomment-169689762

Move the /Library/Frameworks/Mono.framework folder to a temporary folder And after I ran the bootstrap.h again. Now app runs just fine. :)