NDK

Visual Studio 2015, Android NDK with libc++ and cmath issues

匿名 (未验证) 提交于 2019-12-03 01:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When creating a native Android NDK project with the new Visual Studio 2015 Preview and changing the STL to "LLVM libc++ static library (c++_static)", simply including <cmath> in the default "main.cpp" file and compiling with the default Clang 3.4 causes the following issues: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Apps\android-ndk-r10\sources\cxx-stl\llvm-libc++\libcxx\include\cmath(652,8): error : no member named 'float_t' in the global namespace 1> using ::float_t; 1> ~~^ 1>C:\Program Files (x86)\Microsoft Visual Studio 14.0

Android NDK: Your APP_BUILD_SCRIPT points to an unknown file

匿名 (未验证) 提交于 2019-12-03 01:32:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I get the following error while trying to compile an Android NDK project: ndk-build Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: /home/lambergar/work/APIExample/jni/Android.mk /home/lambergar/android/ndk/android-ndk-r5c/build/core/add-application.mk:116: *** Android NDK: Aborting... . Stop. The weird thing is, that the 'unknown file' (Android.mk) exists under the path reported as invalid. 回答1: Same problem (in Windows 7) but the cause is different. After searching in the Environment parameters, I've found the evil thing

Error: Program “/ndk-build.cmd” is not found in PATH

匿名 (未验证) 提交于 2019-12-03 01:31:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am stuck with this following problem on Mac OS X(10.8.4) and eclipse JUNO since 10 days and I haven't found anything working on web. I have downloaded and unzipped the android NDK. After that, I have set the NDK location in 'Android' option in preferences menu. I want to run a sample opencv code( https://www.dropbox.com/s/6s3qwkon9v67u5z/tutorial-3-native.rar ) on the android ADT. While building, it gives the following console output **** Build of configuration Default for project OpenCV Sample - native-activity **** "/ndk-build" Cannot

Extending LLDB from NDK (Android Studio 3.1.3)

匿名 (未验证) 提交于 2019-12-03 01:26:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've found a nice plugin for lldb that allows watching memory regions as images: https://github.com/carlodalmutto/ImageWatchLLDB As I can see, this plugin was developed for Xcode and not for Android. However, it is written in Python and therefore should be cross-platform. I've found a directory c:\Users\username\.lldb\ on my hard drive. Its size is about 1 Gb. I've created following files: c:\Users\username\.lldbinit , c:\Users\username\lldbinit , c:\Users\username\.lldb\lldbinit , c:\Users\username\.lldb\.lldbinit , c:\Users\username\.lldb

Android studio Where to install NDK file? (downloaded it in zip)

匿名 (未验证) 提交于 2019-12-03 01:26:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My android studio said it wanted to update. But when I did I tried to update it but it wouldn't work so I had to launch: C:\Users\username\AppData\Local\Android\sdk\tools\android.bat to install other packages. But the NDK file wouldn't update, so I manually downloaded it from: https://developer.android.com/ndk/downloads/index.html#download Now I have this zip file and where should I extract the folder? Grateful for any help!! The folder name is android-ndk-r13b . 回答1: Yes, rename the extracted folder android-ndk-r13b (probably the exact name

NDKBuild Failure

匿名 (未验证) 提交于 2019-12-03 01:22:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm having trouble getting my NDK to compile properly in Android Studio. Whenever I try running to compile I am getting the following error. Error:Execution failed for task ':app:ndkBuild'. A problem occurred starting process 'command 'ndk-build.cmd'' I have the following setup And my build.gradle file is the following. import org.apache.tools.ant.taskdefs.condition.Os apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.1.2" defaultConfig { applicationId "edu.uky.cs.www.diagramaphone" minSdkVersion 14

CMake FindThreads.cmake won&#039;t find my pthreads.h header

匿名 (未验证) 提交于 2019-12-03 01:21:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using android-cmake to compile an application for Android. This essentially creates a CMake toolchain file for using the toolchain provided with Android's NDK. As with this related question , I'm having problems with the following line in my CMakeLists.txt file: find_package(Threads REQUIRED) The header file is located at ~/Android/android-ndk-r7/platforms/android-8/arch-arm/usr/include/pthread.h The library file is located at ~/Android/android-ndk-r7/platforms/android-8/arch-arm/usr/lib/libthread_db.so The problem is that FindThreads

Android Studio “Current NDK support is deprecated”

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: As of Jan 2015 the NDK support for Android studio is still unusable. A cryptic message says: "Alternative will be provided in the future." I'd like to know what's gradle/google direction on this is since it's impossible to plan a proper development plan at the moment. Version 0.7+: They suggested to still use ndk-build / ant Version 0.8+: They've introduced a minimal NDK support Version 1.0.0: It looked like NDK support was going to be official Version 1.0.2: It now looks like NDK support is deprecated. My questions are: Is everyone

Android NDK UnsatisfiedLinkError: “dlopen failed: empty/missing DT_HASH”

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am tracking down crashes with our Android application (which uses the NDK to load a C++ library) using a crash reporting service. A small number of users are experiencing the following crash: java.lang.UnsatisfiedLinkError: dlopen failed: empty/missing DT_HASH in "cpplibrary.so" (built with --hash-style=gnu?) at java.lang.Runtime.loadLibrary(Runtime.java:365) at java.lang.System.loadLibrary(System.java:526) The couple of mentions of this error I can find on the internet (for example this Google Groups post ) discuss problems with building

Android NDK: load_library: cannot locate srand

匿名 (未验证) 提交于 2019-12-03 01:17:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have an android project where I use native code to do stuff with SIP (using libosip2 and libeXosip2). My native code is compiled together with the libraries' sources into one module. The code compiles just fine and the generated library has all the symbols I expect it to have, but when I try to load the generated library I get the following error: E/eXosip.loadLibrary(9210): java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1307]: 1941 cannot locate 'srand'... My Application.mk looks like this: APP_STL := gnustl_shared APP