Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Godot Cutom Web Template Compilation Not Working At Least on Godot 3.5, have seen a forum complaining the same about 4.1.2 #84332

Closed
yohanneskassa40 opened this issue Nov 1, 2023 · 6 comments
Labels

Comments

@yohanneskassa40
Copy link

yohanneskassa40 commented Nov 1, 2023

Godot version

3.5.3 stable win 64

System information

Windows 10 3.5.3 stable win 64

Issue description

I wanted to make a smaller export template for web since I wanted faster load times for clients (my country's internet speed is subpar compared to others).
Was unable to do that since scons spits out the same message again and again:

C:\Godot\Source\godot-3.5>scons platform=javascript tools=no target=release scons: Reading SConscript files ... Auto-detected 16 CPU cores available for build parallelism. Using 15 cores by default. You can override it with the -j argument. use_lto is: True Couldn't parse CXX environment variable to infer compiler version. TypeError: 'NoneType' object is not iterable: File "C:\Godot\Source\godot-3.5\SConstruct", line 449: detect.configure(env) File "C:\Godot\Source\godot-3.5\platform/javascript\detect.py", line 189: cc_semver = tuple(get_compiler_version(env))

Yes, I have msvc, yes I have emscripten set in PATH, tried installing mingw if something changed, failed on all.
Wanted to note that windows custom build works perfectly and without errors.

Steps to reproduce

Download the source, install all necessary tools as per the doc to compile godot web templates, run:

scons platform=javascript tools=no target=release

and see if there are any errors

Minimal reproduction project

No need, since this involves compiling godot

@yohanneskassa40 yohanneskassa40 changed the title Godot Cutom Web Builds Not Working At Least on Godot 3.5, have seen a forum complaining the same about 4.1.2 Godot Cutom Web Template Compilation Not Working At Least on Godot 3.5, have seen a forum complaining the same about 4.1.2 Nov 2, 2023
@ChildLearningClub
Copy link
Contributor

Having similar issues.

Download source:
git clone https://github.com/godotengine/godot.git -b 3.5.3-stable

Copy contents of SCons-4.5.2.zip into the"godot dir

In godot dir:

git clone https://github.com/emscripten-core/emsdk.git

cd emsdk

git pull

.\emsdk install 2.0.8
.\emsdk activate 2.0.8

scons platform=list

The following platforms are available:

    javascript
    windows

scons platform=javascript tools=yes threads_enabled=yes target=release_debug

Prints:

Couldn't parse CXX environment variable to infer compiler version.
TypeError: 'NoneType' object is not iterable:
  File "C:\GodotBuildDelete\godot\SConstruct", line 449:
    detect.configure(env)
  File "C:\GodotBuildDelete\godot\./platform/javascript\detect.py", line 189:
    cc_semver = tuple(get_compiler_version(env))

@ChildLearningClub
Copy link
Contributor

git clone https://github.com/godotengine/godot.git -b 3.3.4-stable
with exact same steps above does work.

@akien-mga
Copy link
Member

Thanks for the report!

@yohanneskassa40
Copy link
Author

Thank you Mr. Akien, I followed the other thread's workaround and it works! cc_semver was getting nonetype from the retrieval function, that's why it was not working for me.

@surendra019
Copy link

@yohanneskassa40 please tell me how it worked for you.

@betterTisen
Copy link

You have to go to platform/javascript/detect.py and change the lines

cc_semver = tuple(get_compiler_version(env))

to

# (3, 1, 49) is your emsdk version. You should be able to get that by running emcc -v
hardcodedcc_semver = (3, 1, 49)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants