|
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
|
You can try the cmake mailing list. They might be able to help more. LibPNG is supposed to be one of the automatically supported and searched for libraries in cmake. There may be different variables you have to set to get Android to work right. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Trent Gamblin
Member #261
April 2000
|
Try adding -DWANT_NATIVE_IMAGE_LOADER=off to your cmake line.
|
|