How to launch/run the generated binary using ndk toolchain?

37 Views Asked by At

I am using the cmake commands to build a C++ code using ndk toolchain as discussed in this link

Here is the copy of my Cmake command:

cmake ${SRC_DIR} \
        -DCMAKE_TOOLCHAIN_FILE=${NDK_HOME}/build/cmake/android.toolchain.cmake \
        -DANDROID_PLATFORM=android-30  \
        -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=${HOME}/las_android/lib  \
        -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=${HOME}/las_android/output  

It generate the binary file in ${HOME}/las_android/output directory. My question is that how I can launch/run the generated binary file on an android device or simulator.

0

There are 0 best solutions below