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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:15:03+00:00 2026-05-29T04:15:03+00:00

I am currently writing a genre classification application as my final year project in

  • 0

I am currently writing a genre classification application as my final year project in Computer Engineering. I initially wrote the feature extraction code (implementing FFTW) in C and now I need to implement it on Android via the NDK.

This is my first NDK project so I’m still getting the hang of things but I have compiled the FFTW3 library for Android according to this guide. I didn’t do the very last step because I didn’t think it was right for what I need.

My question is how do I, after the compile step, use the library in the main NDK application that calls on it? Do I everything normally in Application.mk just with LOCAL_STATIC_LIBRARIES set to the libfftw3.a that I just compiled? And then I don’t need to have any -lfftw3 linker flags like I normally would right?

  • 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-29T04:15:03+00:00Added an answer on May 29, 2026 at 4:15 am

    You can use prebuit FFTW library (no matter how did you build it).

    Or you can build FFTW in Android.mk makefile with the whole project.

    Android.mk content will be:

    # Prebuilt FFTW library
    include $(CLEAR_VARS)
    LOCAL_MODULE := fftw
    include $(PREBUILT_STATIC_LIBRARY)
    
    # or
    
    # Build FFTW library
    include $(CLEAR_VARS)
    LOCAL_MODULE := fftw
    # TODO put your static libs build flags
    include path_to_fftw_sources/$(LOCAL_MODULE).mk
    include $(BUILD_STATIC_LIBRARY)
    
    include $(CLEAR_VARS)
    LOCAL_MODULE := YourProject
    # TODO put your shared lib build flags
    include path_to_your_project/$(LOCAL_MODULE).mk
    LOCAL_STATIC_LIBRARIES += fftw
    include $(BUILD_SHARED_LIBRARY)
    

    I have written path_to_fftw_sources/$(LOCAL_MODULE).mk for building fftw static library and path_to_your_project/$(LOCAL_MODULE).mk for building your shared library. It is often better to put LOCAL_SRC_FILES and LOCAL_C_INCLUDES to the separate .mk file.

    You can read more about Android.mk file in docs/ANDROID-MK.html document in your NDK distribution.

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

Sidebar

Related Questions

I am currently writing a little bootstrap code for a service that can be
The application I'm currently writing is using MVVM with the ViewModel-first pattern. I have
I'm currently writing an application that allows one to store images, and then tag
I'm currently writing a tag cloud system. So I wrote the following sql schema
I'm currently writing a application that needs to capture some images. I start the
I'm currently writing a program to shut down a computer when over a period
Im currently writing a database for a school project. Im using MySQL on xampp
I am currently writing a project where I make a heavy use of ListT
I'm currently writing unit tests for my Ruby on Rails application, and one of
I am currently writing a plugin for a game where one feature includes the

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.