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
2
votes
0 answers

C/C++ Configuration Problem native-lib | debug | x86

05:43 PM C/C++ Configuration Problem native-lib | debug | x86 Compiler exited with error code 1: D:\JainishData\Sdk\ndk\20.0.5594570\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe -xc++…
2
votes
2 answers

C++ static const multiple declaration error in Eclipse for Android NDK

I've read the similar questions, but the one that answers mine applies only to VisualStudio. I am using Eclipse and developing an Android application using Cocos2d-X, which is a framework that uses Android's NDK. I created a class named Config,…
cesar
  • 8,944
  • 12
  • 46
  • 59
2
votes
4 answers

Issue trying to build PocketSphinx for Android using the NDK on Windows with Cygwin

I'm currently trying to build the PocketSphinx library for Android using the NDK on Windows with Cygwin. I have the PocketSphinxAndroidDemo project code. I also have the pocketsphinx and shpinxbase projects as sub folders of the…
Jason L.
  • 2,464
  • 1
  • 23
  • 41
2
votes
1 answer

How to link .so file in android

I have two projects. The output of first one is libtest.so file. Using this shared object file in the 2nd project, i want to generate final android executable, AndroidExe. I generated libtest.so and its Android.mk is given below LOCAL_PATH := $(call…
RHS
  • 21
  • 6
2
votes
0 answers

Android sensors performance on NDK vs Java

I'm trying to evaluate the pros and cons of using NDK for accessing android sensors. I found some information on internet that android sensors can be accessed by NDK apps as well as Java apps. However, is there any performance advantage of using NDK…
pree
  • 2,297
  • 6
  • 37
  • 55
2
votes
1 answer

.So file for FFMPEG from NDK

I am not able to make .So file for FFMPEG from NDK . I Just Download a zip file from GitHub https://github.com/appunite/AndroidFFmpeg Then i used CYGWIN for using NDK commends for making .so file from jni folder in ffmpeg library then on Cygwin i…
Nikhil Lamba
  • 593
  • 1
  • 6
  • 17
1
vote
0 answers

No Display Android OpenGL ES ndk

I am facing problem when I am trying to display an image using OpenGL ES in android ndk. What I am doing is reading RGB data of an bmp file of size 720x480 and trying to display on emulator. Application is running properly (as Logcat shows this),…
Mayank Prabhakar
  • 133
  • 2
  • 6
  • 14
1
vote
1 answer

Illegal assembly instructions on android: VLD2

I am trying to use an assembly optimized version of a third party library in an android application. Everything compiles and links fine, but I am crashing on a specific assembly instruction : vld2.8 {d8,d10}, [r6, :128]! From what I've read, this…
jslap
  • 711
  • 1
  • 6
  • 21
1
vote
4 answers

provide help for using Android NDK

I want to use android NDK in my project. So my question is, how to integrate and execute default sample project of hello-jni from android NDK ? Please provide me step by step solution on it ... I don't know anything about it...
user833551
  • 21
  • 1
1
vote
1 answer

Can't call callback function from JNI

Problem Description In Android application I have class MainClass and in that class I have MainClass which have public function Callback which do some work. public class MainClass { public class TestClass { TestClass( ) { // …
Viktor Apoyan
  • 10,655
  • 22
  • 85
  • 147
1
vote
4 answers

stlport_shared.so not getting pushed onto the device

I am defining Application.mk APP_STL := stlport_shared When I run ndk-build which in turn producing file: stlport_shared.so in obj/local/armeabi/ but it is not copying this file to libs/armeabi/ Because of which it doesn't get copied to the device…
Nishant Soni
  • 658
  • 1
  • 9
  • 19
1
vote
2 answers

Error building PocketSphinx Demo Project for Android with pocketsphinx_wrap.c

I have downloaded these 3 projects: PocketSphinxAndroidDemo pocketsphinx sphinxbase i have updated C:\android-ndk-r5b\samples\PocketSphinxAndroidDemo\jni\Android.mk file line 006: SPHINX_PATH := /home/eliana/android-ndk-r5b/samples But in the moment…
Andrea
  • 11
  • 2
1
vote
1 answer

Sockets on Native Android Application?

i coded a native android executable in FPC that connects to my server and download weather information using sockets (connect/send/recv calls), works ok on my pc, and to run on android, i sent it to both my phone and emulator, then i went to…
killercode
  • 1,666
  • 5
  • 29
  • 42
1
vote
1 answer

android nkd-r5b+pelyaSDL ./configure error: C compiler cannot create executables

I'm trying to compile Dosbox0.74 for Android with pelya's SDL port (https://github.com/pelya/commandergenius) using the new android-ndk-r5b. Unfortunately the Dosbox ./configure script fails with: configure: error: C compiler cannot create…
Rock
  • 1,216
  • 2
  • 12
  • 20
1
vote
1 answer

Plugin Development for Android 2.3

I am new to Android and using Android 2.3 . There is sample Browser plugin in the source code I am trying to build it but unable to do so. To compile plugin [ In README.txt ] run "make SampleBrowserPlugin" (compiles libsampleplugin.so and builds…
user587507
  • 11
  • 3