Freebasic for Android?

For other topics related to the FreeBASIC project or its community.
Loe
Posts: 323
Joined: Apr 30, 2006 14:49

Freebasic for Android?

Postby Loe » Apr 11, 2015 2:28

Anybody had any success to port/emit android source code?
As I understand with GCC,it allow to emit/produce a code, like ASM or C or am I wrong?
If it possible what route should i take to produce android application with freebasic & gcc

thank you
dkl
Site Admin
Posts: 3217
Joined: Jul 28, 2005 14:45
Location: Germany

Re: Freebasic for Android?

Postby dkl » Apr 11, 2015 18:41

The way to do it is something like this:
1. get Android NDK
2. compile FB rtlib with the gcc toolchain from the Android NDK
3. copy the libs into an fbc installation
4. use fbc -target ... to cross-compile using the gcc toolchain from the Android NDK

chances are it will require adjustments to the FB sources before it works though.
Loe
Posts: 323
Joined: Apr 30, 2006 14:49

Re: Freebasic for Android?

Postby Loe » Apr 12, 2015 0:08

where can i get fb rtlib? is it came in fb installation package?
i have downloaded android ndk but still dont know yet how to use it

thank you dkl
St_W
Posts: 1513
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: Freebasic for Android?

Postby St_W » Apr 12, 2015 2:10

rtlib is freebasic's library and its source code is on github and in freebasic's source package.

You definitely should take a look at the dev section in the freebasic wiki to geht some information about compiling fbc, rtlib and gfxlib2.
http://www.freebasic.net/wiki/wikka.php?wakka=DevToc

I think there were already sucessful ports to android. I even think that I have seen a website explaining how to get fbc running on android. Try searching in this forum and in the web, because I unfortunately don't remember the site' address/name.

//edit: i found the link:
http://rpg.hamsterrepublic.com/ohrrpgce ... or_Android
See also discussion in http://www.freebasic.net/forum/viewtopi ... 51#p202751
Loe
Posts: 323
Joined: Apr 30, 2006 14:49

Re: Freebasic for Android?

Postby Loe » Apr 12, 2015 6:53

Thank you st_w, it seems i lose information so long.
I will try to follow what they achieved rather than to start a new step.

Thank you all

Return to “Community Discussion”

Who is online

Users browsing this forum: No registered users and 8 guests