Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9150251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:35:16+00:00 2026-06-17T11:35:16+00:00

I’m having a problem with building an Android ROM (galaxys2att, gingerbread). I decided it

  • 0

I’m having a problem with building an Android ROM (galaxys2att, gingerbread). I decided it was time to get smarter about makefile processing. So I created a simple test project to play with. But it’s not getting compiled. Here’s what I did:

1 I create a directory (“myproject/“) under a buildable module (I used “Mms/” but others had the same problem).
2 I create Android.mk in that directory containing

hello:

   echo "Hello from myproject"

(I have no blank line between hello: and echo: the page editor added these)

3 I ran mm in the “Mms/” directory.

Mms and other subproject compiled but no evidence of myproject.

Android.mk in Mms contained line
include $(call all-makefiles-under, $(LOCAL_PATH))

Of course I ran envsetup.sh originally.
What am I missing here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:35:17+00:00Added an answer on June 17, 2026 at 11:35 am

    In the Android NDK, there’s some documentation in .../docs/ANDROID-MK.html. Unfortunately, there’s not much other documentation to find, beside looking into existing makefiles. A minimal Android.mk for building a shared library, might look like this

    # "initialize" Makefile
    LOCAL_PATH := $(call my-dir)
    include $(CLEAR_VARS)
    
    # setup some variables
    LOCAL_MODULE    := hello-jni
    LOCAL_SRC_FILES := hello-jni.c
    
    # do the build
    include $(BUILD_SHARED_LIBRARY)
    

    An Android.mk is not like a regular Makefile. You have a boilerplate, define some variables needed in sub makefiles and then do the work by including predefined Android makefiles.

    BUILD_SHARED_LIBRARY, for example, is defined in build/core/build-all.mk as

    BUILD_SHARED_LIBRARY := $(BUILD_SYSTEM)/build-shared-library.mk
    

    which itself defines and checks some make variables and then includes $(BUILD_SYSTEM)/build-module.mk, and so on.

    Inside build-all.mk, there are other variables defined as well, like BUILD_HOST_EXECUTABLE, BUILD_STATIC_LIBRARY or BUILD_EXECUTABLE, which are used to build a static library or an executable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
We're building an app, our first using Rails 3, and we're having to build
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I've tracked down a weird MySQL problem to the two different ways I was
I don't have much knowledge about the IPv6 protocol, so sorry if the question
I have been unable to fix a problem with Java Unicode and encoding. The
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
Let's say I'm outputting a post title and in our database, it's Hello Y’all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.