android-ndk

How to download: Android NDK, Revision 8e

我的未来我决定 提交于 2020-01-05 10:29:00
问题 I am trying to download Android NDK, Revision 8e (or any older revision) .. but I can't find any link in their website .. I tried to follow the naming-convention as follow: http:// ~ / android-ndk-r8e-linux.zip but it doesn't work .. please help ..I am working on Linux 回答1: Try this links: http://download.kiwix.org/dev/android-ndk-r8e-linux-i686.tar.bz2 http://download.kiwix.org/dev/android-ndk-r8e-linux-x86_64.tar.bz2 xcdwxcwxcwx cwxc wxc 来源: https://stackoverflow.com/questions/19139967/how

Integrating FFMPEG using cmake: undefined reference when linking libraries

五迷三道 提交于 2020-01-05 09:34:27
问题 I've been trying to cross-compile ffmpeg for different Android cpu archs for couple of days now and I have finally succeeded in the task. But now that I need to integrate these pre-built .so files in my project I'm facing errors which have me baffled. This is the CMakeLists.txt which I'm using: cmake_minimum_required(VERSION 3.4.1) # convert SDK path to forward slashes on Windows file(TO_CMAKE_PATH ${PATH_TO_SUPERPOWERED} PATH_TO_SUPERPOWERED) set(CMAKE_VERBOSE_MAKEFILE on) include

Build SDL mixer for Android

牧云@^-^@ 提交于 2020-01-05 09:12:04
问题 I have already build SDL for Android. But, unfortunately, SDL_mixer is missing there. So I want to build SDL mixer. Problem is: SDL_mixer wants SDL, so how I can include libsdl.so and SDL includes to my eclipse SDL_mixer project? 回答1: In Android.mk for SDL_mixer, there is a reference to SDL library: LOCAL_SHARED_LIBRARIES = SDL2 So, if you build the two libraries together , the reference will be fulfilled automatically. Alternatively, you can define SDL2 as PREBUILT_SHARED_LIBRARY. 来源: https:

How to copy numbered/versioned .so file during apk install

99封情书 提交于 2020-01-05 08:48:09
问题 I am using Android NDK to compile a library for Android. I successfully built the library and obtained the .so file. Wrote JNI wrappers and able to create an apk without any compilation errors. My library depends on some other .so files. I manage to include them within the apk using the method described here. But the problem is, my library also depends on a numbered/versioned .so file, i.e. libxxx.so.9 and this file is not copied during apk installation. In other words, in my apk file, under

How to copy numbered/versioned .so file during apk install

喜欢而已 提交于 2020-01-05 08:48:06
问题 I am using Android NDK to compile a library for Android. I successfully built the library and obtained the .so file. Wrote JNI wrappers and able to create an apk without any compilation errors. My library depends on some other .so files. I manage to include them within the apk using the method described here. But the problem is, my library also depends on a numbered/versioned .so file, i.e. libxxx.so.9 and this file is not copied during apk installation. In other words, in my apk file, under

how to query android device hardware info

非 Y 不嫁゛ 提交于 2020-01-05 08:11:21
问题 how can i get android device hardware info like CPU arch, speed, neon, GPU , name, manufacturer, RAM size. i hope there is a way to do that natively using ndk , but if it is possible only by java code than how to do that. 回答1: You need to user Build class for your requirement. The Build class will provide you information like Android Version, Display, Manufacture etc. Build.BOARD Build.BRAND Build.CPU_ABI Build.DEVICE Build.DISPLAY Build.HOST Build.ID Build.MANUFACTURER Build.MODEL Build

Error while executing build.sh in ffmpeg-android

♀尐吖头ヾ 提交于 2020-01-05 07:49:10
问题 I downloaded ffmpeg-android from the link : http://bambuser.com/opensource I followed the steps given in the file README available in that downloaded folder. I tried compiling ffmpeg with both android NDK r5 and r6, but got the same error which is as below: arm-linux-androideabi-gcc is unable to create an executable file. C compiler test failed. If you think configure made a mistake, make sure you are using the latest version from SVN. If the latest version fails, report the problem to the

Maximum texture creation/deletion in Android OpenGL ES 2.0

余生长醉 提交于 2020-01-05 07:11:42
问题 I'm writing a game in native code and all graphics is done with OpenGL ES 2.0. I've tried sparing with the texture usage by repeatedly creating them and deleting when they're not needed (with glDeleteTextures). I noticed that the OpenGL will never reuse same texture id anyway and after exactly 192 texture creations the android screen turns white, (first partially, next load makes it fully) and it does not recover except by releasing app focus and getting it back. Is this a bug or feature?

Compiling a library in C for Android

北慕城南 提交于 2020-01-05 04:34:06
问题 I have installed the SDK,NDK,JDK and Cygwin. I want to know if I will need to edit the code of libraries to make them compile for Android(armv7). I basically need to port a variety of C applications for Android, but they all depend on 3rd party libraries such as PCRE,OpenSSL and so forth. My experience has shown me that PCRE compiles without an error for Windows, but we are talking about Android here(running Linux kernel). And would I need to write a C wrapper for EVERY function in the

NDK Build failing

血红的双手。 提交于 2020-01-05 04:27:08
问题 Am new to working with ndk. Seeing some posts and googling around i found the way to compile my native files using NDK. I installed ndk r7c. However when i used the command ndk-build i got the following error: /cygdrive/d/android-ndk-r7c-windows/android-ndk-r7c/ndk-build /cygdrive/d/android-ndk-r7c-windows/android-ndk-r7c/ndk-build: line 40: dirname: command not found /cygdrive/d/android-ndk-r7c-windows/android-ndk-r7c/ndk-build: line 78: uname: command not found ERROR: Unknown host operating