I restricted the build to armeabi with the abiFilters line in app build. Then, export the prefab: Notes: The -prefab-maven flag is optional. Target_link_libraries(footest gtest libtsl.a libtcl.a) First, 'vcpkg install' the 4 android architectures (it is mandatory to export all 4 of them): Console./vcpkg install jsoncpp:arm-android jsoncpp:arm64-android jsoncpp:圆4-android jsoncpp:x86-android. INTERFACE_INCLUDE_DIRECTORIES /home/labhras/AndroidStudioProjects/Nativecgtest/app/src/main/cpp/libtcl.a PROPERTIES IMPORTED_LOCATION /home/labhras/AndroidStudioProjects/Nativecgtest/app/src/main/cpp/libtcl.a El Android NDK (Native Development Kit) permite a los desarrolladores utilizar código escrito en C/C++ en las aplicaciones Android a través de JNI (Java Native Interface). INTERFACE_INCLUDE_DIRECTORIES /home/labhras/AndroidStudioProjects/Nativecgtest/app/src/main/cpp/libtsl.a The Android Native Development Kit (NDK) is a companion tool to the Android SDK that lets build performance-critical portions of apps in native code or port. PROPERTIES IMPORTED_LOCATION /home/labhras/AndroidStudioProjects/Nativecgtest/app/src/main/cpp/libtsl.a Google provides an Android Native Development Kit (NDK) to ease the porting ofexisting applications and libraries fromother platforms to Android. # link_directories(~/AndroidStudioProjects/Nativecgtest/app/src/main/cpp) The Android NDK (Native Development Kit) is a set of tools and libraries that allows developers to write code in native languages such as C and C++ for Android. If you choose cmake to drive your externalNativeBuild (and this is the preferred option, according to Android Developers NDK guide), then you can simply add the following lines to your CMakeLists.txt: set(GOOGLETEST_ROOT $/include)
0 Comments
Leave a Reply. |