Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Godot tools for Android #267

Closed
moocow1452 opened this issue Apr 8, 2014 · 64 comments
Closed

Compile Godot tools for Android #267

moocow1452 opened this issue Apr 8, 2014 · 64 comments

Comments

@moocow1452
Copy link

Can the entire program be compiled into a version for Android, so that game development can be entirely completed on the go?

@TheoXD
Copy link
Contributor

TheoXD commented Apr 8, 2014

With a little effort I believe that's possible. The editor is made within the engine (that's one of the things I like about it) so the question is who is going to do it first :)

@reduz
Copy link
Member

reduz commented Apr 8, 2014

There are a few issues to solve in order to do this on Android, such as:
-control scheme
-how to run the game from within the editor

Other than that, don't see why not.

On Tue, Apr 8, 2014 at 12:34 PM, TheoXD notifications@github.com wrote:

With a little effort I believe that's possible. The editor is made within
the engine (that's one of the things I like about it) so the question is
who is going to do it first :)

Reply to this email directly or view it on GitHubhttps://github.com//issues/267#issuecomment-39862985
.

@moocow1452
Copy link
Author

How you compile a product using the product you have yet to compile is a
little confusing, but I appreciate the results. Anyway, running Android x86
on my Nettybook, so I'll take a crack at a dirty port and see what happens.
On Apr 8, 2014 11:34 AM, "TheoXD" notifications@github.com wrote:

With a little effort I believe that's possible. The editor is made within
the engine (that's one of the things I like about it) so the question is
who is going to do it first :)

Reply to this email directly or view it on GitHubhttps://github.com//issues/267#issuecomment-39862985
.

@amagnoni
Copy link

i didnt try, but compiling godot editor for arm linux would be better!
due to chromebooks releases with arm processors.

@moocow1452
Copy link
Author

Yeah. Was also thinking about asking the guys at RetroArch to see if they
wanted to throw a brain behind a Godot To Go Core, since they have a
libretro api, and are on damn near anything already.
On Apr 11, 2014 12:30 AM, "amagnoni" notifications@github.com wrote:

i didnt try, but compiling godot editor for arm linux would be better!
due to chromebooks releases with arm processors.

Reply to this email directly or view it on GitHubhttps://github.com//issues/267#issuecomment-40169926
.

@akien-mga akien-mga changed the title Compile Godot Maker for Android Compile Godot tools for Android Oct 29, 2015
@akien-mga akien-mga added this to the Later milestone Oct 29, 2015
@akien-mga akien-mga removed this from the Later milestone Jan 5, 2016
@akien-mga
Copy link
Member

akien-mga commented Jul 19, 2016

Someone mentioned successfully building Godot for ArchlinuxARM on IRC a couple days ago (and apparently out of the box).

@blurymind
Copy link

please note that while they are the same architecture, compiling it for rasberry pie will not allow it to run on Android

@blurymind
Copy link

From a correspondence on twitter:

todor imreorov ‏@blurymind 16h16 hours ago
@reduzio can godot editor run on #android to develop games on mobile like #love2d can? Would love to have it on my galaxy tab :D

Juan Linietsky ‏@reduzio 14h14 hours ago
@blurymind would not be difficult to do, but not a priority for the main devs. If anyone wants to contribute this work be welcome.

Basically Godot can compile games to android, but the actual editor doesnt have a port yet.
With the rise of android based tablets, I see more and more people use their tablet with a keyboard for work.
As an owner of an android galaxy note 10.1 and someone who spends 4 hours travelling on the train every work day, I started contemplating using that time to do some coding.

Unfortunately there are not many options at the moment, because most game engines have a huge footprint. The only I found that works well is Love2d, but to develop for it you dont have nice things such as code autocompletion on android.
https://love2d.org/

I think that having the editor also work on mobile devices would be a great way to take advantage of it's small footprint and bring to those platforms something that is currently not very available for them.

@reduz says it's not difficult to do, and work would be welcome.

here is love2d on the google play store btw
https://play.google.com/store/apps/details?id=org.love2d.android
having Godot at the playstore will give it more exposure, as there is currently no competition - apart of love2d.
There is seriously no other game engine editor on there atm.

@reduz
Copy link
Member

reduz commented Sep 14, 2016

I don't think it will be awesome, but a waste of time. If anyone wants to
do it, be welcome.

On Wed, Sep 14, 2016 at 6:25 AM, Todor Imreorov notifications@github.com
wrote:

From a correspondence on twitter:

