Use this tag on questions related to "Android.mk" files which are written to describe your C/C++ sources to the Android NDK build system.
Questions tagged [android-make]
54 questions
2
votes
0 answers
Creating Protobuf C++ files from .proto file in Android.mk
I am trying to get to run this simple command inside the Android.mk to create .cc and .hh files out of the comm.proto file given below, which is needed for my c++ library to be built.
$(shell $(LOCAL_PATH)/ext/bin/protoc
…

sp497
- 2,363
- 7
- 25
- 43
2
votes
1 answer
Android makefile call import path variable value
In an android makefile I have a following line
$(call import-add-path,/Users/bruno/Dev/cocos2d-x-2.1.5)
Now, I am working with several people and having that line is not very people-friendly. I have tried defining that path in an environment…

Bikush
- 654
- 8
- 22
2
votes
0 answers
Including Python libraries within Android.mk
Say I've got a file structure like so:
/top_lib
Android.mk
/sub_lib1
Android.mk
__init__.py
cheese_maker.py
/middle_lib/
Android.mk
/sub_lib2
Android.mk
__init__.py
…

polkid
- 313
- 4
- 15
2
votes
2 answers
Android 4.4, undefined reference to __printf_chk
I am moving some libraries from Android 4.3 to Android 4.4
The projects that used to compile in Android 4.3 now gives below error when compiled using Android 4.4…

vishalm
- 477
- 5
- 12
1
vote
1 answer
How to list all possible packages / modules in AOSP via command line?
In AOSP, I often use the following to setup my environment and build target and build the entire image:
$ cd ~/aosp
$ source build/envsetup.sh
$ lunch sdk_phone_x86_64
$ m
I also like to use the following to build a specific package/module instead…

code
- 5,294
- 16
- 62
- 113
1
vote
1 answer
How to shrink resources and remove unused language resources with Android.mk
I am working on AOSP Settings application which builds properly.
I am trying to build "user build" and have enabled proguard using proguard.flags and disabled jack compilation
ANDROID_COMPILE_WITH_JACK := false
LOCAL_PROGUARD_FLAG_FILES :=…

Rinav
- 2,527
- 8
- 33
- 55
1
vote
1 answer
How to add an app with Android Room as a system app compiled with the makefile?
Trying to install a simple app that uses the Android Room to build a database, as a system app in AOSP. Stuck at what to include in the Android.mk makefile.
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(call…

SamT01
- 125
- 1
- 14
1
vote
1 answer
Vendor application build AOSP
I have to build an android application in AOSP source tree with vendor config.
Which have some pre-build .so files, I have loaded the .so files by using the following configuration
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS…

Midhun PM
- 512
- 1
- 7
- 24
1
vote
0 answers
is it possible to use "minifyenabled = true" in Android.MK or any replacement for that
I have an android studio based project.To reduce the resource I have used the
android {
buildTypes {
release {
shrinkResources true
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
…

Midhun PM
- 512
- 1
- 7
- 24
1
vote
1 answer
How to find the reason why some errors occur when booting android devices
i have downloaded and built the android sources, and i have flashed some img files(system.img,boot.img,userdata.img,recovery.img,cache.img) into the android device.Then,i tried to start up the android device,but it was not successful to finish…

zhang hang
- 27
- 5
1
vote
1 answer
How to removing package in custom build?
I'm developer base on Qualcomm platform.
I'm wondering if there's an easy way to define which packages are made in build,and I've set up my own patch,like below:
`git diff target/product/core.mk
diff --git a/target/product/core.mk…

caopeng
- 914
- 13
- 23
1
vote
1 answer
Android studio doesn't appear to be reading .mk files
I am using Android Studio 1.3 with the experimental ndk plugin enabled. I am trying to compile Box2d by placing the Box2d folder into the jni folder. I have Android.mk and Application.mk in there as well. Whenever I try to compile Android studio…

NJGUY
- 2,045
- 3
- 23
- 43
1
vote
2 answers
Missing Resource file when building with Android.mk
I have resource files in res/drawable-xhdpi folder of my Android project.
Android Studio doesnt have any problem building the application and it runs fine.
I am moving the project to Android.mk and i get the following at build time "warning: no…

Anil Maddala
- 898
- 16
- 34
1
vote
1 answer
LOCAL_LDLIBS doesnt work but LOCAL_LDFLAGS works. why?
I was trying to include liblog in my application to use the android log printing.
I tried including it with LOCAL_LDLIBS
LOCAL_LDLIBS := -llog
It doesnt work. I get the below error:
error: undefined reference to '__android_log_print'
I see few…

Sandeep
- 18,356
- 16
- 68
- 108
1
vote
1 answer
Cannot build local shared library in Android Ndk
I want to build library .so for version 4.0.3 but I am unable to do so.
What I feel is that these problems are caused because my .mk file is not
linking with the libraries.
Android.mk file
Binder.cpp \
BpBinder.cpp \
CursorWindow.cpp…

Mohit
- 505
- 8
- 31