How to build in Android? #211
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Follow the android documentation to build a native library, be sure to choose a CMake based build as it will be easier to include (i think). You will have to setup your own C linkage if you want to call KFR functions directly from Java. I'd suggest doing the bulk of the work in C/C++. Clone the KFR repository into the
This will include the KFR project to get built with your app. You may come across some errors building. I had to disable some features within the KFR CmakLists.txt file. Specifically i removed everything related to I am no good at CMake, but i suspect there is a way to detect it is being cross complied for android and disable these features. Or maybe they can be modified to work. |
Beta Was this translation helpful? Give feedback.
Follow the android documentation to build a native library, be sure to choose a CMake based build as it will be easier to include (i think). You will have to setup your own C linkage if you want to call KFR functions directly from Java. I'd suggest doing the bulk of the work in C/C++. Clone the KFR repository into the
src/main/cpp
directory. Within thesrc/main/cpp/CmakeLists.txt
add inThis will include the KFR project to get built with your app. You may come across some errors building. I had to disable some features within the KFR CmakLists.txt file. Sp…