todor imreorov ‏@blurymind https://github.com/blurymind 16h16 hours ago
@reduzio can godot editor run on #android to develop games on mobile like
#love2d can? Would love to have it on my galaxy tab :D

Juan Linietsky ‏@reduzio 14h14 hours ago
@blurymind https://github.com/blurymind would not be difficult to do,
but not a priority for the main devs. If anyone wants to contribute this
work be welcome.

Basically Godot can compile games to android, but the actual editor doesnt
have a port yet.
With the rise of android based tablets, I see more and more people use
their tablet with a keyboard for work.
As an owner of an android galaxy note 10.1 and someone who spends 4 hours
travelling on the train every work day, I started contemplating using that
time to do some coding.

Unfortunately there are not many options at the moment, because most game
engines have a huge footprint. The only I found that works well is Love2d,
but to develop for it you dont have nice things such as code autocompletion
on android.
https://love2d.org/

I think that having the editor also work on mobile devices would be a
great way to take advantage of it's small footprint and bring to those
platforms something that is currently not very available for them.

@reduz https://github.com/reduz says it's not difficult to do, and work
would be welcome.

here is love2d on the google play store btw
https://play.google.com/store/apps/details?id=org.love2d.android
having Godot at the playstore will give it more exposure, as there is
currently no competition - apart of love2d.
There is seriously no other game engine editor on there atm.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#267 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z25933nP_4u15PHiAVj6qyqQfr8dFks5qp71_gaJpZM4Bwpml
.

@punto-
Copy link
Contributor

punto- commented Sep 14, 2016

What's missing if you compile with tools=yes on android at the moment? it
seems like everything should be there, except maybe some specific editor
thing, like where it saves the global configuration.. There's also a flag
on the rasterizer to make it keep a local copy of the buffers, the editor
needs that. I'm happy to put an apk on the google store if we get a working
build..

On 14 September 2016 at 07:11, Juan Linietsky notifications@github.com
wrote:

I don't think it will be awesome, but a waste of time. If anyone wants to
do it, be welcome.

On Wed, Sep 14, 2016 at 6:25 AM, Todor Imreorov notifications@github.com
wrote:

From a correspondence on twitter:

todor imreorov ‏@blurymind https://github.com/blurymind 16h16 hours
ago
@reduzio can godot editor run on #android to develop games on mobile like
#love2d can? Would love to have it on my galaxy tab :D

Juan Linietsky ‏@reduzio 14h14 hours ago
@blurymind https://github.com/blurymind would not be difficult to do,
but not a priority for the main devs. If anyone wants to contribute this
work be welcome.

Basically Godot can compile games to android, but the actual editor
doesnt
have a port yet.
With the rise of android based tablets, I see more and more people use
their tablet with a keyboard for work.
As an owner of an android galaxy note 10.1 and someone who spends 4 hours
travelling on the train every work day, I started contemplating using
that
time to do some coding.

Unfortunately there are not many options at the moment, because most game
engines have a huge footprint. The only I found that works well is
Love2d,
but to develop for it you dont have nice things such as code
autocompletion
on android.
https://love2d.org/

I think that having the editor also work on mobile devices would be a
great way to take advantage of it's small footprint and bring to those
platforms something that is currently not very available for them.

@reduz https://github.com/reduz says it's not difficult to do, and
work
would be welcome.

here is love2d on the google play store btw
https://play.google.com/store/apps/details?id=org.love2d.android
having Godot at the playstore will give it more exposure, as there is
currently no competition - apart of love2d.
There is seriously no other game engine editor on there atm.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#267 (comment)
,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF-Z25933nP_
4u15PHiAVj6qyqQfr8dFks5qp71_gaJpZM4Bwpml>

.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#267 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGVmPaDbX38XiuRUXqwoaRbkx_sbP9m8ks5qp8hCgaJpZM4Bwpml
.

@reduz
Copy link
Member

reduz commented Sep 14, 2016

well, you will obviusly not be able to run the game

On Wed, Sep 14, 2016 at 1:26 PM, punto- notifications@github.com wrote:

What's missing if you compile with tools=yes on android at the moment? it
seems like everything should be there, except maybe some specific editor
thing, like where it saves the global configuration.. There's also a flag
on the rasterizer to make it keep a local copy of the buffers, the editor
needs that. I'm happy to put an apk on the google store if we get a working
build..

On 14 September 2016 at 07:11, Juan Linietsky notifications@github.com
wrote:

I don't think it will be awesome, but a waste of time. If anyone wants to
do it, be welcome.

