Android build does not find libz.so

Brand new ubuntu 14.04 install. Using the latest android release from OF. Using the latest ADT bundle and OF’s ndk-r8b (also tried n9b).

Updated error, see post below

I’m getting a build error which seems to indicate OF cannot find the NDK and SDKs, my paths.make file is pointing to them but still I get:

paths.make :

NDK_ROOT=~/Development/android-ndk
SDK_ROOT=~/Development/adt-bundle-linux-x86_64

Error from eclipse

ofSerial.cpp:1:
/home/coherent/Development/android-ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/lib/gcc/arm-linux-androideabi/4.8/include/stdint.h:9:26:
fatal error: stdint.h: No such file or directory

Any idea what I missed?

Best!

Seems that it was the ~ in paths.make, I replaced it for:

NDK_ROOT=/home/coherent/Development/android-ndk
SDK_ROOT=/home/coherent/Development/adt-bundle-linux-x86_64

Now I’m getting the following error:

/home/coherent/Development/android-ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/…/lib/gcc/arm-linux-androideabi/4.8/…/…/…/…/arm-linux-androideabi/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
make[2]: *** […/…/…/libs/openFrameworksCompiled/lib/android/obj/armv7/Debug/libs/openFrameworks/communication/ofSerial.o] Error 1
make[2]: *** Waiting for unfinished jobs…

I don’t know where libz.so should be though.