i got this error when 'make'
any suggestion ? thanks
Images.cpp:21:39: error: invalid use of incomplete type ‘png_struct {aka struct png_struct_def}’
status_t err = ((AaptFile*)png_ptr->io_ptr)->writeData(data, length);
^
In file included from Images.cpp:14:0:
/usr/include/png.h:459:16: error: forward declaration of ‘png_struct {aka struct png_struct_def}’
typedef struct png_struct_def png_struct;
^
Images.cpp: In function ‘void read_png(const char*, png_structp, png_infop, image_info*)’:
Images.cpp:93:41: error: ‘png_set_gray_1_2_4_to_8’ was not declared in this scope
png_set_gray_1_2_4_to_8(read_ptr);
^
Images.cpp:112:52: error: expected primary-expression before ‘)’ token
outImageInfo->height * png_sizeof(png_bytep));
^
Images.cpp:112:52: error: ‘png_sizeof’ was not declared in this scope
Images.cpp: In function ‘android::status_t do_9patch(const char*, image_info*)’:
Images.cpp:576:66: error: expected primary-expression before ‘)’ token
image->rows = (png_bytepp)malloc((H-2) * png_sizeof(png_bytep));
^
Images.cpp:576:66: error: ‘png_sizeof’ was not declared in this scope
Images.cpp: In function ‘void write_png(const char*, png_structp, png_infop, image_info&, int)’:
Images.cpp:987:91: error: expected primary-expression before ‘)’ token
png_bytepp outRows = (png_bytepp) malloc((int) imageInfo.height * png_sizeof(png_bytep));
^
Images.cpp:987:91: error: ‘png_sizeof’ was not declared in this scope
Images.cpp:1000:42: error: ‘Z_BEST_COMPRESSION’ was not declared in this scope
png_set_compression_level(write_ptr, Z_BEST_COMPRESSION);
^
Makefile:584: recipe for target 'aapt-Images.o' failed
make[1]: *** [aapt-Images.o] Error 1
make[1]: Leaving directory '/home/zhainhart/Downloads/Android64bit/android-utils-4.4-r1/aapt'
Makefile:387: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1