On Wed, Sep 14, 2016 at 6:25 AM, Todor Imreorov <
notifications@github.com>
wrote:

From a correspondence on twitter:

todor imreorov ‏@blurymind https://github.com/blurymind 16h16 hours
ago
@reduzio can godot editor run on #android to develop games on mobile
like
#love2d can? Would love to have it on my galaxy tab :D

Juan Linietsky ‏@reduzio 14h14 hours ago
@blurymind https://github.com/blurymind would not be difficult to
do,
but not a priority for the main devs. If anyone wants to contribute
this
work be welcome.

Basically Godot can compile games to android, but the actual editor
doesnt
have a port yet.
With the rise of android based tablets, I see more and more people use
their tablet with a keyboard for work.
As an owner of an android galaxy note 10.1 and someone who spends 4
hours
travelling on the train every work day, I started contemplating using
that
time to do some coding.

Unfortunately there are not many options at the moment, because most
game
engines have a huge footprint. The only I found that works well is
Love2d,
but to develop for it you dont have nice things such as code
autocompletion
on android.
https://love2d.org/

I think that having the editor also work on mobile devices would be a
great way to take advantage of it's small footprint and bring to those
platforms something that is currently not very available for them.

@reduz https://github.com/reduz says it's not difficult to do, and
work
would be welcome.

here is love2d on the google play store btw
https://play.google.com/store/apps/details?id=org.love2d.android
having Godot at the playstore will give it more exposure, as there is
currently no competition - apart of love2d.
There is seriously no other game engine editor on there atm.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#267
issuecomment-246955879
,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF-Z25933nP_
4u15PHiAVj6qyqQfr8dFks5qp71_gaJpZM4Bwpml>

.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#267 (comment)
,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AGVmPaDbX38XiuRUXqwoaRbkx_sbP9m8ks5qp8hCgaJpZM4Bwpml>

.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#267 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z20l-CsW32CRlSJJGavXeUuZVZRXvks5qqCAogaJpZM4Bwpml
.

@punto-
Copy link
Contributor

punto- commented Sep 14, 2016

That's true, to spawn a process that runs your game you'd have to do some
Intent/Activity trickery that is too annoying to even think about :p (maybe
the editor can do OS.url_open("godot://path/to/project"), and we register a
player to open that url scheme in android?) But the app could launch in
"project manager" mode, and just let you run or edit every time you launch..

On 14 September 2016 at 13:29, Juan Linietsky notifications@github.com
wrote:

well, you will obviusly not be able to run the game

On Wed, Sep 14, 2016 at 1:26 PM, punto- notifications@github.com wrote:

What's missing if you compile with tools=yes on android at the moment? it
seems like everything should be there, except maybe some specific editor
thing, like where it saves the global configuration.. There's also a flag
on the rasterizer to make it keep a local copy of the buffers, the editor
needs that. I'm happy to put an apk on the google store if we get a
working
build..

On 14 September 2016 at 07:11, Juan Linietsky notifications@github.com
wrote:

I don't think it will be awesome, but a waste of time. If anyone wants
to
do it, be welcome.

On Wed, Sep 14, 2016 at 6:25 AM, Todor Imreorov <
notifications@github.com>
wrote:

From a correspondence on twitter:

todor imreorov ‏@blurymind https://github.com/blurymind 16h16
hours
ago
@reduzio can godot editor run on #android to develop games on mobile
like
#love2d can? Would love to have it on my galaxy tab :D

Juan Linietsky ‏@reduzio 14h14 hours ago
@blurymind https://github.com/blurymind would not be difficult to
do,
but not a priority for the main devs. If anyone wants to contribute
this
work be welcome.

Basically Godot can compile games to android, but the actual editor
doesnt
have a port yet.
With the rise of android based tablets, I see more and more people
use
their tablet with a keyboard for work.
As an owner of an android galaxy note 10.1 and someone who spends 4
hours
travelling on the train every work day, I started contemplating using
that
time to do some coding.

Unfortunately there are not many options at the moment, because most
game
engines have a huge footprint. The only I found that works well is
Love2d,
but to develop for it you dont have nice things such as code
autocompletion
on android.
https://love2d.org/

I think that having the editor also work on mobile devices would be a
great way to take advantage of it's small footprint and bring to
those
platforms something that is currently not very available for them.

@reduz https://github.com/reduz says it's not difficult to do, and
work
would be welcome.

