Compiling for the Web: No SConstruct file found

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By gcivico


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\", line 924, in _main

Where I can find the SConstruct file?

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

asetyowatir | 2018-03-01 06:04

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

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

gcivico | 2018-03-01 13:30

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.

asetyowatir | 2018-03-01 14:25

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

gcivico | 2018-03-01 15:35