Questions tagged [android.mk]

An Android.mk file is written to describe your sources to the build system.

Android.mk build file is written to describe your C and C++ source files to the Android NDK. You can read full file specification here.

211 questions
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
2 answers

Android can't include linux in C program with Android.mk

I'm trying to compile a C program for Android 6. This is my Android.mk: APP_PLATFORM := android-23 LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) # Enable PIE manually. Will get reset on $(CLEAR_VARS). This # is what enabling PIE translates to…
Fabman22
  • 183
  • 12
0
votes
1 answer

I use ubuntu to build my android project,but I can not use VerticalGridView,I need help!

VerticalGridView rely on recyclerview,but when I import support package in Android.mk,the aar package conflict.what can I do to use VerticalGridView?
Joe
  • 23
  • 4
0
votes
1 answer

Android N use Android.mk build BUILD_JAVA_LIBRARY can't generate classes.jar

At Android N open source project, i want to generate my classes.jar use Android.mk,but not.Below is my Android.mk include $(CLEAR_VARS) LOCAL_MODULE_TAGS := optional LOCAL_MODULE := mysdk LOCAL_SRC_FILES := $(call…
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
0 answers

libqmi_cci_intermediates error while building ROM from source

I'm trying to build Turbo ROM (github source) for Nexus 4 (device tree here). I've all required device repos like kernel and vendor. This ROM is AOSP based. I'm getting following error: make: *** No rule to make target …
0
votes
0 answers

How to use android-support-v7-recyclerview without static linkage in Android.mk?

I want to use RecyclerView to replace the list view in my code, and in Android.mk, I use static link LOCAL_STATIC_JAVA_LIBRARIES := android-support-v7-recyclerview, everything works well. But my boss said, we cannot use static linkage in our…
0
votes
1 answer

Standard Library include Android NDK

I've been stuck for two days trying to compile a simple .so library in CPP for a project I'm working on. For some reason the NDK gives me this result no matter what I try: fatal error: random: No such file or directory #include…
Sagie Levy
  • 357
  • 3
  • 12
0
votes
0 answers

An asm error ocured when compile gmp-6.1.0 source code with ndk-build

guys.i want to compile the gmp source code for arm platform,and i have written an android.mk file for it(just some src file and c-includes).failed when compile /mpf/sub.c file with asm error,but i haven't found any asm code in the sub.c file,the…
0
votes
1 answer

ndk-build of static lib - why is it building other files?

I have a project structure as follows. All I want to do is build a static library with SQLite source but for some reason when I run ndk-build, it builds other source too - as if it is including Android.mk files in other…
SparkyNZ
  • 6,266
  • 7
  • 39
  • 80
0
votes
0 answers

Android.mk paths for external libs

I am working on an Android Native project using a couple of libraries (e.g OpenCV) that are not going to be pushed to the repository, mainly due to their size - instead they will be downloaded separately. I am currently linking them my giving an…
Mihai Bujanca
  • 4,089
  • 10
  • 43
  • 84
0
votes
1 answer

Android NDK accessing XML file

I am trying to build a lib written in C++. This lib uses OpenCV and needs to access some xml files for face part recognition. Somehow the file access isn't given and I get an error when running CascadeClassifier faceCascade.load(faceCascadeFile); I…
4ndro1d
  • 2,926
  • 7
  • 35
  • 65
0
votes
1 answer

Case Sensitive include when builing using ndk-build

I am getting a strange problem. I want to build native code of android app which is in C++. I have included some includes in Android.mk. One of the include is like this LOCAL_C_INCLUDES += $(LOCAL_PATH)/borders Now I have a header file pqr/abc.h…
user1205088
  • 229
  • 2
  • 11
0
votes
1 answer

Compile C++ native activity with NDK

I create Android native activity project based on "native-activity" project in NDK. In this project android_main function is implemented in main.c file and it compiles and run without any issues. Now I wants to implement some C++ routines in this…
0
votes
1 answer

android.mk sdl building errors

I've looked around at some questions about writing android.mk files and the "make: * No rule to make target .c needed by .o"** they all center around typos which I don't think that I have. This is an SDL project that builds fine with my CMake build…
user1610950
  • 1,837
  • 5
  • 33
  • 49