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

  • Home
  • SEARCH
  • 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 9173917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:39:51+00:00 2026-06-17T16:39:51+00:00

I have these files in jni folder: Android.mk Application.mk m_lanczos.c m_lanczos.h sresolution.cpp and I

  • 0

I have these files in jni folder:

  • Android.mk

  • Application.mk

  • m_lanczos.c

  • m_lanczos.h

  • sresolution.cpp

and I just want to use my library in resolution.cpp like:

#include"m_lanczos.h"

What else do I have to add in Android.mk? Thank you!

 LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE := super
LOCAL_SRC_FILES := sresolution.cpp 
LOCAL_LDLIBS +=  -llog -ldl

include $(BUILD_SHARED_LIBRARY)
  • 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-17T16:39:53+00:00Added an answer on June 17, 2026 at 4:39 pm

    There are two things that could be wrong:

    1. You have forgot to compile m_lanczos.c:
      Then your Android.mk should look like this:

      LOCAL_PATH := $(call my-dir)  
      include $(CLEAR_VARS)  
      
      LOCAL_MODULE := super  
      LOCAL_SRC_FILES := sresolution.cpp m_lanczos.c  
      LOCAL_LDLIBS +=  -llog -ldl  
      
      include $(BUILD_SHARED_LIBRARY)  
      
    2. m_lanczos is a STATIC_LIBRARY:
      Then you have to build it and include it:

      LOCAL_PATH := $(call my-dir) 
      
      include $(CLEAR_VARS)       
      LOCAL_MODULE := m_lanczos
      LOCAL_SRC_FILES := m_lanczos.c  
      LOCAL_LDLIBS +=           #needed librarys for m_lanczos, probably nothing       
      include $(BUILD_STATIC_LIBRARY) 
      
      include $(CLEAR_VARS)         
      LOCAL_MODULE := super  
      LOCAL_SRC_FILES := sresolution.cpp
      LOCAL_LDLIBS +=  -llog -ldl  
      LOCAL_STATIC_LIBRARIES := m_lanczos
      include $(BUILD_SHARED_LIBRARY)
      

    But i think it will be the first one,
    i hope that i helped 🙂

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

Sidebar

Related Questions

Say I have this url: http://site.example/dir/ In this folder I have these files: test.ascx.cs
Say I have all these files in a folder: something(34324).php something(34).php something(3433454546).php something(65565).php something(9887).php
I have a folder of PHP files. The source code to these files is
I am having C++ files and library which I have used in Android using
I have an android application which uses jni and I'm trying to automate build
I have the .java, .class, .cpp, .h files: http://www.ibm.com/developerworks/java/tutorials/j-jni/section2.html After reading TotalFrickinRockstarFromMars's comment, I
I want to use the NSStatusBar object from my Java application using JNI. I
In Android NDK, I build JNI files generated automatically by SWIG. callmanager_wrap.cpp is part
Do both these files have the same content? Or do they provide different functionality
I have these two simple files that define a C++ class with a tryME

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.