Questions tagged [ndk-build]

Android NDK's shell script for building C and C++ source code. The tag is to be used with the [android-ndk] tag.

ndk-build is a shell script of Android NDK for building C and C++ source code. Internally, ndk-build uses tool.

The tag is to be used either with or tags.

379 questions
0
votes
3 answers

ndk_build.cmd in cygwin not recognizing included mk files

I have multiple static libs that are built using jni. I have a scheme that includes other mk files, etc to allow me to share compile settings, include files from other dependent projects, etc. I have set it up successfully on the mac and have been…
Shammi
  • 492
  • 5
  • 13
0
votes
1 answer

How to resolve "Relocations in Generic ELF" during ndk-build?

I'm trying to build a static library using a standalone toolchain for a project that has its own build process, which I then wrap with a C++ library and expose to Android (compiled with ndk-build). However, on the ndk-build step I receive the…
Chris Foster
  • 2,639
  • 2
  • 23
  • 30
0
votes
1 answer

liquidfun 1.1.0 ndk-build 2 compile errors

Alright, I'm trying to build liquidfun for the first time and I'm having trouble getting past compilation errors. I'm not to savvy with c/c++ so I'm not sure how to get these fixed so I can build. The error is... [armeabi-v7a] Compile++ arm :…
BSoli
  • 9
  • 4
0
votes
0 answers

NDK Build failing in Android Studio 2.2.3

I'm having trouble getting my NDK to compile properly in Android Studio. Whenever I try running to compile I am getting the following error. *Error:Execution failed for task ':Magic:buildNative'. A problem occurred starting process 'command…
cherucole
  • 560
  • 7
  • 15
0
votes
1 answer

Gstreamer: starting process 'command '/android-ndk-r13b/ndk-build''

I'm having a lot of problems with getting started using Android Studio to work with Gstreamer. So far, I have used Android Studio 2.2.3 and Gstreamer gstreamer-1.0-android-universal-1.10.2 library. Here is the error I am getting: Error:Execution…
CoDeco
  • 5
  • 2
0
votes
1 answer

add opencv in cmakelists.txt android

I am using native code and open cv in android studio project by using ndk-build but i want to use cmake. please tell me how to set these things in cmakelists.txt file. this is my Android.mk file LOCAL_PATH := $(call my-dir) include…
Omer
  • 650
  • 5
  • 15
0
votes
0 answers

Android Studio expternalNativeBuild.ndkBuild: Still possible to autogenerate Android.MK?

I am currently trying to upgrade my JNI library project to use Android studio 2.2.2 All tutorials say I need to point to my Android.mk, thing is, until now it was autogenerated. With using android.useDeprecatedNdk=true the Android.MK was…
Torge
  • 2,174
  • 1
  • 23
  • 33
0
votes
0 answers

Android NDK C print log on android studio 2.2?

Developing ndk programing. How to solve it error. Please give me Error Error:Execution failed for task ':app:linkAppArm64-v8aDebugSharedLibrary'. A build operation failed. Linker failed while linking libApp.so. See the complete log at:…
Sonu Kumar
  • 969
  • 1
  • 11
  • 36
0
votes
1 answer

NDK problems with ndkBuild (gradlew excution)

Salut, I am struggling with this project https://github.com/ibrdtn/ibrdtn/wiki/Build-IBR-DTN-for-Android. I have Android Studio 2.2.2, JRE 1.8.0 I set export PATH=$PATH:/opt/android-ndk-r13b in ~/.bashrc and changed local.properties to following…
malocho
  • 265
  • 3
  • 13
0
votes
1 answer

ndkBuild trouble- non-zero exit value 2

I have problem with my android project which I move from one computer to another. Of course everything works fine before I change computer and Android Studio version (from 1.5 to 2.2). Now when I want to run project I have this…
MaSza
  • 435
  • 7
  • 22
0
votes
1 answer

Android ndk-build linker fails to find prebuilt library function

I'm trying to modify this tutorial to include a prebuilt C library in my Android Studio project (ie. not using the experimental Gradle plugin) http://kvurd.com/blog/compiling-a-cpp-library-for-android-with-android-studio/ The library itself is…
Peter
  • 540
  • 3
  • 12
0
votes
1 answer

How to build library with the same MODULE name for different ABI from different source file in ndk?

in ndk, I want to build library with the same MODULE name for different ABI from different source file. I have two sources under dir: armeabi-v7a and arm64-v8a Here is my Android.mk: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE…
eason
  • 55
  • 1
  • 9
0
votes
1 answer

Ndk build with gradle experimental android model plugin causes java.lang.IllegalStateException: FirebaseApp with name [DEFAULT] doesn't exist.

I try to assemble NDK app with Firebase Cloud Messaging using android model plugin with gradle-experimental. When I call FirebaseInstanceId.getInstance().getToken() The Application invokes java.lang.IllegalStateException: FirebaseApp with name…
0
votes
1 answer

libgvr.so linking best practices?

I'm including the libgvr.so library into my Android.mk by including it in my LOCAL_SRC_FILES: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) GVR_LIB_PATH := …
Kadinski
  • 161
  • 14
0
votes
1 answer

Unable to build NDK project from latest Android Studio (version 2.1.2, Windows 64 bit)

I am unable to build a NDK project from the Android Studio environment but can build it manually using the command console. I get the following error after building: Error:Execution failed for task ':xxxxxx:compileReleaseNdk'.>…