Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » How to include libpng Native Android

This thread is locked; no one can reply to it. rss feed Print
How to include libpng Native Android
partyk1d24
Member #15,242
July 2013

I ran the following....

ccmake .. -DANDROID_NDK_TOOLCHAIN_ROOT=$TC -DWANT_ANDROID=on -DWANT_EXAMPLES=OFF -DWANT_DEMO=OFF -DCMAKE_BUILD_TYPE=Debug -DPNG_LIBRARY=/Users/me/Development/AOSP/external/libpng/libs/armeabi/libpng.so -DPNG_INCLUDE_DIR=/Users/me/Development/AOSP/external/libpng

But I see the following error message....

 CMake Warning:
   Manually-specified variables were not used by the project:

     PNG_INCLUDE_DIR

And when I try to run my application I still see..

I/allegro ( 1007): bitmap   W 1020:          bitmap_io.c:243  al_load_bitmap_flags             [   0.39546] No handler for bitmap extensions .png - therefore not trying to load loading_game_bg.png.
E/Tetris  ( 1007): Could not load loading game background bitmap.

Any help with what I am doing wrong?

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Trent Gamblin
Member #261
April 2000
avatar

Try adding -DWANT_NATIVE_IMAGE_LOADER=off to your cmake line.

Go to: