0 votes

Hi everyone! I have an error when I want to generate export template for android With the command: scons platform=android target=release.

OUTPUT:

scons: Reading SConscript files ...
sh: 1: i586-mingw32msvc-gcc: not found
i686-w64-mingw32-gcc (GCC) 5.3.1 20160211
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

No valid target platform selected.
The following were detected:
    haiku
    server
    windows
    x11

Please run scons again with argument: platform=<string>
scons: done reading SConscript files.
scons: Building targets ...
scons: `.' is up to date.
scons: done building targets.
asked Nov 21, 2016 in Engine by bayaola (28 points)

2 Answers

0 votes

http://docs.godotengine.org/en/stable/reference/compiling_for_android.html

You need Android SDK, NDK and JDK (JDK 8 is fine)

answered Nov 21, 2016 by volzhs (9,462 points)

I have it all

0 votes

After setting ANDROIDHOME and ANDROIDNDK_ROOT variables, now OUTPUT is:

scons: Reading SConscript files ...
sh: 1: i586-mingw32msvc-gcc: not found
i686-w64-mingw32-gcc (GCC) 5.3.1 20160211
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Godot Android!!!!! (armv7) (with neon)
AttributeError: 'SConsEnvironment' object has no attribute 'android_module_file':
  File "/home/bayaola/src-godot-2.1.1-stable/SConstruct", line 325:
    config.configure(env)
  File "./modules/GodotGoogleGamePlayServices/config.py", line 6:
    env.android_module_file("/GodotGoogleGamePlayServices.java")
answered Nov 22, 2016 by bayaola (28 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.