0 votes

I tried to compile my own android template, but Im facing this problem when using scons :

C:\Users\user\godot>scons platform=android target=release
scons: Reading SConscript files ...

MSVC not detected, attempting MinGW.
- could not detect gcc.
Please, make sure a path to a MinGW /bin directory is accessible into the enviro
nment PATH.

UnboundLocalError: local variable 'can_vectorize' referenced before assignment:
  File "C:\Users\user\godot\SConstruct", line 286:
    detect.configure(env)
  File "./platform/android\detect.py", line 95:
    if (can_vectorize):

C:\Users\user\godot>

im using windows. what's does these means ? I have no coding background

asked May 31, 2018 in Projects by ricardohogan (38 points)

It is not detecting the compilers, have you set up the environment variables correctly?

Also be sure to be running the correct console, for android under windows I think that you need to not use the VS environment, only the normal console.

Check here http://docs.godotengine.org/en/3.0/development/compiling/compiling_for_android.html

Also, be sure to get stable sources (like 3.0 branch or from the Releases tab on GitHub), unless you want to test master (which may have broken platforms sometimes).

1 Answer

0 votes

Since I know that you're running version 2.1.2 from a previous post

Your issue seems to be very similar to:
https://github.com/godotengine/godot/issues/9737

Which if you go down the rabbit hole you'll find:
https://github.com/godotengine/godot/pull/9722

And how it was fixed specifically can be found here:
https://github.com/godotengine/godot/pull/9722/commits/fbb27a0c43cb524b1bea79a3dad0e2f86a817b06

The fix seemed to include modifying two files.
platform/android/detect.py
thirdparty/libpng/pngpriv.h

answered Jun 1, 2018 by lee451 (54 points)

actually im compiling this for godot 2.1.4. For godot 2.1.2, I download the default template from Shinnil blog, but there's a problem in it now (Too many unused permission),

I've read your link,and Im trying to understand it

I hope that someone will upload the new fixed google admob template for free soon....
cause it help us and some people out there a lot :(

thankss btw :)

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.