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

What file does ndk-build look for

When you use make the idea is you have a Makefile that you start the building off with. With ndk-build it according to the docs just runs $GNUMAKE -f /build/core/build-local.mk but like is there a file in my project I need to have or what files…
FrickeFresh
  • 1,688
  • 1
  • 19
  • 31
0
votes
0 answers

arm-linux-androideabi-g++: error: CreateProcess: No such file or directory

first of all, I'm sorry for bad type English. I want to compile an old source with NDK and cocos2d in windows. this is my command line: ndk-build NDK_DEBUG=1 -C "G:/coc/androiddev/dpsg_android/proj.android"…
0
votes
1 answer

How to create java class in jni folder? is it possible?

I want to hide my java code.So i crate java class inside jni folder and trying to call that class method.But I'm getting ClassNotFound exception while find class in c++.is it possible?.This is my first ndk project.so i don't know about this.Please…
0
votes
1 answer

Tango Client API NDK static library for prebuilt

So when you go to the official Google Tango SDK Download page you will find the Client API comes with both the header file and a .so library for both ARM v7 and v8 but in the Google Sample repo they have this static library file which if not…
FrickeFresh
  • 1,688
  • 1
  • 19
  • 31
0
votes
0 answers

Doesn't Create Libs Directory After ndk-build command in android studio

I am a newer in using android studio ndk. I make a jni direcotry and this direcotry contains an libpcap library , I want compile and make .so file but I don't know why after using ndk-build command , doesn't create libs direcotry also the obj…
0
votes
0 answers

How to set the "-jN" argument to "ndk-build" in Android Studio

Using "ndk-build -jN" can speed up android ndk builds(command line), but how to do in Android Studio? somebody help?????
sevenpounds
  • 2,471
  • 1
  • 13
  • 5
0
votes
1 answer

Android-ndk generating wrong command

I have a problem with android ndk-build not copying my shared libraries to intermediates/ndkbuild folder. I have created my modules in the Android.mk like this: Android.mk LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) EXT_LIB_ROOT :=…
Num Lock
  • 1
  • 1
  • 1
0
votes
1 answer

Android ndk build: Specifying warning level for both C and C++

I'm compiling with ndk-build (r10e) a library mixing C and C++ files. My mk file has lines: LOCAL_CPPFLAGS += -Wall LOCAL_CPPFLAGS += -Wno-unused-parameter LOCAL_CFLAGS += -Wall LOCAL_CFLAGS += -Wno-unused-parameter However, when I compile this…
jpo38
  • 20,821
  • 10
  • 70
  • 151
0
votes
2 answers

Android ndk build can't build 32bit executable file

Depending on my first question, I tried to include the fanotify.h header in my application. The application is based on fsmon (a small application to use the fanotify syscall), I changed some code lines for my purpose and created an Android.mk…
Fabman22
  • 183
  • 12
0
votes
1 answer

ndk-build :- How to get the exact path from calling $(abspath $(LOCAL_PATH)) in windows?

I am doing a sample native project. I have two make files one is Android1.mk and another one is Android2.mk. The second one is placed outside the project folder.My android studio project is located at H:/Ndk_Dev/Demo Android1.mk located at…
SachinS
  • 2,223
  • 1
  • 15
  • 25
0
votes
0 answers

I can't compile telegram source code on android studio

Error:Execution failed for task ':TMessagesProj:processArmv7DebugGoogleServices'. File google-services.json is missing. The Google Services Plugin cannot function without it. Searched…
0
votes
0 answers

FFMPEG with Android SDKS 16-25 and NDK 14 - 'atof' error

I'm trying to compile FFMPEG (version 3.2.4) via NDK along with my android app. Currently I have a compatibility issue with older devices. I am able to compile if I use: APP_PLATFORM := android-23 in the Application.mk but I am unable to load…
isuPatches
  • 6,384
  • 2
  • 22
  • 30
0
votes
1 answer

How to change android gradle ndk -j (--jobs) flag value for clean task?

I use -j flag to speed up ndk compile time like this: defaultConfig { ... externalNativeBuild { ndkBuild { arguments "-j8" } } } Building works fine, but clean produces this error: rm: fts_read: No such file…
0
votes
1 answer

Android NDK Aborting Stop, Failed to create NDK build

# Copyright (C) 2010 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # …
Avijit Karmakar
  • 8,890
  • 6
  • 44
  • 59
0
votes
0 answers

Android NDK application stops unexpectedly

I am using android studio. I have downloaded and installed Android NDK by following the instructions given in this link. The application runs on the emulator perfectly. I have downloaded the strace for android from here. The problem is that when I…