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 kfr_io
Here is a link to my modified repo. It probably isn't the best way to do this but it gets a working KFR build for android.
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.
\nSomeone that is better at CMake and more familiar with the KFR please feel free to advise on doing this properly. Would be nice to get a proper solution documented. Let me know if you have any questions.
-
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
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…