Zylann / godot_voxel

Voxel module for Godot Engine
MIT License
2.69k stars 251 forks source link

Building for godot 3.4 - cannot resolve constants and enums #418

Closed Dunkhan closed 2 years ago

Dunkhan commented 2 years ago

Linux Mint 20.3 Cinnamon

When attempting to build using the godot3.4 build and the 3.4 build from godot the build fails with the following errors

Generating VoxelTool.cs... ERROR: Cannot resolve enum reference in documentation: 'VoxelBuffer.CHANNEL_SDF'. at: bbcode_to_xml (modules/mono/editor/bindings_generator.cpp:372) ERROR: Cannot resolve enum reference in documentation: 'VoxelBuffer.CHANNEL_SDF'. at: bbcode_to_xml (modules/mono/editor/bindings_generator.cpp:372) ERROR: Cannot resolve enum reference in documentation: 'VoxelBuffer.CHANNEL_SDF'. at: bbcode_to_xml (modules/mono/editor/bindings_generator.cpp:372) ERROR: Cannot resolve enum reference in documentation: 'VoxelBuffer.CHANNEL_TYPE'. at: bbcode_to_xml (modules/mono/editor/bindings_generator.cpp:372) ERROR: Cannot resolve enum reference in documentation: 'MODE_REMOVE'. at: bbcode_to_xml (modules/mono/editor/bindings_generator.cpp:372)

Generating WebRTCPeerConnection.cs... ERROR: Cannot resolve constant reference in documentation: 'OK'. at: bbcode_to_xml (modules/mono/editor/bindings_generator.cpp:461) ERROR: Cannot resolve constant reference in documentation: 'OK'. at: bbcode_to_xml (modules/mono/editor/bindings_generator.cpp:461)

Generating File.cs... ERROR: Cannot resolve constant reference in documentation: 'PROPERTY_USAGE_STORAGE'. at: bbcode_to_xml (modules/mono/editor/bindings_generator.cpp:461)

Generating Mutex.cs... ERROR: Cannot resolve constant reference in documentation: 'OK'. at: bbcode_to_xml (modules/mono/editor/bindings_generator.cpp:461) ERROR: Cannot resolve constant reference in documentation: 'ERR_BUSY'. at: bbcode_to_xml (modules/mono/editor/bindings_generator.cpp:461) ERROR: Cannot resolve constant reference in documentation: 'OK'. at: bbcode_to_xml (modules/mono/editor/bindings_generator.cpp:461)

Generating Semaphore.cs... ERROR: Cannot resolve constant reference in documentation: 'OK'. at: bbcode_to_xml (modules/mono/editor/bindings_generator.cpp:461) ERROR: Cannot resolve constant reference in documentation: 'ERR_BUSY'. at: bbcode_to_xml (modules/mono/editor/bindings_generator.cpp:461) ERROR: Cannot resolve constant reference in documentation: 'OK'. at: bbcode_to_xml (modules/mono/editor/bindings_generator.cpp:461) ERROR: Cannot resolve constant reference in documentation: 'ERR_BUSY'. at: bbcode_to_xml (modules/mono/editor/bindings_generator.cpp:461)

Generating Thread.cs... ERROR: Cannot resolve constant reference in documentation: 'OK'. at: bbcode_to_xml (modules/mono/editor/bindings_generator.cpp:461) ERROR: Cannot resolve constant reference in documentation: 'ERR_CANT_CREATE'. at: bbcode_to_xml (modules/mono/editor/bindings_generator.cpp:461)

The resulting build runs and has the version 'v3.4.5.rc.mono.custom_build[code]' but it does not have the voxel module.

I understand this might be because I did something wrong but I have no idea what it could be so any support would be appreciated. I also failed to build with voxel build godot4 and godot master but I assumed that was because master is unstable.

Zylann commented 2 years ago

I have no idea what is up with Godot 3.4 either. Seems to be specific to Mono builds. I had difficulty building them in the past. Some of the errors you listed don't even come from this module. Maybe you need to ask neikeq on Godot Chat?

Dunkhan commented 2 years ago

I was able to build it without the voxel module present. But after a few tries I managed to get this working with it present too. I guess sometimes it takes a couple of goes.