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
1 answer

Add functions to be called in Android.mk file

We can do call all-subdir-java-files in a Android.mk file to link all java files recursively. How can we link all c and c++ files using similar way like call all-subdir-cc-files? Can I define a function all-subdir-cc-files on my own and call it in…
dove9
  • 3
  • 3
0
votes
1 answer

Android-NDK how to compile this code? | Beginner

A developer has published its code in GitHub for anyone who wants to create their server for SAMP Android (a project in development that allows them to play Android GTA online). Code Link: https://github.com/4x11/SAMP-Android I want to know which…
0
votes
2 answers

Building a .Jar file with Android.mk

Trying to produce a .jar archive from java files in my folder "java" which is in the same directory as my Android.mk build file. I know the Android.mk file is being run, but it is not producing a .jar This is what i have so far: LOCAL_PATH := $(call…
0
votes
1 answer

Command Substitution with Android.mk

I have come across the command in an Android.mk file that I am working with: include $(DEPENDENCIES_NANOBUFFERS_DIR)/android/jni/include.mk I understand that $(command) is "command substitution". It runs a command, captures it's output, and inserts…
0
votes
0 answers

How to integrate GCM in android.mk project

I would like to integrate GCM(Google Cloud Message) in android.mk projects. I know we have a latest version of FCM. Still I have to use GCM due to server side implementation. I am able to achieve GCM using build.gradle(Android Studio) same thing to…
0
votes
1 answer

ndk-build cannot find module with tag 'cxx-stl/system' in import path

I am a new learner of Android and I'm trying an android ndk demo with Ubuntu. I run ndk-build and get the result below. andylee@ubuntu:~/Downloads/android-ndk-r11-linux- x86_64.tar.bz2/sources/hello/jni$ ndk-build -C…
Andy Lee
  • 33
  • 4
0
votes
1 answer

How to get android.mk file from decompiled APK?

I have an .apk I decompiled and I see there are **.so** files used in that code. How do I find the **.mk** file from that source code?
0
votes
0 answers

Adding two prebuilt static and shared libraries using Android.mk

I am trying to add both Dlib and superpowers libraries to my android project using Android.mk. I included successfully prebuilt shared Dlib library (.so files) using Android.mk, but when I am trying to add the superpower as a static library (the…
0
votes
1 answer

How to load .so files of two pre built libraries in project android?

I have two projects .so files. project one contains prebuilt openssl .so files build using CMake. and second projects contains some .so files which is build using Android.mk. Now My problem is i want to use both projects in my new project. but i am…
Gaju Kollur
  • 2,046
  • 5
  • 23
  • 47
0
votes
1 answer

Android Studio 3.0.1 commenting out lines in Android.mk

Is it not possible to comment out lines in the top-level Android.mk file of an Android Studio NDK project? If I remove the Hello.mk line shown below, I get no errors. If I add a # then I get the error "This file is not part of the project." How can…
SparkyNZ
  • 6,266
  • 7
  • 39
  • 80
0
votes
1 answer

System permissions on vendor partition

I have started to work on AOSP and I have a couple of applications that I do not to update when I update my OS. I tried using the vendor partition and flashing my specified appilcations on the vendor partition which built successfully. During run…
NikhilSN
  • 43
  • 1
  • 13
0
votes
1 answer

NDK cutils and c missing

I am trying to build an executable with NDK. However I am getting the following error: Tools/android-ndk-r14b/build/core/build-binary.mk:687: Android NDK: Module ABCD depends on undefined modules: cutils c …
0
votes
1 answer

Android.mk - How to generate resource file on the fly

While build my APK in the AOSP environment, I want to create a temporary resource file which can be generated like this: echo "
Robin
  • 10,052
  • 6
  • 31
  • 52
0
votes
2 answers

make error : No rule to make target

I am trying to add an application into the android custom rom. While running the make command I get this error: *** No rule to make target packages/apps/MyApp/AndroidManifest.xml', needed…
0
votes
0 answers

using Android.mk I cannot call Java_ functions from MainActivity.java, but using CMakeLists.txt works ok

I have created a simple JNI project, I create test.cpp file and inside it I created Java_com_etc_function1() I used CMakeLists.txt to create test.so shared library I loaded the shared library in MainActivity using System.LoadLibrary('test'); I…
Chris M
  • 11
  • 3