android-ndk

Fatal signal 11 (SIGSEGV), code 2, fault addr 0xb3d5e488 in tid 8058

五迷三道 提交于 2020-01-17 17:26:26
问题 I have a simple ndk code in my app and im keep getting this error in the logcat and app keep crashing. Here is the method where app is crashing: char VAL1[] = "abcdef"; char VAL2[] = "123456"; char VAL3[] = "helloworld"; JNIEXPORT jstring JNICALL Java_com_livetv_android_apps_uktvnow_utils_Constants_getValue(JNIEnv *env , jobject thiz, jstring date, jstring completeUrl, jstring params){ const char *nativeDate = (env)->GetStringUTFChars(date, 0); const char *nativeUrl = (env)->GetStringUTFChars

Android.mk - what toolchain used by default?

三世轮回 提交于 2020-01-17 12:26:30
问题 What toolchain used by default when compile through Android.mk ? And how change the toolchain ? 回答1: The default toolchain was gcc-4.6 for a long time. It has changed to gcc-4.8 in the NDK r10d version (currently the latest version). You can choose to use another toolchain through modifying the NDK_TOOLCHAIN_VERSION variable, through ndk-build call (example: ndk-build NDK_TOOLCHAIN_VERSION=clang3.4 , or by setting it inside Application.mk file. Example: NDK_TOOLCHAIN_VERSION := clang3.4 来源:

define NDK_ROOT in cocos2DX mutiplatform game environment

邮差的信 提交于 2020-01-17 07:52:11
问题 I have just started working with cocos2dx android and I am following wonderful tutorial of http://www.raywenderlich.com/33750/cocos2d-x-tutorial-for-ios-and-android-getting-started . Now, I have successfully run my first hello world demo project by following this link. I also set environment parameters: NDK_ROOT_LOCAL="/MY ANDROID NDK PATH/" ANDROID_SDK_ROOT_LOCAL="/MY ANDROID SDK PATH/" I followed tutorial perfectly as given in it, still I am facing problem while running my project second

GSL: nm outputs “undefined Symbol (U)”

故事扮演 提交于 2020-01-17 03:44:10
问题 I cross compiled gsl fro android using arm-linux-androideabi . When I dynamically loaded this library in android-studio , it gave me error. can not locate symbol cblas_sdsdot. I ran nm command on gsl and got U cblas_sdsdot Then I ran nm command on gslcblas and got 000002645 T cblas_sdsdot. I also loaded gslcblas.so before gsl.so but still I am getting the error. Any suggestion to get rid of this problem? Thanks 来源: https://stackoverflow.com/questions/30727709/gsl-nm-outputs-undefined-symbol-u

I need loadLibrary two so library files on Android Studio v1.1.0

烂漫一生 提交于 2020-01-17 03:35:29
问题 I had an examples for two so files for one app which is very simple, and I just have tried to do same code on Android Studio 1.1.0. I refer many web sites, so I put my so files on "src/main/jniLis/[arch]/" and run my app. But it was failed. This is error log from ddms. UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.mdsedu.twolibstatic-2/base.apk"],nativeLibraryDirectories=[/data/app/com.mdsedu.twolibstatic-2/lib/arm, /vendor/lib, /system/lib]]] couldn

Linking against third-party libraries when doing cross-platform build in Visual Studio 2015

若如初见. 提交于 2020-01-17 01:26:08
问题 I am trying to compile a Shared Object (.so) with Visual Studio 2015 RC. I am linking against the Opus Codec libs in my stdafx.h: #pragma comment(lib, "..\\..\\opus-1.1-beta\\win32\\VS2010\\Win32\\Debug\\celt.lib") #pragma comment(lib, "..\\..\\opus-1.1-beta\\win32\\VS2010\\Win32\\Debug\\opus.lib") #pragma comment(lib, "..\\..\\opus-1.1-beta\\win32\\VS2010\\Win32\\Debug\\silk_common.lib") #pragma comment(lib, "..\\..\\opus-1.1-beta\\win32\\VS2010\\Win32\\Debug\\silk_fixed.lib") #pragma

File acess on Android App when using Android NDK

青春壹個敷衍的年華 提交于 2020-01-16 19:59:49
问题 I have a native shared library compiled using android-ndk one of the C API functions is: int load_config(const char *fn, Config *cfg) I have wrapped the function with JNI and successfuly called it from Java, e.g. Config cfg = new Config(); my_shared_lib.load_config("test.gcf", cfg); System.out.println("cfg.rx_id = " + cfg.getRx_id()); This prints the expected value from the Config data structure But now that I have ported it on to an Android emulator I am confused as how to handle the string

Running Cygwin commands from batch file

徘徊边缘 提交于 2020-01-16 19:19:09
问题 My project is an AndroidNDK project and requires some build commands to run from Cygwin (or a Unix environment). Is there a way to do this using TeamCity? I tried using the commandline build step and passing in a batch file which first launches cygwin, and then performs the build commands I need. However this does not work, all it does is launch cygwin, but my unix commands do not get executed after this. 回答1: How are you launching and running commands from cygwin? You will have to do bash -c

which cmake will Android plugin use?

牧云@^-^@ 提交于 2020-01-16 05:09:08
问题 With Android Studio 3.3 I use native (C++) library, which I built with CMake. The Android plugin (v. 3.2.1) will choose the 'builtin' or 'external' cmake, depending on the configuration of externalNativeBuild , as documented at developer.android.com. I want to add an extra custom task (install) that should use the same cmake version as the Android Plugin. But even with the 'builtin' cmake, it's not clear what the path is. I can find android.sdkDirectory , but even there I have today sdk\cmake

TextField text field doesn't return value on QML | QT 5.12

寵の児 提交于 2020-01-16 04:50:29
问题 i need an help. So this is my code: TextField { id: passwordIDText placeholderText: "Insert text..." color: "Black" font.bold: true font.pixelSize: 21 anchors.top: parent.top anchors.topMargin: parent.height / 10 anchors.horizontalCenter: parent.horizontalCenter text: "aaa" } I use Android 8 (P20), QT 12.4, Android NDK 20 and Android SDK 28. So when i click the button on the android screen (i'm using 20 to testing), in debug, for get the passwordIDText.text, the field is empty, why ?? But if