Unable to create static library with Android NDK R8

I am creating a shared library with Android NDK and now I want to create it as a static library. I assumed that all I had to do was change BUILD_SHARED_LIBRARY to BUILD_STATIC_LIBRARY in Android.mk, but now when I run ndk-build , absolutely nothing happens. It simply returns to the command line without displaying anything. I tried ndk-build -n and it shows 3 rm commands and nothing more. I tried ndk-build -B and it doesn't matter. I tried ndk-build -d and there is nothing in the output related to my source files or library name.

If I modify the make file to create a shared library, it will compile the source and link .so without any problems.

Anyone have any ideas what might be wrong?

+5
source share
1 answer

It seems that to create a static library it must be a dependency of something. I managed to create my library as static by adding the Application.mk file with the following line:

APP_MODULES = mylib

+4
source

All Articles