godot-cpp
godot-cpp copied to clipboard
SCons v.4.8.0 - 'BoolVariable' is not defined
Godot version
4.2.2.stable
godot-cpp version
4.2.2.stable
System information
Windows 11, Windows 10, macOS
Issue description
$ scons --version
SCons by Steven Knight et al.:
SCons: v4.8.0.7c688f694c644b61342670ce92977bf4a396c0d4, Sun, 07 Jul 2024 16:52:07 -0700, by bdbaddog on M1Dog2021
$ scons
scons: Reading SConscript files ...
NameError: name 'BoolVariable' is not defined:
File "C:\Documents\project\Project\SConstruct", line 52:
env = SConscript("include/godot-cpp/SConstruct", {"env": env, "customs": customs})
File "C:\Users\PC\AppData\Local\Programs\Python\Python312\Lib\site-packages\SCons\Script\SConscript.py", line 684:
return method(*args, **kw)
File "C:\Users\PC\AppData\Local\Programs\Python\Python312\Lib\site-packages\SCons\Script\SConscript.py", line 620:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\PC\AppData\Local\Programs\Python\Python312\Lib\site-packages\SCons\Script\SConscript.py", line 280:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Documents\project\Project\include\godot-cpp\SConstruct", line 36:
cpp_tool.options(opts, env)
File "C:\Documents\project\Project\include\godot-cpp\tools\godotcpp.py", line 325:
tool.options(opts)
File "C:\Documents\project\Project\include\godot-cpp\tools\ios.py", line 24:
opts.Add(BoolVariable("ios_simulator", "Target iOS Simulator", False))
Working with SCons v4.7.0 ✅️
pip uninstall scons && pip install scons==4.7.0