tzutalin / dlib-android

:dragon: Port dlib to Android
MIT License
866 stars 268 forks source link

How to enable libpng support? #26

Open vardan007 opened 7 years ago

vardan007 commented 7 years ago

How to enable libpng support, I am getting runtime exception:

You must #define DLIB_PNG_SUPPORT and link to libpng to read PNG files. Do this by following the instructions at http://dlib.net/compile.html. Note that you must cause DLIB_PNG_SUPPORT to be defined for your entire project. So don't #define it in one file. Instead, use a compiler switch like -DDLIB_PNG_SUPPORT so it takes effect for your entire application." failed

tzutalin commented 7 years ago

@vardan007 What do you do? So far, I didn't compile the code about libpng.

vardan007 commented 7 years ago

@tzutalin I want to use it in my codes, do you have any ideas? Added this LOCAL_CFLAGS += -DDLIB_PNG_SUPPORT

But seems it is not enough.

PratikGajera commented 7 years ago

I have same problem. Please give me solution because I am stuck over here.