godotengine / godotengine/godot-docs

Binding to external libraries example not working in Godot 4.2

Open
#8,570 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
reStructuredText
Stars
5.7k
Forks
3.8k
Avg merge
1d 20h
Merged PRs (30d)
25

Description

**Your Godot version:**
4.2, in Ubuntu 22

**Issue description:**
```
When compiling the example of the TTS external library, it gives the following errors

/my_env/godot_4_modules/tts/register_types.h:3:6: error: variable or field 'initialize_tts_module' declared void
3 | void initialize_tts_module(ModuleInitializationLevel p_level);
| ^~~~~~~~~~~~~~~~~~~~~
/my_env/godot_4_modules/tts/register_types.h:3:28: error: 'ModuleInitializationLevel' was not declared in this scope
3 | void initialize_tts_module(ModuleInitializationLevel p_level);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/my_env/godot_4_modules/tts/register_types.h:4:6: error: variable or field 'uninitialize_tts_module' declared void
4 | void uninitialize_tts_module(ModuleInitializationLevel p_level);
| ^~~~~~~~~~~~~~~~~~~~~~~
/my_env/godot_4_modules/tts/register_types.h:4:30: error: 'ModuleInitializationLevel' was not declared in this scope
4 | void uninitialize_tts_module(ModuleInitializationLevel p_level);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
[ 55%] /my_env/godot_4_modules/tts/register_types.cpp:8:6: error: variable or field 'initialize_tts_module' declared void
8 | void initialize_tts_module(ModuleInitializationLevel p_level) {
| ^~~~~~~~~~~~~~~~~~~~~
/my_env/godot_4_modules/tts/register_types.cpp:8:28: error: 'ModuleInitializationLevel' was not declared in this scope; did you mean 'GDExtensionInitializationLevel'?
8 | void initialize_tts_module(ModuleInitializationLevel p_level) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| GDExtensionInitializationLevel
/my_env/godot_4_modules/tts/register_types.cpp:16:6: error: variable or field 'uninitialize_tts_module' declared void
16 | void uninitialize_tts_module(ModuleInitializationLevel p_level) {
| ^~~~~~~~~~~~~~~~~~~~~~~
/my_env/godot_4_modules/tts/register_types.cpp:16:30: error: 'ModuleInitializationLevel' was not declared in this scope; did you mean 'GDExtensionInitializationLevel'?
16 | void uninitialize_tts_module(ModuleInitializationLevel p_level) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| GDExtensionInitializationLevel
```

**URL to the documentation page:**
https://docs.godotengine.org/en/stable/contributing/development/core_and_modules/binding_to_external_libraries.html

The module is like this, don't know if there is something missing:

[tts.zip](https://github.com/godotengine/godot-docs/files/13558805/tts.zip)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.