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:
  File "./platform/android\detect.py", line 95:
    if (can_vectorize):


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

in Engine by (39 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:

Which if you go down the rabbit hole you'll find:

And how it was fixed specifically can be found here:

The fix seemed to include modifying two files.

by (58 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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.