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

Gstreamer examples in Android Studio

I have been trying to get Gstreamer working in Android studio, following their tutorials, see for example here: https://gstreamer.freedesktop.org/documentation/tutorials/android/link-against-gstreamer.html But in the latest Android studio there is…
Josiki
  • 115
  • 1
  • 1
  • 8
8
votes
2 answers

How is TARGET_ARCH_ABI set in Android.mk

I am trying to build my native application using ndk-build. Suppose I followed this guide to create my Android project: https://rathodpratik.wordpress.com/2013/03/24/build-cc-executables-for-android-using-ndk/ When I try to print out my…
shaveenk
  • 1,983
  • 7
  • 25
  • 37
7
votes
2 answers

NDK: Is it possible to define the android NDK Version in build.gradle so the native code will use a defined version?

Here's my problem: I've got a library stored at Github. That Library contains native code and everything that's needed for handling C++ files. Locally the project/library works fine but I want to include that library as a dependency via JitPack. So…
Thomas Cirksena
  • 717
  • 2
  • 8
  • 28
7
votes
2 answers

What is the difference between "jobject" & "jclass" in C++ NDK

I did 2 different implementations from tutorials I followed and I noticed the parameters are a little different for each one, 1 parameter is jclass and the other is jobject I don't use these parameters at all, but I tried experimenting and switching…
isJulian00
  • 924
  • 2
  • 10
  • 24
7
votes
2 answers

Android NDK Support Version Limited

I have used Android NDK for years, however, recently, I saw the message below when I built CPPs using ndk-build(ndk version 15) Android NDK: android-9 is unsupported. Using minimum supported version android-14. Android NDK: WARNING:…
Sung
  • 1,036
  • 1
  • 8
  • 22
7
votes
2 answers

Compile standalone binaries with NDK 13

With NDK 10 releases, I used to use ndk-build to compile standalone binaries for many different ABIs and multiple API levels. These binaries were to be included in an app. However, I installed the NDK on a new development machine as described in…
just.me
  • 2,155
  • 5
  • 16
  • 25
7
votes
1 answer

WARNING: .../Android.mk: non-system libraries in linker flags

I'm getting this warning while running $ANDROID_NDK_ROOT/ndk-build. The Android.mk is below. $ $ANDROID_NDK_ROOT/ndk-build WARNING:/Users/jwalton/Android-CryptoPP/jni/Android.mk:prng: non-system libraries in linker flags: -lcryptopp…
jww
  • 97,681
  • 90
  • 411
  • 885
6
votes
2 answers

Crashlytics NDK: No symbols for crashes since update to new sdk

It worked fine until we updated to the new SDK, and now it only shows the last java stack frame on the report. The task uploadCrashlyticsSymbolFileFlavorDebug gets called right after externalNativeBuildFlavorDebug, but no symbols on the reports. I…
6
votes
2 answers

External Native Build Issue with Phimp.me project

I am trying to import an Android project. When building the project following errors are shown: Error: Caused by: org.gradle.api.GradleException: executing external native build for…
6
votes
1 answer

Android NDK - building native libraries without Android Studio

I'm working on a c/c++ cross-platform project, constructed of 2 main libraries (with a few external dependencies: ssl, yajl, fribidi). The android solution will include Java files and a JNI layer, all bundled in a AAR file (including assets and the…
Rami Rosenbaum
  • 467
  • 5
  • 18
6
votes
1 answer

NDK build with different mk file for release/debug

We have a setup where our Android game contains a few native libraries that get built using ndk-build. Our project contains the following structure: Root | |-- jni | |-- Android.mk // $include ( lib.mk ) and ( photon/photon.mk) …
lysergic-acid
  • 19,570
  • 21
  • 109
  • 218
5
votes
1 answer

How do I get rid of "deprecated" warnings in legacy Cocos2Dx project

I have a legacy Cocos2D game project. When compiling Android version, I get a lot of warnings: warning: 'cocos2d::CCString' is deprecated (declared at ...) [-Wdeprecated-declarations] I do not plan to update code, I just want to get rid of these…
Nick
  • 3,205
  • 9
  • 57
  • 108
5
votes
1 answer

Linking library build with ndk r10 into project build with ndk r13 using c++_shared stl

We have a prebuild library that was build with android ndk r10e. The Project we are working on is being build with ndk r13b. When trying to link the library our build fails with undefined reference errors for all functions of the library containing…
Arne Fischer
  • 922
  • 6
  • 27
5
votes
2 answers

C++ Firebase linking error in android project

I'm trying to add firebase c++ sdk to my cocos2d-x 3.14 game. So far I've create Android.mk in firebase_cpp_sdk directory: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := firebase-prebuilt LOCAL_SRC_FILES :=…
Makalele
  • 7,431
  • 5
  • 54
  • 81
5
votes
0 answers

How to get rid of "process_begin: CreateProcess(NULL, "", ...) failed." error message in Android Studio 2.2

I added working ndk-build Makefiles to a Android Studio 2.2 project to be able to debug C++ code within Android Studio. While I am able to build and debug the code, I get weird error messages in the Gradle Console window when I switch the build type…
Wolfgang
  • 86
  • 1
  • 6
1
2
3
25 26