I've only complied Godot for Windows and Linux, so compiling for Android might need some adjustments, but to answer your questions:
Where do I run it from? The command prompt? or Python? and what directory must I be in?
You compile through the command prompt using the following syntax: C:\path_to_godot_source> scons platform=platform_name_here
. To build for Android, you will need to insert the following into the command prompt:
C:\path_to_godot_source> scons platform=android android_arch=armv7
# Or
C:\path_to_godot_source> scons platform=android android_arch=arm64v8
# Or
C:\path_to_godot_source> scons platform=android android_arch=x86
Which you will need depends on the architecture of your target Android device(s).
Then you will need to build the output Godot creates using gradlew
with the following (still in the command prompt):
cd platform/android/java
# On Windows
.\gradlew build
# On Linux and macOS
./gradlew build
And then the built APK files will be located in the bin
folder. (Most of this is taken from the Godot documentation for compiling for Android)
As for which directory you need to be in, you need to be in the Godot source directory, so the directory containing README.md
and SConstruct
How do I tell it what game to compile?
You don't, instead you tell the Godot editor to use your custom APK files. I have not done this myself, but the documentation has a section for using the exported Android APK files as export templates in the editor.
Looking at the documentation, the easiest way is probably just to point the Custom Package
property fields (Debug
and Release
) to your exported APK files.
What is the difference between the 4 export options for Android? What if I need just 1 file with 32bit and 64bit included? Which options must I choose? All of them?
I don't have a lot of experience with this one, so I'm not totally sure what the procedure is for Android. For Desktop, the easiest way to make a single export that works on multiple platforms is to compile the 32 bit version, since 64 bit computers should be able to load the exports without any difficulties.
(A noticeable exception being Apple computers, which soon will only support 64 bit applications)
Hopefully this helps!
(Side note: Welcome to the forums)