android-ndk

How to determine ABI of Android .so file (i.e. armeabi or armeabi-v7a)?

你说的曾经没有我的故事 提交于 2020-05-10 21:11:41
问题 I have a .so file provided by a third-party vendor that is to be included in my Android application. I do not have access to the source code nor can I (easily) contact the vendor. Is there a way for me to figure out by examining the .so file whether or not it was compiled targeting the armeabi or armeabi-v7a ABI? I'm asking for two reasons. First, I prefer for it to have been compiled targeting the armeabi-v7a ABI to get the improved performance compared to armeabi; knowing this will give me

How to determine ABI of Android .so file (i.e. armeabi or armeabi-v7a)?

倖福魔咒の 提交于 2020-05-10 21:09:45
问题 I have a .so file provided by a third-party vendor that is to be included in my Android application. I do not have access to the source code nor can I (easily) contact the vendor. Is there a way for me to figure out by examining the .so file whether or not it was compiled targeting the armeabi or armeabi-v7a ABI? I'm asking for two reasons. First, I prefer for it to have been compiled targeting the armeabi-v7a ABI to get the improved performance compared to armeabi; knowing this will give me

Compatible side by side NDK version was not found. Default is 20.0.5594570

眉间皱痕 提交于 2020-05-07 08:15:48
问题 I am getting the above error My gradle looks like this apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 29 buildToolsVersion "29.0.3" defaultConfig { applicationId "com.example.hypersignwalletcorekotlin" minSdkVersion 23 targetSdkVersion 29 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles

Error cross-compiling openconnect-8.08 for android

笑着哭i 提交于 2020-04-30 09:22:35
问题 When i follow instructions here, i get this error when running latest instruction that is "make": make[1]: Entering directory '/home/fasegiar/Downloads/openconnect-8.08' CC libopenconnect_la-ssl.lo In file included from ssl.c:41: In file included from ./openconnect-internal.h:102: In file included from /usr/include/libxml2/libxml/tree.h:1307: In file included from /usr/include/libxml2/libxml/xmlmemory.h:218: In file included from /usr/include/libxml2/libxml/threads.h:35: In file included from

How to get std::basic_istream from AAssetManager?

谁说我不能喝 提交于 2020-04-16 05:48:33
问题 I am using NDK and I need to read resource media file. So, as far as I understand in order to access to resources I need to use AAssetManager , and eventually I need to get std::basic_istream to work with it. So, question is, how to get std::basic_istream from AAssetManager ? 回答1: The answer is actually very different whether you have a compressed asset (e.g. text) or uncompressed (by default, Jpeg images and mp3 are stored by the packer). For these uncompressed assets, you can get the file

How to declare native cpp method for which declared in kotlin companion object?

|▌冷眼眸甩不掉的悲伤 提交于 2020-04-11 18:32:43
问题 I have a Kotlin class which just declare some methods for interaction of Kotlin and C/C++ : class JNILib { companion object { external fun getAppId(): String init { System.loadLibrary("native-code") } } } But I have a problem when declaring the native method. I tried extern "C" JNIEXPORT jstring JNICALL Java_com_package_JNILib_getAppId( JNIEnv *env, jobject /* this */){ // wrong } extern "C" JNIEXPORT jstring JNICALL Java_com_package_JNILib_Companion_getAppId( JNIEnv *env, jobject /* this */)

How to declare native cpp method for which declared in kotlin companion object?

半城伤御伤魂 提交于 2020-04-11 18:32:40
问题 I have a Kotlin class which just declare some methods for interaction of Kotlin and C/C++ : class JNILib { companion object { external fun getAppId(): String init { System.loadLibrary("native-code") } } } But I have a problem when declaring the native method. I tried extern "C" JNIEXPORT jstring JNICALL Java_com_package_JNILib_getAppId( JNIEnv *env, jobject /* this */){ // wrong } extern "C" JNIEXPORT jstring JNICALL Java_com_package_JNILib_Companion_getAppId( JNIEnv *env, jobject /* this */)

How to declare native cpp method for which declared in kotlin companion object?

做~自己de王妃 提交于 2020-04-11 18:32:20
问题 I have a Kotlin class which just declare some methods for interaction of Kotlin and C/C++ : class JNILib { companion object { external fun getAppId(): String init { System.loadLibrary("native-code") } } } But I have a problem when declaring the native method. I tried extern "C" JNIEXPORT jstring JNICALL Java_com_package_JNILib_getAppId( JNIEnv *env, jobject /* this */){ // wrong } extern "C" JNIEXPORT jstring JNICALL Java_com_package_JNILib_Companion_getAppId( JNIEnv *env, jobject /* this */)

Cannot use old NDK (android-ndk-r17c) after Catalina upgrade due to new security

无人久伴 提交于 2020-04-08 08:57:50
问题 After upgrading to macOS Catalina, my project won't build anymore. This is due to Catalina believing the binaries in 'android-ndk-r17c' to not be from a trusted developer. You get messages such as: "“ld” cannot be opened because the developer cannot be verified." "macOS cannot verify that this app is free from malware" I have to use the old NDK due to problems with native openCV library SDK and newer NDKs. They are working on it, but the newer SDK is not stable enough for me yet. I was able