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
1
vote
3 answers

Android - NDK integration is deprecated error

I am trying to import an project from github called android-netspoof , I am new to NDK platform tools , I don't know about it. I already downloaded the NDK and extracted the zip , and added the path in environment variables. I want to import that…
GeekWithGlasses
  • 572
  • 2
  • 12
  • 30
1
vote
2 answers

How to use make trace option from ndk

****This question is about invoking make trace option from ndk-build********* I am trying to trace through a make file, and I get an error. It is my understanding that ndk is shell, which calls make. So I should be able to invoke make switches; and…
user3326293
  • 817
  • 1
  • 14
  • 37
1
vote
0 answers

Error Inside Android NDK

I am trying to build a NDK project from a windows Visualcpp project. Some of the errors which i get from the NDK side when I build are : 1) "'size_type' does not name a type line 348, external location: …
1
vote
0 answers

ranlib error while cross-compiling ffmpeg x264 for android on osx 10.8

I wanted to compile a ffmpg x264 lib for android https://github.com/edisonw/android-ffmpeg-x264. I am using Mountain Lion (Mac OSX 10.8.4). I already installed libtool and yasm via brew but still get the following…
dschniepp
  • 1,083
  • 12
  • 19
1
vote
0 answers

How to get video content from framebuffer (/dev/graphics/fb0)?

I am accessing (framebuffer) fb0 file from native code and successfully able to get image content with fb0. But if I play a video or open the camera, it gives me black screen. At that time if I rotate the screen, it gives some images of video, again…
ankita gahoi
  • 1,532
  • 2
  • 15
  • 28
1
vote
2 answers

How to use libusb.so library functions in C or JAVA coding after library is successfully loaded?

I am trying to use libusb.so How can I make use of libusb library in my android project. I have compiled libusb library for my android project using libusb source.Now I want to use the functions of newly generated library libusb.so in my code. I've…
Pankaj
  • 81
  • 2
  • 9
1
vote
0 answers

Android NDK OpenCV - Invalid Arguments for substr

I want to user my c++ code in a android/opencv/ndk project. When I paste the files into the jni folder and open them, the compiler gives me invalid argument errors for functions like substr or fwrite. An example: #include #include…
Dirk Siegmund
  • 131
  • 2
  • 11
1
vote
2 answers

Android NDK: No rule to make target all and native method not found

I am using android NDK to use one c++ library in my application. When I run my application, I always got a error message which is java.lang.UnsatisfiedLinkError: Native method not found. I checked my code many times but I did not find anything.…
SavasCinar
  • 667
  • 3
  • 8
  • 25
1
vote
1 answer

How to build .apk file from mozilla fennec build instructions

I have tried to build Mozilla Fennec browser for Android. I have followed the instructions. It doesn't show any issue until the make instruction: make -f client.mk build_and_deploy It stops at make -C . fast-package instruction since the compiler…
intrepidkarthi
  • 3,104
  • 8
  • 42
  • 75
1
vote
2 answers

Compile protobuf-2.4.1 code on NDK, version (android-ndk-r8-windows.)

Hi All I am trying to compile protobuf-2.4.1 code on NDK version (android-ndk-r8-windows.) I have set…
Vishwajeet
  • 11
  • 1
  • 3
1
vote
0 answers

NDK on ARM-9 and ARM-11

From developer.android.com The latest release of the NDK supports the following instruction sets: ARMv5TE, including Thumb-1 instructions (see docs/CPU-ARCH-ABIS.html for more information) ARMv7-A, including Thumb-2 and VFPv3-D16 instructions,…
gpuguy
  • 4,607
  • 17
  • 67
  • 125
0
votes
1 answer

Invoke Java code from C++ crashes on Android

PS: Actually, this is working, I have another problem that I'll update this question soon. I has the following native code: JNIEXPORT void JNICALL Java_com_rmsdk_wrapper_RMServices_init(JNIEnv *env, jobject thiso, jstring prodName, jstring…
0
votes
2 answers

java.lang.ExceptionInInitializerError Caused by: java.lang.UnsatisfiedLinkError: Library not found

I have existing code in c and c++. I have added these c files and cpp files in Android.mk file. And I have successfully created the .so files named itv.so in my application. But now when I am trying to run Android application It is showing error…
geeta
  • 689
  • 3
  • 17
  • 33
0
votes
0 answers

Passing std::byte* through JNI to java

Tried this: void sendInfo(std::byte* something, long dataSize) { JavaVM* vm = nsCtx.javaVM; JNIEnv* env; int envState = getEnvState(&env, vm); if (envState == JNI_OK || envState == JNI_EDETACHED) { LOGD("Environment…
0
votes
0 answers

Error Including *.so library in Android Studio NDK Project

I Pasted .so file into my new project folder jniLibs->arm64-v8a jniLibs->armeabi-v7a Inside MainActivity.java file I declared static { System.loadLibrary("filename"); } @Override protected void onCreate(Bundle…