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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:21:06+00:00 2026-05-24T08:21:06+00:00

I have an existing app(not released public yet just internal) based on c++ which

  • 0

I have an existing app(not released public yet just internal) based on c++ which i would like to port to android and use its services in my android app. I use STL and boost in that app.

My question is if i want to port the existing code to android, can i just compile them as static or shared objects.

I was planning to use Android NDK for porting the native c++ code to android as a library, and use it in my android application which is in Java

but because i also use open source libraries and if i use them in my android app’s code should i release the source code of my library as well?

I don’t understand how these license things usually work when it comes to releasing it as an public app. I guess if i compile it as shared library, i guess i should be fine, but i think there will be some issues when it comes to app upload??(or not maybe??)

Second, if i compile them as static libraries, then i guess i need to release my source object files??

I’m not so comfortable in releasing my source, how can i do this effectively? Which path should i take(shared / static object), or will it not even matter because anyways the application would just be an installer and it should work just fine in any mobile phone?? Will there be any open-source violation issues if i do that??

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-24T08:21:07+00:00Added an answer on May 24, 2026 at 8:21 am

    You first have to learn Java… and figure out that there is no STL and boost libraries.

    The Java ecosystem has its own crowd of opensource libraries you can use to be more productive. Including them in your apps is just like copying a set of .jar files in the right folder and add them in the build path.

    About licensing, most issues come with GPL licensed libraries. The GPL license requires any app produced with a GPL component to be also open sourced and licensed with GPL (the famous “contagious” license).

    Anyway, the GPL is rarely used for libraries as this full open source requirement would limit their adoption. There is a derived GPL license called LGPL which does not require your apps to be open sourced.

    Though, libraries are often distributed under more permissive licenses and most of the time it is not an issue to include them in your apps.

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

Sidebar

Related Questions

I have an existing DB with which I would like to build a new
I have recently made a change to an existing app and we would like
I have an existing app that has many, many models. I'd like to log
I have an existing app which P/Invokes to a DLL residing in the same
I have an existing web app that allows users to rate items based on
I have an existing app in which I made the mistake of using String.GetHashCode
I have an existing large(ish) PHP web app (using Apache and MySQL) which now
I have an existing web app which uses Struts for the forward-action... I am
I have an existing ASP.NET app which is configured to connect to a MS
I have an existing app that has a minimum android:minSdkVersion of Android 2.1 I

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.