dlib-android icon indicating copy to clipboard operation
dlib-android copied to clipboard

How to enable libpng support?

Open vardan007 opened this issue 8 years ago • 3 comments

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

vardan007 avatar Nov 25 '16 15:11 vardan007

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

tzutalin avatar Nov 25 '16 15:11 tzutalin

@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.

vardan007 avatar Nov 25 '16 15:11 vardan007

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

PratikGajera avatar Sep 04 '17 12:09 PratikGajera