Trying to port existing Freebasic from Windows to Android

Linux specific questions.
Post Reply
RayTomes
Posts: 36
Joined: Mar 13, 2008 20:18
Location: Auckland, New Zealand
Contact:

Trying to port existing Freebasic from Windows to Android

Post by RayTomes »

Ten years ago I developed a package using Freebasic which also uses Fortran subroutines. The original system is called CATS for Cycles Analysis and Timeseries Software. It is available for free download for windows at https://cyclesresearchinstitute.org/cats/ if anyone is interested and the installation is very primitive.

Now I want to pay someone to port the package to become an Android app. I am confused as to whether the Linux version can be ported to Android.
Is this possible? Any guidance would be much appreciated.

I have set up a project on freelancer to try and get someone to do this for me: https://www.freelancer.com
Landeel
Posts: 777
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Re: Trying to port existing Freebasic from Windows to Android

Post by Landeel »

There's no official Android port of FreeBASIC yet.
While Android uses the Linux kernel, the environment is very different from a standard Linux desktop distro. There's no xorg.
There's an Android port by Teeemcee. I don't remember if it ever got merged. It works, but doesn't have fbgfx.
You can compile console programs, however you will have to use something else if you need graphics. SDL maybe?
RayTomes
Posts: 36
Joined: Mar 13, 2008 20:18
Location: Auckland, New Zealand
Contact:

Re: Trying to port existing Freebasic from Windows to Android

Post by RayTomes »

Landeel wrote:There's no official Android port of FreeBASIC yet.
...
Thank you very much.. :(
TeeEmCee
Posts: 375
Joined: Jul 22, 2006 0:54
Location: Auckland

Re: Trying to port existing Freebasic from Windows to Android

Post by TeeEmCee »

Eventually fbgfx should get ported to Android too, so that graphical apps are possible directly without needing to rewrite your code to SDL/etc.
There's an experimental (unofficial and unfinished) SDL2 backend for fbgfx which could be the most promising avenue for porting fbgfx-based programs to Android. But I've never tried it.

Even then, porting to a mobile device probably still requires a lot of changes in any program to make the UI usable, as well as a lot of trouble installing dependences and figuring out how to compile, package, test in an emulator, on a phone, publish, keep abreast of Android API changes, etc.

Note, I don't update my git repos on sourceforge anymore. My FB Android fork is at https://github.com/rversteegen/fbc/tree/android
It hasn't been merged. Sorry, my fault.

Oh, hi, I see you're in Auckland too.
Post Reply