0 votes


Any idea of how to compiling for the web? I followed this but scons not working:

scons: *** No SConstruct file found.
File "C:\Python27\scons-3.0.0\SCons\Script\Main.py", line 924, in _main

Where I can find the SConstruct file?

in Engine by (152 points)

how to call scons have you read here ? Sconstruct located at the Godot root directory

Hi asetyowatir

Yes I read that but I do not found the Sconstruct file at the Godot root directory. I am missing something. Well, maybe I'm not understanding correctly the documentation:
Is Godot root directory the same as game project root directory? Because if it is, I don't have any Sconstruct file there. I am using Windows 10 and Godot 3.0.

This is how my game project directory looks
enter image description here

Do I have to do something on the engine before compiling?

I can't see the picture.

It's not your game project, it's the Godot's source folder, you can get it here.
If you want to compile for web you can follow the link you have mentioned above, install emscripten, python and scons and then build the export templates with the code written there (the windows one). After that in the terminal go to Godot's source folder, try typing scons. if scons detect for the javascript one the you can try building.

Thanks. This is what I have missing. Now I can see the Sconstruct file.

Please log in or register to answer this question.

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 Frequently asked questions and 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 [email protected] with your username.