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 6966351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:10:50+00:00 2026-05-27T16:10:50+00:00

I want to compile the lame encoder for Android. How can I find the

  • 0

I want to compile the lame encoder for Android. How can I find the tutorials for Lame and its compiling for Android platform.

Thanks,

  • 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-05-27T16:10:50+00:00Added an answer on May 27, 2026 at 4:10 pm

    There used to be a good blog post on how to compile lame for Android, but for some reason it’s been offline for a while and only available on some dodgy Chinese sites.

    I’ll just copy the content below:

    porting compiling lame encoder to Android ARM arch using Android NDK

    I was looking for a mp3 encoding application in Android Market,
    and found very few, the reason I think Android doesn’t support mp3
    encoding is because mp3 is patented technology. Another reason is I
    guess people prefer Java programming and Android SDK rather than
    Android native development kit.

    Nevertheless compiling libmp3lame library for Android using Android
    NDK is very easy actually.

    1. download Android NDK(also you need Android SDK and Eclipse with ADT plugin) and create simple project.
    2. create directory called "jni" in your project’s directory.
    3. download lame sources, extract, copy all sources from directory libmp3lame to jni directory. Also copy lame.h which is located in include directory of lame sources.
    4. create jni/Android.mk file. it should look like this:
    LOCAL_PATH := $(call my-dir)
    include $(CLEAR_VARS)`
    LOCAL_MODULE    := mp3lame
    LOCAL_SRC_FILES := bitstream.c fft.c id3tag.c mpglib_interface.c presets.c  quantize.c   reservoir.c tables.c  util.c  VbrTag.c
       encoder.c  gain_analysis.c lame.c  newmdct.c   psymodel.c
       quantize_pvt.c set_get.c  takehiro.c vbrquantize.c version.c
    include $(BUILD_SHARED_LIBRARY)
    
    1. clean lame sources, remove what’s left from GNU autotools, Makefile.am, Makefile.in, libmp3lame_vc8.vcproj, logoe.ico, depcomp, folders i386, vector.
    2. edit file jni/utils.h, and replace definition extern ieee754_float32_t fast_log2(ieee754_float32_t x);
      with this extern float fast_log2(float x);
    3. go to the root directory of your Android project and run $pathtoandroidndk/ndk-build and you’re done, you’ll have limp3lame.so compiled.

    Also, the following question on SO might be of interest for you, as it deals with some issues after compiling lame for Android:

    • Invoking native functions of ported library
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to compile a project (with CruiseControl) not only if its source changes,
I want to compile with Proguard my Android project with some additional Android Library
I would want to compile existing software into presentation that can later be run
I want to compile some C++ software that one can download here . It's
I want to compile gcc so i can use the mips R2000 microprocessor compiler
when i want compile my app with the Distribution or Release method i get
I want to compile the following line of code from http://code.google.com/p/enhsim : enh::eout <<
I want to compile a project differently, according to a constant defined by #define,
I want to compile GCC and binutils which would produce 64bit executables. From GNU
I want to compile C code from the Command Prompt in Windows. I have

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.