here is love2d on the google play store btw
https://play.google.com/store/apps/details?id=org.love2d.android
having Godot at the playstore will give it more exposure, as there is
currently no competition - apart of love2d.
There is seriously no other game engine editor on there atm.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#267
issuecomment-246955879
,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF-Z25933nP_
4u15PHiAVj6qyqQfr8dFks5qp71_gaJpZM4Bwpml>

.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#267
issuecomment-246966872
,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AGVmPaDbX38XiuRUXqwoaRbkx_sbP9m8ks5qp8hCgaJpZM4Bwpml>

.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#267 (comment)
,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF-Z20l-
CsW32CRlSJJGavXeUuZVZRXvks5qqCAogaJpZM4Bwpml>
.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#267 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGVmPUV4-GbitJfeeTh02-OIp2evmzG0ks5qqCDdgaJpZM4Bwpml
.

@blurymind
Copy link

how do you even compile it on android? The thing doesnt even have a terminal

@punto-
Copy link
Contributor

punto- commented Sep 14, 2016

You cross compile from any PC? Maybe running it will be an issue too since
the editor will package it like a game, but you actually want an empty
assets directory on the apk, so it launches the project manager?

On 14 September 2016 at 17:51, Todor Imreorov notifications@github.com
wrote:

how do you even compile it on android? The thing doesnt even have a
terminal


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#267 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGVmPZkEgDREbDjFHFMmkjfyRVI0fvuWks5qqF5KgaJpZM4Bwpml
.

@LinuxUserGD
Copy link
Contributor

LinuxUserGD commented Jan 11, 2018

