NDK

Android NDK: Including boost c++ library

匿名 (未验证) 提交于 2019-12-03 01:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to use a boost library inside my android application, using the NDK. I have found a couple of success stories here and here , but I can't say the same about me. I am specifically trying to use the library in this link , as well as the boost thread library. In the code below, I am only trying to include the thread library, not the math library. The process I used to build the boost libraries is pretty much the same as the first link I attached. So far, it seems I have successfully built the boost libraries, but when I run ndk

Running ndk-gdb with package not found error on motorola phone

匿名 (未验证) 提交于 2019-12-03 01:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a C++ Android application that I'm trying to debug with ndk-gdb. The application does use multiple threads, but supposedly r5 of the ndk supports multiple threads. Also, I'm not even getting to the point where gdb starts up. I run the command: ndk-gdb --start --force --verbose It then finds the proper path for the ndk and sdk (or at least adb), and the needed ABIs and whatnot. $ ndk-gdb --start --force --verbose Android NDK installation path: /home/leif/eclipse/android-ndk-r5b Using default adb command: /home/leif/eclipse/android-sdk

Error: No toolchains found in the NDK toolchains folder for ABI with prefix: llvm

匿名 (未验证) 提交于 2019-12-03 01:49:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to compile an open source android project (Netguard) using gradel ( gradlew clean build ) But I encountered this Error: A problem occurred configuring project ':app'. > Exception thrown while executing model rule: NdkComponentModelPlugin.Rules#cre ateToolchains > No toolchains found in the NDK toolchains folder for ABI with prefix: llvm I serached but didn't find enything helping. Here is the main build.gradle : buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle-experimental:0.6.0-alpha1'

Android NDK compile gmp library

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How to compile GMP for android ndk as a static or shared library that I can reuse in my projects/ 回答1: I don't know if GMP use autoconf but if it does then you can try the following: you will need to follow instruction android-ndk-r6/docs/STANDALONE-TOOLCHAIN.html 3/ Invoking the compiler (the easy way) Assuming that you have defined $NDKROOT to point to root of NDK $NDKROOT/build/tools/make-standalone-toolchain.sh --platform=android-9 --install-dir=$NDKROOT/android_armeabi export CC="$NDKROOT/android_armeabi/bin/arm-linux-androideabi-gcc -

Android Studio failed build NDK project non-zero exit value

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I imported a project that I was working on from an Eclipse Android SDK environment to the new Android Studio. Trying to run the project I get this Error:Execution failed for task ':app:compileDebugNdk'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'ndk/ndk-build'' finished with non-zero exit value 2 So first of all for me it's weird to see this error, because working in Eclipse Android SDK before, I ran ndk-build by myself which I still do. So is Android Studio running ndk

How to use GraphicBuffer in android ndk

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am asking this with reference to an answer for my question at How to improve opengl es display performance in android . I was trying to build the code which uses GraphicBuffer with ndk-r9d. but It is saying GraphicBuffer is not declared in this scope. The same comments for eglCreateImageKHR and glEGLImageTargetTexture2DOES. I have added EGL/eglext.h and GLES2/gl2ext.h . I tried to include ui/GraphicBuffer.h but it is not taking it. Is there another header file to be added ? The code given below I have added to avoid use of glTexSubImage2D(

Android Telegram App --> java.lang.UnsatisfiedLinkError: No implementation found for void

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Unfortunally a similar question was removed at Stackoverflow some weeks ago, I must make a new question. Im trying to build an own Telegram app for android via source @ https://github.com/DrKLO/Telegram I can not get it to work, it stops on startup with the following error, any ideas on where to start, Im quite new to Android Studio. 11-17 19:55:04.142 2667-2667/org.telegram.messenger E/art: No implementation found for void org.telegram.tgnet.ConnectionsManager.native_setJava(boolean) (tried Java_org_telegram_tgnet_ConnectionsManager_native

popen on android NDK

匿名 (未验证) 提交于 2019-12-03 01:40:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is popen not supported by android NDK? I read this page and wondering if this is true The same is possible with POSIX popen() but it is not currently supported by bionic, so you can't use that in Android JNI. Instead you can probably use the system() and pipe the output to a file and then read that file afterwards. Looks like the Java approach will be cleaner if you will be doing the rendering in Java. But I also read someone suggesting to use popen. I also tried it myself but sometime my app crashes and I dont know why. Is popen safe to use

Build grpc C++ for android using ndk arm-linux-androideabi-clang++ compiler

匿名 (未验证) 提交于 2019-12-03 01:40:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to cross compile grpc C++ ( https://github.com/grpc/grpc ) for Android from Ubuntu using Android NDK CLANG compiler (arm-linux-androideabi-clang++). I've tried below way to compile it for Android. export PATH=/root/Android/arm-26-toolchain-clang/bin:$PATH export SYSROOT=/root/Android/arm-26-toolchain-clang/sysroot export CC="arm-linux-androideabi-clang --sysroot $SYSROOT" export CXX="arm-linux-androideabi-clang++ --sysroot $SYSROOT" make CFLAGS='-std=c11 -march=armv7-a -D__ANDROID_API__=26' CXXFLAGS='- std=c++11 -frtti

Android NDK revision 7 Host 'awk' tool is outdated error

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am getting "Android NDK: Host 'awk' tool is outdated. Please define HOST_AWK to point to Gawk or Nawk !" error on latest android ndk revision 7. 回答1: Solved the problem. Solution: Navigate to ../android-ndk-r7/prebuilt/linux-x86/bin Rename the file awk to awk_ Imoprtant thing to note on windows machine: ndk revision 7 onwards, ndk source can be built without cygwin, ie.., instead of calling ndk-build command from inside a Cygwin shell, you should call run ndk-build.cmd inside a MSDOS command window. It works because probably ndk-build