Questions tagged [android-ndk-r5]

The Android Native Development Kit enables users to call C/C++ code from their applications running in the Dalvik Virtual Machine. Use this tag only for questions relating specifically to revision 5 of the Android Native Development Kit. Otherwise, use the [android-ndk] tag, and make sure to include that anyway.

The Android Native Development Kit enables users to call C/C++ code from their applications running in the Dalvik Virtual Machine.

Use this tag only for questions relating specifically to revision r5 of the Android Native Development Kit. Otherwise, use , and make sure to include that anyway.

Information about specific features in revision 5 is available at the NDK Revision History page.

78 questions
0
votes
1 answer

Best Android Device for 3d Development

Im planning to port my iPhone Game to Android, since the Android Simulator does not support GLES v2, I need to purchase a device to port the game. What Im looking for is a device that have the following: Android v2.3.x OS Graphic Chipset (from…
McBob
  • 219
  • 5
  • 13
0
votes
1 answer

How to build muPDF for android (Need help)

i've been working on this for a while now but i'm still stuck. This is what i've done... Installed Eclipse Installed SDK, NDK Created a project from an existing source... which i browsed to muPDF/android Then i installed Cygwin to build the…
sasara
  • 1
  • 4
0
votes
1 answer

Android NDK compilation error. No such file error for the file already there

Hi I want help to work with android NDK. I have set up my eclipse Helios to work with NDK with help of this tutorial. I am using windows. When trying to build I am shown this error make[1]: Entering directory…
Prasham
  • 6,646
  • 8
  • 38
  • 55
0
votes
3 answers

Android ndk build mysteriously failing under cygwin with "Error 126"

I have a JNI application built by ndk-build (using Android NDK r5b and cygwin make 3.81). The build usually works, by occasionally fails with: ... Compile++ thumb : components <= Component.cpp make: ***…
Jan Hudec
  • 73,652
  • 13
  • 125
  • 172
0
votes
1 answer

NDK - Error trying to generate a build.xml file for Hello-jni

I just installed Android NDK, r5b, and while trying to follow the steps from Exploring the hello-jni Sample, on the command line I receive the error: MacBook-2:~ mvermant$ cd ndk/samples/hello-jni MacBook-2:hello-jni mvermant$ android update project…
Adinia
  • 3,722
  • 5
  • 40
  • 58
0
votes
0 answers

Fatal signal 7 (SIGBUS) at 0x3f8921d5 (code=1), thread 31131 (ohamsaa.ndktest)

I am trying to record audio using ndk and converting audio into frequency format. I refered this link to record audio.( https://audioprograming.wordpress.com/2012/03/03/android-audio-streaming-with-opensl-es-and-the-ndk/ ).I can record audio but…
0
votes
1 answer

Native functions throw UnsatisfiedLinkError in custom view, despite working in main activity

For some reason I can only call native functions from my main activity and not any custom views that I've created. Here is an example file (I followed a tutorial, but renamed the classes…
Mark Ingram
  • 71,849
  • 51
  • 176
  • 230
0
votes
1 answer

ndk-build :- How to get the exact path from calling $(abspath $(LOCAL_PATH)) in windows?

I am doing a sample native project. I have two make files one is Android1.mk and another one is Android2.mk. The second one is placed outside the project folder.My android studio project is located at H:/Ndk_Dev/Demo Android1.mk located at…
SachinS
  • 2,223
  • 1
  • 15
  • 25
0
votes
1 answer

Android openCV and NDK integration in android studio 2.1.2

I'm just getting started with Android NDK and openCV in android studio. I have followed all the steps (which includes importing openCV-sdk) mentioned here https://www.learn2crack.com/2016/03/setup-opencv-sdk-android-studio.html and followed basic…
Zubair Ahmed
  • 2,857
  • 2
  • 27
  • 47
0
votes
2 answers

android studio 2.1 issue with NDK

I am trying to use AndEngine with Android Studio 2.1 and I am running issues specifically with the NDK stuff. The version of AndEngine I am trying to use is the GLES2-AnchorCenter for reference. I create my project and add AndEngine as a module,…
Ryan Cori
  • 460
  • 1
  • 3
  • 11
0
votes
1 answer

Android Studio NDK development

I'm developing an Android app using C++. When I try to create public native String HelloJNI() in MainActivity.java it's showing this error: Reports native method declaration in java where no corresponding JNI method found in project
vikas
  • 1
  • 2
0
votes
0 answers

How to fix fatal error as a result of adding a header file

I am trying to compile a device driver for my target platform which is Snapdragon msm8974. I added some more code to an already tested module; and added more header files. One of the header files was not in my include directory, so I searched in my…
user3326293
  • 817
  • 1
  • 14
  • 37
0
votes
1 answer

Compiling libFLAC without creating versions

I'm trying to port libFLAC to android, and I'm running into the following problem. I believe i've gotten the android toolchain properly configured, and I can compile a .so file. However I get three .so files from the process: libFLAC.so,…
Nathaniel D. Waggoner
  • 2,856
  • 2
  • 19
  • 41
0
votes
1 answer

Running c binary in android using adb

I have created one C binary named "SocketServer" for android. I pushed the binary into my rooted android phone's /data/local/tmp directory using adb shell push SocketServer /data/local/tmp/ I have given permission to the exe using adb shell…
user2269141
  • 21
  • 1
  • 5
0
votes
1 answer

How to open android phone internal memory mmcblk0 in read mode using open()

I am doing my research in android phone forensics. i want to access android phone internal memory using open() and read() linux call. I implemented these calls in c using NDK. This is my native C code: jint fd; jlong ReadMemory(jbyte* buf, jint…