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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:55:09+00:00 2026-06-10T14:55:09+00:00

I need to port a fairly large Visual C/C++ Project to Android in my

  • 0

I need to port a fairly large Visual C/C++ Project to Android in my recently started internship.
I asked another question about that topic yesterday, asking for some help finding a concept for the porting.
I got an answer suggesting an automated solution (sth like mono for android), but after a day of research explicit for my concept, i tend to a “manual solution”, which shall mean that i manually remove everythin Windos- and Visual specific by hand and replace it with unter Android available Functions.

Now, the first thing that comes to my mind is to first remove everything Visual specific by using the windows gnu Complier, and after that removing everything Windows sprecific by using the linux gnu Compiler (and than make it runnable on Android using the ndk).

This implicates that i port it from Windows to Linux and than from Linux to Android, assuming that the Linux to Android step is a quite small one since i hope that the Code can remain nearly unmodified from Linux to Android because Android is based on the Linux Kernel.

Now my question is: Is this a good idea, or is porting from Linux to Android also an great effort, so that i would do all work twice, once from Windows to Linux and than another time from Linux to Android?!

Suggestions how to do it better are absolutly welcome!

EDIT: Forget to mention, this will be part of an larger Application and does not contain any GUI Stuff (of cource i know in that cause although the linux to Android Step would be heavy work), just Interfaces to the components lying above and below.

  • 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-10T14:55:11+00:00Added an answer on June 10, 2026 at 2:55 pm

    Don’t try to manually remove the “Windows stuff”.

    Instead create an “emulation layer” – define all windows functions used by your project in a header and write their bodies.

    Thus you’ll keep your project untouched and even take it’s new versions if any.

    When porting Windows->Linux you might encounter the following “big” issues:

    • windows registry emulation
    • windows multi-threading model and IPC is a bit difficult to translate into Linux terms. Especially the SetEvent and WaitForMultipleObjects
    • GUI (but I understand, you haven’t any)

    The biggest trouble in porting Linux->Android should be the UI. If you have no user-interaction involved, I would recommend to port win->lin first.

    You could bring and build missing libraries from Linux if needed.

    If any user interaction is needed, you might want to write native Android front-end app in Java and interact with your main program by D-Bus.

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

Sidebar

Related Questions

I'm recently working on a project in which I need to port a portion
I have a Django app that use a django-tagging. I need to port this
I have a bunch of C defines that I need to port to C#.
I inherited a script running on Windows Server 2003 that I need to port
I am a .Net developer who need to port a small project into Mac,
I need to port the ZThread lib to android development environment. I followed this:
My problem: I have code in Java that I need to port to Objective-C
I have application that use mysql database, but now i need to port it
I have the following VB.net interface that I need to port to C#. C#
I have an app on the iPhone and need to port it to android.

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.