Tag: android-ndk

Problems trying to build PocketSphinx for Android using NDK

I’m trying to build PocketSphinx for Android using the PocketSphinxAndroidDemo project. I’ve given up om my quest to build it using Cygwin and Windows and installed an Ubuntu VM. I’m making progress but I seem to be stuck and I can’t seem to figure it out. It has to be something simple that I’m missing. […]

Benefits of using Native in Android

So I am beginning a semester long project and my group has decided to use Android as the target platform. This spiked my curiosity on a question in particular. I’d imagine under the large majority of the development cases Java and the virtual machine are the best paradigm to be developing under. My question is: […]

cmake fails with android ndk

I am trying to build something using the Android NdK standalone toolchain. However, I am running into these errors. CMake Warning at cmake/android.toolchain.cmake:387 (message): Using value of obsolete variable ANDROID_NDK_TOOLCHAIN_ROOT as initial value for ANDROID_STANDALONE_TOOLCHAIN. Please note, that ANDROID_NDK_TOOLCHAIN_ROOT can be completely removed in future versions of the toolchain. Call Stack (most recent call first): […]

How to include a prebuilt static library in Android NDK's Android.mk file correctly?

I’m stuck getting my libraries included inside the Android NDK build. The libraries are correctly compiled and work fine when creating a dummy cpp file and building everything with a direct g++ command in the shell. The current Android.mk file doesn’t work and throws an error that the corresponding header files (that are part of […]

React-Native + Android, only build for armeabi architecture

NOTE: I’m being provided those libraries, I can’t make other ones for other architectures. I’m currently porting an Android app to react-native that uses native libraries, but I only have the armeabi ones available. No problem so far with the original project, since armeabi is supported by all the x86/x86_64/armeabi-v7a/arm64-v8a devices. Then when I generate […]

Use C with Android ndk

I am trying to develop a Android project that makes a simple call from Java code to native C code. I refer this link for my guidance: http://mobile.tutsplus.com/tutorials/android/ndk-tutorial/ when I am compiling the native.c using :ndk-build it shows: ndk-build command not found Could anyone give the reason for this? thanks ,

Using vanilla GCC (or Clang) with android NDK

Android-NDK ships its own compiler to build the native code. The version shipped with my current android-NDK installation is arm-linux-androideabi-g++ (GCC) 4.6.x-google 20120106 (prerelease), I guess it’s a fork of GCC 4.6. What are the differences between it and a regular (vanilla) GCC 4.6? Is it producing better code for ARM platforms? I’d like to […]

Android ndk can't find atof function

I am trying to use an open source C library in my Android project. This library uses the atof() function. I know that atof() is a function defined in the standard C library (stdlib.h). Therefore, it should be implemented in standard C library on the Android NDK (bionic library). But, when I try to load […]

Linking with updated library on Android

I have developed an application and a native library for Android. The native library uses openSL ES for audio processing. In my Android.mk file I have the following statement: LOCAL_LDLIBS := -lOpenSLES So I’m guessing that this means that the application will dynamically link in the openSLES library from the device’s system/lib folder at the […]

Android – alternative for OpenCV?

I need to make a image recognition app. I was going through OpenCV tutorial and it says i need to install OpenCV manager from Google play which i think is not good from a user point of view. But after digging for many hours i noticed that OpenCV is the most popular and reliable among […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.