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
1 answer

Errors in building ffmpeg for android

I have followed lots of tutorials for buildinf ffmpeg.so file like http://enoent.fr/blog/2014/06/20/compile-ffmpeg-for-android/ http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/ and many more tutorials but at last i have stuck to this error…
user3269550
  • 452
  • 4
  • 15
0
votes
0 answers

so files from build.gradle has different size with cmdline ndk-build

I'm use 2 way to generate so.But the result has different size. 1.Using gradle to generate so gradle result so file is 53.4k 2.Using cmdline ndk-build to generate so ndk-build result so file is 25.1k This is my Andoid.mk LOCAL_PATH := $(call…
0
votes
1 answer

error: expected nested-name-specifier error is coming on integrating Breakpad in android app

I was following the steps given in URL: https://github.com/ashtom/breakapp/blob/master/README.md to test a sample hockey app with Breakpad integration, however i am getting the following error on executing the Step 4 (ndk-build). I have the…
AmanSinghal
  • 2,404
  • 21
  • 22
0
votes
0 answers

Android nkd-build script finisched with error (exit value 2)

Every time i try to build an android app, that uses ndk to run native code, i get the following error: Error:Gradle: Execution failed for task ':sampleNDK:ndkBuild'. > Process 'command 'C:\NDK\android-ndk-r10e/ndk-build.cmd'' finished with non-zero…
0
votes
1 answer

Why does NDK compiler not recognize a LOCAL_CFLAGS definition?

I have some pre-existing code I'm trying to compile into an NDK library. There's a simply #ifndef I need to execute correctly, but in my Android.mk the var I've defined with LOCAL_CFLAGS is not recognized. It thinks it's a command line option …
Alyoshak
  • 2,696
  • 10
  • 43
  • 70
0
votes
1 answer

How to compile dumpsys as an standalone application with Android NDK?

I would like to compile dumpsys as an standalone application using Android NDK. However, when I enter the command ndk-build I encounter the following error: fatal error: utils/Log.h: No such file or directory Is it at all possible to compile dumpsys…
Matt
  • 796
  • 12
  • 25
0
votes
1 answer

How to cause/stop Android ndk-build to display build steps

I am using the Android NDK to build a project. This morning the output of ndk-build started displaying tons of output as if I had set a flag somewhere to debug the make process. Below is part of the log, showing where this output starts. The…
Sam
  • 128
  • 9
0
votes
1 answer

all-proto-files-under doesn't work on android.mk

Searching on several projects, I found this line on their android.mk $(call all-proto-files-under, $(src_proto)), and I tried to use this like that: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := my_test src_proto :=…
Alex
  • 3,301
  • 4
  • 29
  • 43
0
votes
1 answer

Error in building linphone on windows using Cygwin

It has been more than 4 days now and I am still not able to make the build using cygwin. I have almost done everything necessary to make a successful build but stuck at the same error which i faced 3 days ago. I have done everything said in the…
shubham0703
  • 59
  • 2
  • 12
0
votes
1 answer

Building ndk (ndk-r10b) samples on ubuntu

I`m trying to build and launch android ndk samples, on version ndk-r10b - it is important, because on older version ndk-r9c i launch android application samples with success(without any errors). for building i use "ndk-build" command in the folder…
Maksym
  • 41
  • 7
0
votes
1 answer

In ndk-r10 release, do we need to run ndk-build if already add-native-support?

I am learning NDK environment, there is lot of tutorial/example to teach on building a simple design which using NDK/JNI. Some say we need to run ndk-build to generate the .so file, some say no need, just link the project with "add native support".…
0
votes
1 answer

Android NDK - How to function call another prebuilt library

I had a pre-built .so file , my Android.mk is: LOCAL_MODULE := hello LOCAL_SRC_FILES := libfoo.so hello.c LOCAL_ALLOW_UNDEFINED_SYMBOLS := true include $(BUILD_SHARED_LIBRARY) Now, what i want is how to build hello.c , which calls a function (…
Ahmed Yusuf
  • 151
  • 3
  • 13
0
votes
1 answer

Warning : Overriding commands for target Android Makefile

I've got an issue building my C++ code using NDK r9d, since I try to compile C files using C++ compiler (G++) I've got this warnings : C:/Android/ndk/build/core/build-binary.mk:393: warning: overriding commands for…
0
votes
1 answer

How do I configure my Android.mk compilation to export all symbols by default for debug builds only?

I have a native shared library (.so) in my app that I would like to run unit tests on. In particular, there are several functions in my .so that I would like directly call from my unit tests. However, I do not want these functions to be visible in…
hopia
  • 4,880
  • 7
  • 32
  • 54
0
votes
1 answer

Android NDK build error . do not found libcutils.so

i want to build the expolid code ( https://github.com/revolutionary/zergRush/blob/master/zergRush.c) Android.mk LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := zergRush LOCAL_SRC_FILES := zergRush.c base…
fazhang
  • 485
  • 6
  • 13
1 2 3
25
26