-1

Im trying to convert cpp files to so file. Following is my make file

build:
    ndk-build

install:
    cp -r libs/armeabi-v7a/*.so ../src/main/jniLibs/armeabi-v7a/
    cp -r libs/arm64-v8a/*.so ../src/main/jniLibs/arm64-v8a/

clean:
    ndk-build clean

I tried running make but Im getting the following error, make: ndk-build: No such file or directory

Ofcourse I have installed ndk in my mac. what am i missing?

1 Answers1

0

From the error it looks like your mac system doesn't know where to find ndk-build. have you updated the PATH variable or its equivalent in mac.

Alternatively try to execute ndk-build with its complete path to check if its just a PATH issue.

Also note that you need to write Android.mk and Application.mk to compile the C++ code. You can refer this blog for more details http://web.guohuiwang.com/technical-notes/androidndk1

Sumanth V
  • 71
  • 1
  • 6