Linking libpng to android native project

若如初见. 提交于 2019-12-04 14:59:46

I think you may need to add "libpng" to the LOCAL_STATIC_LIBRARIES variable.

If that doesn't work, instead try adding -lpng to your LOCAL_LD_LIBS variable in your Android.mk file. (Which one is needed depends on where the libpng library is put.)

I'm not familiar with Makefile's for Android but your problem is that you didn't link with libpng. The compiler makes the object files because it has the header files for libpng but it doesn't know it should link with libpng (try adding -lpng) and the path to it if it's not in the default location.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!