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 : Loading pre-built library - Circular dependency dropped

I am trying to import a module into my project. Android.mk in module: LOCAL_PATH := $(call my-dir) include $(CEAR_VARS) LOCAL_MODULE := fromhere1 LOCAL_MODULE_FILENAME := fromhere1 LOCAL_SRC_FILES := $(TARGET_ARCH_ABI)/libfromhere.so include…
Raghuram Vadapalli
  • 1,190
  • 2
  • 13
  • 27
0
votes
1 answer

How to build CLM for android using Androidndk

I was trying to build CLM for android. I create Android.mk file, while building its throws exception My android.mk file look like this LOCAL_PATH := $(call my-dir) include…
sikan
  • 76
  • 9
0
votes
1 answer

Android.mk: accessing a function in a shared library from another shared library

I have a first shared library: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := one LOCAL_SRC_FILES := one.cpp include $(BUILD_SHARED_LIBRARY) I want to call a function in this first shared library from a second shared…
gregoiregentil
  • 1,793
  • 1
  • 26
  • 56
0
votes
1 answer

How to build POSIX thread API

I am trying to build vendor specific RIL using android lollipop source code. My RIL using run time port access. To build run time port access file using one flag LOCAL_LDLIBS += -lpthread in theAndroid.mk When trying to build with mm command…
0
votes
1 answer

Android.mk change local C include directory depending on file

I am building a dynamic library (.so) file for android with around 100 local c files. The files all include a file c_macros.h, but the c_macros.h in question changes for different groups of files. For example, foo0.c and bar0.c need to include…
mikesol
  • 1,177
  • 1
  • 11
  • 20
0
votes
0 answers

psqlDroid & postgreSQL 8.4.1 & Android & full-eng & make psql failed

I want to make an android platform with psqlDroid (for emulator). I followed these instructions: Download & configure the Android source tree Download postgresql-8.4.1 Download the psqldroid patch Extract the postgres archive and move the…
Mike Min
  • 11
  • 4
0
votes
1 answer

Android.mk , inking but not including Shared Libs in output

Having a bit of an issue here. I am trying to port over the open source application IMSdroid to work with newer and more consistent build systems. I already got ANT working correctly, but need Android.mk working as well to make life easier. (Make…
0
votes
0 answers

Access jar file in pure Android Native project

I have an Android project in pure native code. Now, I need to use a third party jar file with it. How can I build my project with the jar file added? Here, FindClass returns NULL because my jar file is not added in the JavaVM. ANativeActivity…
user3364552
0
votes
0 answers

Import program to an Android NDK project having only the Android.mk file

Is it possible to import a program to an Android project (using NDK) having only the Android.mk file?? In that case, please could anyone tell me how I have to do this?
Charles
  • 11
  • 1
0
votes
1 answer

Android.mk output function info only prints single line

I am using some shell commands in the Android.mk, like $(shell rm -rfv $(TARGET_OUT)/xxx) And I want to see the command out put during the building process. However, the out put is always single line when I use either $(info $(shell rm -frv…
Robin
  • 10,052
  • 6
  • 31
  • 52
0
votes
1 answer

How to use Android tesseract Android.mk files in my Android.mk?

I was digging on using android tesseract api in my project. https://github.com/rmtheis/tess-two I copied com_googlecode_leptonica_android and com_googlecode_tesseract_android directory from tess-two to my project jni directory, my jni folder…
Jun
  • 3,422
  • 3
  • 28
  • 58
0
votes
0 answers

Where is the Android.mk file for StagefrightRecorder.so

I am using Android 4.4.2 source code. After I compile the source code, I notice there is StagefrightRecorder.so file in the out folder. I am studying StagefrightRecorder.cpp now, and I am planing to rewrite it. So I wonder where is the Android.mk…
Brendon Tsai
  • 1,267
  • 1
  • 17
  • 31
0
votes
1 answer

Android NDK - No such file or directory compilation terminated - Header files export issue

I am trying to import the TagLib C++ library (http://taglib.github.io/) to Android using the NDK. I was able to successfully compile the library by putting all the source code under /jni/taglibroot/ as per picture bellow: and running ndk-build on…
0
votes
1 answer

Sum native method in c - java.lang.UnsatisfiedLinkError: Native method not found

I'm trying to make a NDK application, but I get this error java.lang.UnsatisfiedLinkError: Native method not found: com.examplejni.MainActivity.sum:(II)I I want to call a sum function written in c from my android application I missing a step to…
0
votes
1 answer

$ meaning in Android.mk

This morning when I was going through Android.mk file. I was just wondering what does $ in the following means For Example in android.mk LOCAL_PATH := $(call my-dir) include $(BUILD_SHARED_LIBRARY) I just have this doubt when do we use the $ in…
Nrupatunga
  • 469
  • 1
  • 8
  • 16
1 2 3
14
15