Monday, August 6, 2012

undefined reference to `slCreateEngine'

OpenSL-ES development using Eclipse facing "undefined reference to `slCreateEngine'" error, to resolve this, adding 'TARGET_PLATFORM=android-10' follow by ndk-build cmd.

Here is how my Makefile look like:

all: 
ndk-build TARGET_PLATFORM=android-10
clean:
ndk-build clean