Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
stephanschulz opened this issue Sep 28, 2019 · 2 comments

Comments

@stephanschulz
Copy link

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

@stephanschulz
Copy link
Author

stephanschulz commented Sep 28, 2019

Thanks again.
You old post in the torch thread helped
torch/image#137 (comment)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants