I am attempting to build Godot and while doing that I got this error
ERROR: modules\register_module_types.gen.cpp: In function 'void initialize_modules(ModuleInitializationLevel)':
modules\register_module_types.gen.cpp:182:9: error: 'initialize_node1d_module' was not declared in this scope; did you mean 'initialize_noise_module'?
182 | initialize_node1d_module(p_level);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| initialize_noise_module
modules\register_module_types.gen.cpp: In function 'void uninitialize_modules(ModuleInitializationLevel)':
modules\register_module_types.gen.cpp:341:9: error: 'uninitialize_node1d_module' was not declared in this scope; did you mean 'uninitialize_noise_module'?
341 | uninitialize_node1d_module(p_level);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| uninitialize_noise_module
I've looked everywhere and can't seem to find anything. Any help would be appreciated.
Image of the file tree for the modules/node1d
folder:
I was able to fix the problem by renaming the node1d
file to 1d
.
I believe that this worked because in the register_types
file the initialize function is initialize_1d_module()
and the generator takes the name of the folder so changing the folder name solved the problem.