opencv error: undefined reference to `png_set_expand_gray_1_2_4_to_8@PNG16_0'

NoSuchKey