

Then, add a module for this library to your Android.mk (or your adle if you're using the new experimental system) and make the module for Superpowered depend on the dummy module. It provides its users with studio-grade pro audio sound, fewer CPU clock cycles, cross-platform services, and more. It is designed for mobile computing, wearable devices, and the Internet-of-Things. To do that, you could build a tiny dummy library which just contains #include Įxtern unsigned int _page_size = getpagesize() Superpowered is a cross platform pro-audio SDK for Android, iOS, and wearable devices. To fix it without modifying the Superpowered source code, you'd need to define the symbol _page_size. SuperpoweredSource/decoder/hlsreader.cpp:582 SuperpoweredSource/decoder/SuperpoweredDecoder.cpp:120 However, it looks like the method signature for int getpagesize() hasn't changed across NDK versions or across API levels, so you should be able to resolve this error by replacing the usage of _page_size with getpagesize() in the following locations: As you're using API level 9 and code which directly references _page_size, you're seeing an effect from this change.
#Superpowered audio for android
According to the commit description, _page_size was replaced with PAGE_SIZE for Android API levels 12 and under.

The changes made in this NDK commit seem to explain the issue you're seeing. However I've got very little idea of further troubleshooting. What looks not right is undefined reference to _page_size in unistd.h. Volumes/iMect/iphone/SuperpoweredSource/decoder/hlsreader.cpp:582: error: undefined reference to '_page_size' Volumes/iMect/iphone/SuperpoweredSource/decoder/SuperpoweredDecoder.cpp:120: error: undefined reference to '_page_size' android/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:173: error: undefined reference to '_page_size'Ĭlang++: error: linker command failed with exit code 1 (use -v to see invocation) Part of output message log: /android/ndk/platforms/android-9/arch-x86/usr/include/unistd.h:173: error: undefined reference to '_page_size' In a different project that uses Superpowered SDK and pretty much the same config I get some other error details. I tried building with different toolchains, removing/adding several build flags with no luck so far.
#Superpowered audio update
Until recent NDK update it worked like charm, but now execution of ndk-build gives an error: Error:error: undefined reference to '_page_size' I'm trying to build Superpowered library CrossExample sample project in Android Studio. UPDATE March 19, 2016: Superpowered has released new binaries which work properly with NDK r11
