Android.mk: Build Library For Linux
I have an Android.mk file for building native library for Android. Can I use this file and build library for Linux (both of 32 and 64 version)?
Solution 1:
In simple cases you can use command line (it assumes that native gcc is installed conventionally on your Linux machine):
ndk-build APP_ABI=x86 TOOLCHAIN_PREFIX= PRIVATE_SYSROOT_LINK= APP_LDFLAGS=-L/usr/lib \
libs/x86/libMY_NATIVE_NAME.so
Post a Comment for "Android.mk: Build Library For Linux"