nmnir
nmnir

Reputation: 578

Problems in using library headers with Android JNI

I'm using ndk 5 and the samples are build fine. But in project when I added the line #include <SLES/OpenSLES.h> It gives compilation error that there is no such file or directory. My Android.mk is exactly like the one from native-audio except for the source file name.

What is the problem? Thanks, Nahum

Upvotes: 1

Views: 1526

Answers (1)

Bob Stine
Bob Stine

Reputation: 947

Try:

ndk-build TARGET_PLATFORM=android-9

Upvotes: 6

Related Questions