I'm trying to use Godot with C++ on Windows and I'm following the GDExtension guide.
When I get to the part where I have to build the C++ bindings and I execute scons platform=windows I see this:
scons: Reading SConscript files ...
NameError: name 'BoolVariable' is not defined:
File "D:\Programa de archivos (6x8)\Godot\GDExtension\WFC_1\godot-cpp\SConstruct", line 36:
cpp_tool.options(opts, env)
File "D:\Programa de archivos (6x8)\Godot\GDExtension\WFC_1\godot-cpp\tools\godotcpp.py", line 325:
tool.options(opts)
File "D:\Programa de archivos (6x8)\Godot\GDExtension\WFC_1\godot-cpp\tools\ios.py", line 24:
opts.Add(BoolVariable("ios_simulator", "Target iOS Simulator", False))
This "BoolVariable" can be found in C:\Users\super\AppData\Local\Programs\Python\Python312\Lib\site-packages\SCons\Variables, but I don't know what to do now.
I have 2 disk drives, so I tried to follow this guide on both of them.
I've also added C:\Users\super\AppData\Local\Programs\Python\Python312\Lib\site-packages\SCons to the "Path" variable.
None of that worked.
Try adding the following lines to windows.py
, linux.py
and ios.py
:
from SCons.Variables import BoolVariable