This is a very old issue. You can already run Godot on your smartphone ( https://godot.online ) in Chrome, so it's better to change the title to something like "Optimize Godot for mobile" (e. g. UI, touch and virtual keyboard)

@alanjds
Copy link

alanjds commented Jan 18, 2018

@LinuxUserGD There is 2 issues w/ this:

  • godot.online is unusable right now because is frozen pending some approval on Dropbox
  • Even if worked, is not usable on commuting (at least on my commuting) because internet does not work on the whole tripline. In fact, it works on some spots of the trip only

@godotengine godotengine deleted a comment Feb 12, 2018
@senteix2
Copy link

@punto- @blurymind , i was wondering if you can use termux (https://github.com/termux) to compile , it allow you to have clang and gcc , it has not X11 though but we can run a ssh server there .. just some ideas . termux is very lightweight

@LinuxUserGD
Copy link
Contributor

Termux has support for clang but not for gcc/g++.
Scons isn't in the default package repo, so you have to manually build it via python.
Cross compiling doesn't work as this is intended for creating export templates (tested under X11). It just generates two executables (android_debug.apk and android_release.apk) which are both broken when trying to run them on AndroidX86.

@david-aranda
Copy link

@LinuxUserGD termux does support gcc/g++ (not officially tough) https://github.com/its-pointless/gcc_termux

@alanjds
Copy link

alanjds commented Mar 6, 2018

@LinuxUserGD: Does not work for Android x86, but does for Android ARM?

@thebestnom
Copy link
Contributor

thebestnom commented Mar 2, 2020

@fahrstuhl Update
5 days ago I finally managed to debug it, so...
I made script and projects files to work to work,
Also made home screen to save settings (which says that editor settings is being saved)
sorry for not forking from you...

let the testing begin!

current problems, double tap is not a thing so you can't choose anything
do you mind if I open WIP pr?

@aaronfranke
Copy link
Member

do you mind if I open WIP pr?

Please do, assuming you're willing to work on it until it's in a functional and mergeable state.

However, pull requests for new features need to be made against the master branch. I noticed that your android_editor branch is currently based on top of the 3.2 branch. If you wish to submit a pull request, you will need to make a branch that is based on master first.

@thebestnom
Copy link
Contributor

thebestnom commented Mar 3, 2020

@aaronfranke that's my intention, porting it till it done

Also I tried working on master, but sometime around 2 weeks ago there was a merge that break the build with tools true (I think, didn't try without it) on android, I would need to investigate it

@LinuxUserGD
Copy link
Contributor

LinuxUserGD commented Mar 3, 2020

@thebestnom
Is android even working with vulkan on master branch? I don't think that GLES2 is ported back yet to use new RenderDevice code so currently it should either fail to compile or to install/run with or without tools (?)

@thebestnom
Copy link
Contributor

@LinuxUserGD to me it failed to compile with tools, so I guess that answers your question?

@thebestnom
Copy link
Contributor

Also, is there any chat that godot community use so we don't spam the issue?

@LinuxUserGD
Copy link
Contributor

@thebestnom Discord (Godot or Extended Libraries) e. g.

@fahrstuhl
Copy link

Great to read you're making progress @thebestnom !

I got the impression most of the engine dev talk happens on the IRC channel, which also has a matrix bridge.

I asked on the IRC channel about how to best adapt the editor to Android (between 13:00 and 16:30) and running each the project manager, the editor and the game as different activities sounded like the best way.

Also the Android port might change to convert nearly all Java code to C++ by making it a NativeActivity:

[18:16:23] <Calinou> we'll look into rewriting the Android port to use NativeActivity
[18:16:33] <Calinou> (which means it will have very little Java code and will be mostly C++)

So maybe we should ask about that, too.

@aaronfranke
Copy link
Member

@thebestnom I personally use Discord the most. IRC is best for contacting the lead devs since they hang around there, but Discord is better for casual chatting since it has many channels and preserves history (on IRC you can only see messages posted after you join).

@thebestnom
Copy link
Contributor

so where can we open an open channel for android porting?

@LinuxUserGD
Copy link
Contributor

@thebestnom
Copy link
Contributor

#36776 opened a WIP PR opened, let's see how much time it will take me to get it to be fully ported!

@LinuxUserGD
Copy link
Contributor

Seems like this is back:
https://twitter.com/godot_online/status/1252688213702930434
Maybe they have some patches that could be used on android native too, not sure.

@thebestnom
Copy link
Contributor

thebestnom commented Apr 21, 2020

@LinuxUserGD the PR is mostly working (3d is broken because android on master is broken) but having the abilty to works with local files is great, and I have git on my termux so I can actually work with it

Also running the game doesn't work so Ill guess Ill look how he handle it

@mhilbrunner
Copy link
Member

I'll close this issue, as it's 6 years old now and the initial question was Can the entire program be compiled into a version for Android? - the answer is yes, with some caveats, it seems. :)

Great work on figuring out the Android build, and please keep working on it - and if you encounter any specific issues with Godot on Android, open issues or PRs for them!

In the meantime, I'll keep an eye on the open PR - having the editor work on Android out of the box would cool.

Thanks to everyone for the great discussion!

@nobody5050

This comment has been minimized.

@2439905184
Copy link

可以将整个程序编译成适用于Android的版本,以便在旅途中完全完成游戏开发吗?

I have tried to compile godot for arm linux. And it can run on android with aidlearing and vncviewer (aidlearing is a app based on termux ,it has full x11 graphics functions)
https://github.com/2439905184/godot-arm
You can see the release here. I compile it just on android with termux app.

@2439905184
Copy link

Can the entire program be compiled into a version for Android, so that game development can be entirely completed on the go?

网盘下载:https://wwa.lanzous.com/b015or6ti
密码:6kix
download godot for arm linux here .

@LinuxUserGD
Copy link
Contributor

@2439905184 There's native Android support #36776 (rebased for godot master).

@akien-mga akien-mga added this to the 3.5 milestone Mar 30, 2022
@akien-mga
Copy link
Member

akien-mga commented Mar 30, 2022

This was implemented in 3.5 by #57747

Bugsquad edit: And in 4.0 by #58160

@idchlife
Copy link

idchlife commented Jul 29, 2022

If you guys need testers - my second main machine is Samsung Galaxy Tab S8 Ultra with keyboard and touchpad. I'm using it now for over 3 months without touching my main machine, mainly for developing.
I can test anything you want in normal mode, dex mode, with keyboard/touch/mouse mode etc.

Right now Godot Editor is not usable because in 3D viewport it's nearly impossible to move anything, but code editor and most other features look good. Tested for 5 minutes, though, because of lack of usability of viewport.

@m4gr3d
Copy link
Contributor

m4gr3d commented Jul 29, 2022

If you guys need testers - my second main machine is Samsung Galaxy Tab S8 Ultra with keyboard and touchpad. I'm using it now for over 3 months without touching my main machine, mainly for developing. I can test anything you want in normal mode, dex mode, with keyboard/touch/mouse mode etc.

Right now Godot Editor is not usable because in 3D viewport it's nearly impossible to move anything, but code editor and most other features look good. Tested for 5 minutes, though, because of lack of usability of viewport.

@idchlife The current version of the Godot Android Editor should work with keyboard and mouse including with the 3D viewport.
Touch support for the viewport however is still being worked on.
Is that the experience you're getting on your tablet?

Also feel free to respond on the godotengine/godot-proposals#3931 proposal instead of this (closed) thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests