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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:44:45+00:00 2026-06-11T22:44:45+00:00

I compiled a C project using the NDK and got many .a files which

  • 0

I compiled a C project using the NDK and got many .a files which as I understand, they are nothing else than static libraries. I don’t know exactly what is the difference between .a and .so files but I wanted to ask: I know exactly that with a toolchain in NDK I can import all the .a files and get the .so file but having the .a files how to include the .a files in the .interface files to SWIG the whole 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-11T22:44:46+00:00Added an answer on June 11, 2026 at 10:44 pm

    SWIG does not generate interface files from libraries. You can provide a wrapper to include all relevant header (.h) files, or create the .i file manually, only exposing the relevant C functions.

    Note that Android app cannot work with static libraries, you must build a dynamic library .so to use JNI. You will call System.load() from your Java code to load this .so from disk.

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

Sidebar

Related Questions

I'm using the Android NDK and Cmake to generate shared libraries of my project.
I have a pure Actionscript 3 project, using flash.* libraries, compiles down to about
I've started adding multiple languages to my project using resx files (eg. MyText.resx, MyText.ru-RU.resx,
I am loosing my mind trying to build my NDK project from eclipse using
I have an external compiled project(asp.net) that we are using in our code. I
I have a native shared library compiled using android-ndk one of the C API
I've compiled my project using the 'sencha app build production' command. When I try
Since all files in a web project are compiled into single assembly, then does
I am trying to compile the project which i got from below link .
I have a project in Eclipse which mixes native and Java code using CDT

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.