android/renderscript-intrinsics-replacement-toolkit

Error while compiling this project

Closed this issue · 3 comments

I am getting following error when I am trying to build this module.

 C/C++ debug|armeabi-v7a : CMake Error at /home/vikram/Documents/src/renderscript-intrinsics-replacement-toolkit/renderscript-toolkit/src/main/cpp/CMakeLists.txt:117 (include):
  include could not find load file:

    AndroidNdkModules

You probably don't have the NDK installed or configured correctly. Check https://developer.android.com/studio/projects/add-native-code and let me know how it goes.

@patilvikram, I'll assume that you solved your issue, since you have not replied to this thread. Please re-open if it's still a problem.

Just FYI, this happened to me with NDK v22.
This project had existing NDK code and worked as expected.
After replacing RenderScript with the Toolkit, it stopped compiling with the above Error.

The NDK cpu features library is deprecated[1] and Google's new cpu_features library[2] is recommended.
I removed the "deprecated" version and used the "new and supported" version, everything works as expected now.

The NDK Team itself recommended moving from the "deprecated" to the "new and supported" version back in 2019 already[3] so maybe it would make sense to make use of it with the Renderscript replacement toolkit as well?